2016-03-26 02:38:00 +03:00
|
|
|
package libcontainerd
|
|
|
|
|
2016-06-07 10:45:21 +03:00
|
|
|
import (
|
2017-05-09 17:39:23 +03:00
|
|
|
containerd "github.com/containerd/containerd/api/grpc/types"
|
2016-06-07 10:45:21 +03:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
|
|
)
|
|
|
|
|
2016-03-26 02:38:00 +03:00
|
|
|
// Process contains information to start a specific application inside the container.
|
|
|
|
type Process struct {
|
|
|
|
// Terminal creates an interactive terminal for the container.
|
|
|
|
Terminal bool `json:"terminal"`
|
2016-06-07 10:45:21 +03:00
|
|
|
// User specifies user information for the process.
|
|
|
|
User *specs.User `json:"user"`
|
2016-03-26 02:38:00 +03:00
|
|
|
// Args specifies the binary and arguments for the application to execute.
|
|
|
|
Args []string `json:"args"`
|
2016-06-07 10:45:21 +03:00
|
|
|
// Env populates the process environment for the process.
|
|
|
|
Env []string `json:"env,omitempty"`
|
|
|
|
// Cwd is the current working directory for the process and must be
|
|
|
|
// relative to the container's root.
|
|
|
|
Cwd *string `json:"cwd"`
|
|
|
|
// Capabilities are linux capabilities that are kept for the container.
|
|
|
|
Capabilities []string `json:"capabilities,omitempty"`
|
2016-03-26 02:38:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stats contains a stats properties from containerd.
|
|
|
|
type Stats struct{}
|
|
|
|
|
2016-08-29 13:37:14 +03:00
|
|
|
// Summary contains a container summary from containerd
|
2016-03-26 02:38:00 +03:00
|
|
|
type Summary struct{}
|
|
|
|
|
|
|
|
// StateInfo contains description about the new state container has entered.
|
|
|
|
type StateInfo struct {
|
|
|
|
CommonStateInfo
|
|
|
|
|
|
|
|
// Platform specific StateInfo
|
2016-06-07 10:45:21 +03:00
|
|
|
OOMKilled bool
|
2016-03-26 02:38:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Resources defines updatable container resource values.
|
|
|
|
type Resources struct{}
|
2016-06-07 10:45:21 +03:00
|
|
|
|
|
|
|
// Checkpoints contains the details of a checkpoint
|
|
|
|
type Checkpoints containerd.ListCheckpointResponse
|