Versions in this module Expand all Collapse all v0 v0.2.9 May 30, 2017 Changes in this version + const ControlFile + const ExitFile + const ExitStatusFile + const InitProcessID + const Paused + const Running + const StartTimeFile + const StateFile + const Stopped + const UnknownStatus + var ErrContainerExited = errors.New("containerd: container has exited") + var ErrContainerNotStarted = errors.New("containerd: container not started") + var ErrContainerStartTimeout = errors.New("containerd: container did not start before the specified timeout") + var ErrProcessNotExited = errors.New("containerd: process has not exited") + var ErrShimExited = errors.New("containerd: shim exited before container process was started") + type Blkio struct + IoMergedRecursive []BlkioEntry + IoQueuedRecursive []BlkioEntry + IoServiceBytesRecursive []BlkioEntry + IoServiceTimeRecursive []BlkioEntry + IoServicedRecursive []BlkioEntry + IoTimeRecursive []BlkioEntry + IoWaitTimeRecursive []BlkioEntry + SectorsRecursive []BlkioEntry + type BlkioEntry struct + Major uint64 + Minor uint64 + Op string + Value uint64 + type CPU struct + Throttling Throttling + Usage CPUUsage + type CPUUsage struct + Kernel uint64 + Percpu []uint64 + Total uint64 + User uint64 + type Checkpoint struct + Created time.Time + EmptyNS []string + Exit bool + Name string + Shell bool + TCP bool + UnixSockets bool + type Container interface + Checkpoint func(checkpoint Checkpoint, checkpointDir string) error + Checkpoints func(checkpointDir string) ([]Checkpoint, error) + Delete func() error + DeleteCheckpoint func(name string, checkpointDir string) error + Exec func(context.Context, string, specs.ProcessSpec, Stdio) (Process, error) + ID func() string + Labels func() []string + OOM func() (OOM, error) + Path func() string + Pause func() error + Pids func() ([]int, error) + Processes func() ([]Process, error) + RemoveProcess func(string) error + Resume func() error + Runtime func() string + Start func(ctx context.Context, checkpointPath string, s Stdio) (Process, error) + State func() State + Stats func() (*Stat, error) + Status func() (State, error) + UpdateResources func(*Resource) error + func Load(root, id, shimName string, timeout time.Duration) (Container, error) + func New(opts ContainerOpts) (Container, error) + type ContainerOpts struct + Bundle string + ID string + Labels []string + NoPivotRoot bool + Root string + Runtime string + RuntimeArgs []string + Shim string + Timeout time.Duration + type Hugetlb struct + Failcnt uint64 + Max uint64 + Usage uint64 + type Memory struct + Cache uint64 + Kernel MemoryEntry + KernelTCP MemoryEntry + Raw map[string]uint64 + Swap MemoryEntry + Usage MemoryEntry + type MemoryEntry struct + Failcnt uint64 + Limit uint64 + Max uint64 + Usage uint64 + type OOM interface + ContainerID func() string + FD func() int + Flush func() + Removed func() bool + type Pids struct + Current uint64 + Limit uint64 + type PlatformProcessState struct + Checkpoint string + RootGID int + RootUID int + type Process interface + CloseStdin func() error + Container func() Container + ExitFD func() int + ExitStatus func() (uint32, error) + ID func() string + Resize func(int, int) error + Signal func(os.Signal) error + Spec func() specs.ProcessSpec + Start func() error + State func() State + Stdio func() Stdio + SystemPid func() int + Wait func() + type ProcessState struct + Exec bool + NoPivotRoot bool + RuntimeArgs []string + Stderr string + Stdin string + Stdout string + type Resource struct + BlkioWeight uint16 + CPUPeriod int64 + CPUQuota int64 + CPUShares int64 + CpusetCpus string + CpusetMems string + KernelMemory int64 + KernelTCPMemory int64 + Memory int64 + MemoryReservation int64 + MemorySwap int64 + PidsLimit int64 + type Stat struct + Blkio Blkio + CPU CPU + Hugetlb map[string]Hugetlb + Memory Memory + Pids Pids + Timestamp time.Time + type State string + type Stdio struct + Stderr string + Stdin string + Stdout string + func NewStdio(stdin, stdout, stderr string) Stdio + type Throttling struct + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64