Versions in this module Expand all Collapse all v1 v1.2.4 Feb 13, 2019 Changes in this version + const TaskCheckpointedEventTopic + const TaskCreateEventTopic + const TaskDeleteEventTopic + const TaskExecAddedEventTopic + const TaskExecStartedEventTopic + const TaskExitEventTopic + const TaskOOMEventTopic + const TaskPausedEventTopic + const TaskResumedEventTopic + const TaskStartEventTopic + const TaskUnknownTopic + var ErrTaskAlreadyExists = errors.New("task already exists") + var ErrTaskNotExists = errors.New("task does not exist") + type ConsoleSize struct + Height uint32 + Width uint32 + type CreateOpts struct + Checkpoint string + IO IO + Rootfs []mount.Mount + Runtime string + RuntimeOptions *types.Any + Spec *types.Any + TaskOptions *types.Any + type ExecOpts struct + IO IO + Spec *types.Any + type Exit struct + Pid uint32 + Status uint32 + Timestamp time.Time + type IO struct + Stderr string + Stdin string + Stdout string + Terminal bool + type PlatformRuntime interface + Add func(context.Context, Task) error + Create func(ctx context.Context, id string, opts CreateOpts) (Task, error) + Delete func(context.Context, string) + Get func(context.Context, string) (Task, error) + ID func() string + Tasks func(context.Context, bool) ([]Task, error) type Process + CloseIO func(context.Context) error + Delete func(context.Context) (*Exit, error) + Kill func(context.Context, uint32, bool) error + ResizePty func(context.Context, ConsoleSize) error + Start func(context.Context) error + State func(context.Context) (State, error) + Wait func(context.Context) (*Exit, error) + type ProcessInfo struct + Info interface{} + Pid uint32 type State + ExitStatus uint32 + ExitedAt time.Time + Pid uint32 + Status Status + Stderr string + Stdin string + Stdout string + Terminal bool + type Status int + const CreatedStatus + const DeletedStatus + const PausedStatus + const PausingStatus + const RunningStatus + const StoppedStatus + type Task interface + Checkpoint func(context.Context, string, *types.Any) error + Exec func(context.Context, string, ExecOpts) (Process, error) + Namespace func() string + Pause func(context.Context) error + Pids func(context.Context) ([]ProcessInfo, error) + Process func(context.Context, string) (Process, error) + Resume func(context.Context) error + Stats func(context.Context) (*types.Any, error) + Update func(context.Context, *types.Any) error + type TaskInfo struct + ID string + Namespace string + Runtime string + Spec []byte + type TaskList struct + func NewTaskList() *TaskList + func (l *TaskList) Add(ctx context.Context, t Task) error + func (l *TaskList) AddWithNamespace(namespace string, t Task) error + func (l *TaskList) Delete(ctx context.Context, id string) + func (l *TaskList) Get(ctx context.Context, id string) (Task, error) + func (l *TaskList) GetAll(ctx context.Context, noNS bool) ([]Task, error) + type TaskMonitor interface + Monitor func(Task) error + Stop func(Task) error + func NewMultiTaskMonitor(monitors ...TaskMonitor) TaskMonitor + func NewNoopMonitor() TaskMonitor v1.2.3 Feb 23, 2016 Changes in this version + const ControlFile + const ExitFile + const ExitStatusFile + const InitProcessID + const Paused + const Running + const StateFile + 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 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 + 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.Process, Stdio) (Process, error) + ID func() string + Labels func() []string + Path func() string + Pause func() error + Pids func() ([]int, error) + Processes func() ([]Process, error) + RemoveProcess func(string) error + Resume func() error + Start func(checkpoint string, s Stdio) (Process, error) + State func() State + Stats func() (*Stat, error) + func Load(root, id string) (Container, error) + func New(root, id, bundle string, labels []string) (Container, error) + 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.Process + Stdio func() Stdio + SystemPid func() int + type ProcessState struct + Checkpoint string + Exec bool + RootGID int + RootUID int + Stderr string + Stdin string + Stdout string + 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