Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTask ¶
func NewTask(ctx context.Context, client *containerd.Client, container containerd.Container, opts TaskOptions) (containerd.Task, error)
NewTask is from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/tasks/tasks_unix.go#L70-L108
Types ¶
type StdinCloser ¶
StdinCloser is from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/tasks/exec.go#L181-L194
type TaskOptions ¶ added in v2.2.0
type TaskOptions struct {
AttachStreamOpt []string
IsInteractive bool
IsTerminal bool
IsDetach bool
Con console.Console
LogURI string
DetachKeys string
Namespace string
DetachC chan<- struct{}
CheckpointDir string
}
TaskOptions contains options for creating a new task
Click to show internal directories.
Click to hide internal directories.