Versions in this module Expand all Collapse all v0 v0.2.8 Mar 29, 2017 v0.2.7 Mar 15, 2017 v0.2.6 Mar 15, 2017 v0.2.5 Dec 5, 2016 v0.2.4 Sep 24, 2016 Changes in this version + const StartTimeFile + const UnknownStatus v0.2.3 Aug 10, 2016 Changes in this version + 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 — darwin/amd64, js/wasm + Created time.Time + EmptyNS []string + Exit bool + Name string + Shell bool + TCP bool + UnixSockets bool type Container + Status func() (State, error) type ContainerOpts + Shim string + 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 Pids struct + Current uint64 + Limit uint64 + type PlatformProcessState struct — darwin/amd64, js/wasm + Checkpoint string + RootGID int + RootUID int type Process + Start func() error + Wait func() type Resource + KernelTCPMemory int64 type Stat + Blkio Blkio + CPU CPU + Hugetlb map[string]Hugetlb + Memory Memory + Pids Pids + type Throttling struct + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64 v0.2.2 May 24, 2016 v0.2.1 Apr 22, 2016 v0.2.0 Apr 14, 2016 Changes in this version + var ErrContainerStartTimeout = errors.New("containerd: container did not start before the specified timeout") + type ContainerOpts struct + Bundle string + ID string + Labels []string + NoPivotRoot bool + Root string + Runtime string + RuntimeArgs []string + Timeout time.Duration type ProcessState + NoPivotRoot bool + RuntimeArgs []string v0.1.0 Mar 21, 2016 Changes in this version + const ControlFile + const ExitFile + const ExitStatusFile + const InitProcessID + const Paused + const Running + const StateFile + const Stopped + var ErrCheckpointExists = errors.New("containerd: checkpoint already exists") + var ErrCheckpointNotExists = errors.New("containerd: checkpoint does not exist for container") + var ErrContainerExited = errors.New("containerd: container has exited") + var ErrContainerNotStarted = errors.New("containerd: container not started") + var ErrInvalidContainerType = errors.New("containerd: invalid container type for runtime") + var ErrNotChildProcess = errors.New("containerd: not a child process for container") + var ErrProcessExited = errors.New("containerd: process has exited") + var ErrProcessNotExited = errors.New("containerd: process has not exited") + var ErrTerminalsNotSupported = errors.New("containerd: terminals are not supported for runtime") + type Checkpoint struct — linux/amd64, windows/amd64 + Created time.Time + Exit bool + Name string + Shell bool + Tcp bool + UnixSockets bool + type Container interface + Checkpoint func(Checkpoint) error + Checkpoints func() ([]Checkpoint, error) + Delete func() error + DeleteCheckpoint func(name string) error + Exec func(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(checkpoint string, s Stdio) (Process, error) + State func() State + Stats func() (*Stat, error) + UpdateResources func(*Resource) error + func Load(root, id string) (Container, error) + func New(root, id, bundle, runtimeName string, labels []string) (Container, error) + type OOM interface + ContainerID func() string + FD func() int + Flush func() + Removed func() bool + type PlatformProcessState struct — linux/amd64, windows/amd64 + Checkpoint string + RootGID int + RootUID int + type Process interface + CloseStdin func() error + Container func() Container + ExitFD func() int + ExitStatus func() (int, error) + ID func() string + Resize func(int, int) error + Signal func(os.Signal) error + Spec func() specs.ProcessSpec + State func() State + Stdio func() Stdio + SystemPid func() int + type ProcessState struct + Exec bool + Stderr string + Stdin string + Stdout string + type Resource struct + BlkioWeight uint16 + CPUPeriod int64 + CPUQuota int64 + CPUShares int64 + CpusetCpus string + CpusetMems string + KernelMemory int64 + Memory int64 + MemoryReservation int64 + MemorySwap int64 + type Stat struct + Data interface{} + Timestamp time.Time + type State string + type Stdio struct + Stderr string + Stdin string + Stdout string + func NewStdio(stdin, stdout, stderr string) Stdio