github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/libcontainerd/types_linux.go (about) 1 package libcontainerd 2 3 import ( 4 containerd "github.com/docker/containerd/api/grpc/types" 5 "github.com/opencontainers/specs/specs-go" 6 ) 7 8 // Spec is the base configuration for the container. It specifies platform 9 // independent configuration. This information must be included when the 10 // bundle is packaged for distribution. 11 type Spec specs.Spec 12 13 // Process contains information to start a specific application inside the container. 14 type Process struct { 15 // Terminal creates an interactive terminal for the container. 16 Terminal bool `json:"terminal"` 17 // User specifies user information for the process. 18 User *User `json:"user"` 19 // Args specifies the binary and arguments for the application to execute. 20 Args []string `json:"args"` 21 // Env populates the process environment for the process. 22 Env []string `json:"env,omitempty"` 23 // Cwd is the current working directory for the process and must be 24 // relative to the container's root. 25 Cwd *string `json:"cwd"` 26 // Capabilities are linux capabilities that are kept for the container. 27 Capabilities []string `json:"capabilities,omitempty"` 28 // Rlimits specifies rlimit options to apply to the process. 29 Rlimits []specs.Rlimit `json:"rlimits,omitempty"` 30 // ApparmorProfile specified the apparmor profile for the container. 31 ApparmorProfile *string `json:"apparmorProfile,omitempty"` 32 // SelinuxProcessLabel specifies the selinux context that the container process is run as. 33 SelinuxLabel *string `json:"selinuxLabel,omitempty"` 34 } 35 36 // StateInfo contains description about the new state container has entered. 37 type StateInfo struct { 38 CommonStateInfo 39 40 // Platform specific StateInfo 41 OOMKilled bool 42 } 43 44 // Stats contains a stats properties from containerd. 45 type Stats containerd.StatsResponse 46 47 // Summary container a container summary from containerd 48 type Summary struct{} 49 50 // User specifies linux specific user and group information for the container's 51 // main process. 52 type User specs.User 53 54 // Resources defines updatable container resource values. 55 type Resources containerd.UpdateResource