2016-03-18 14:50:19 -04:00
|
|
|
package libcontainerd
|
|
|
|
|
|
|
|
import (
|
2017-05-09 10:39:23 -04:00
|
|
|
containerd "github.com/containerd/containerd/api/grpc/types"
|
2016-08-17 12:38:34 -04:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
2016-03-18 14:50:19 -04: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"`
|
|
|
|
// User specifies user information for the process.
|
2016-09-27 13:26:59 -04:00
|
|
|
User *specs.User `json:"user"`
|
2016-03-18 14:50:19 -04:00
|
|
|
// Args specifies the binary and arguments for the application to execute.
|
|
|
|
Args []string `json:"args"`
|
|
|
|
// 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"`
|
|
|
|
// Rlimits specifies rlimit options to apply to the process.
|
2017-08-01 11:51:24 -04:00
|
|
|
Rlimits []specs.POSIXRlimit `json:"rlimits,omitempty"`
|
2016-10-01 12:22:23 -04:00
|
|
|
// ApparmorProfile specifies the apparmor profile for the container.
|
2016-03-18 14:50:19 -04:00
|
|
|
ApparmorProfile *string `json:"apparmorProfile,omitempty"`
|
2016-10-01 12:22:23 -04:00
|
|
|
// SelinuxLabel specifies the selinux context that the container process is run as.
|
2016-03-18 14:50:19 -04:00
|
|
|
SelinuxLabel *string `json:"selinuxLabel,omitempty"`
|
|
|
|
}
|
|
|
|
|
2016-04-01 20:02:38 -04:00
|
|
|
// StateInfo contains description about the new state container has entered.
|
|
|
|
type StateInfo struct {
|
|
|
|
CommonStateInfo
|
|
|
|
|
|
|
|
// Platform specific StateInfo
|
|
|
|
OOMKilled bool
|
|
|
|
}
|
|
|
|
|
2016-03-18 14:50:19 -04:00
|
|
|
// Stats contains a stats properties from containerd.
|
|
|
|
type Stats containerd.StatsResponse
|
|
|
|
|
2016-08-29 06:37:14 -04:00
|
|
|
// Summary contains a container summary from containerd
|
2016-03-20 18:58:23 -04:00
|
|
|
type Summary struct{}
|
|
|
|
|
2016-03-18 14:50:19 -04:00
|
|
|
// Resources defines updatable container resource values.
|
|
|
|
type Resources containerd.UpdateResource
|
2016-05-12 10:52:00 -04:00
|
|
|
|
|
|
|
// Checkpoints contains the details of a checkpoint
|
|
|
|
type Checkpoints containerd.ListCheckpointResponse
|