Documentation ¶
Index ¶
- Variables
- func GetNewTaskOpts(context *cli.Context) []containerd.NewTaskOpts
- func HandleConsoleResize(ctx gocontext.Context, task resizer, con console.Console) error
- func NewTask(ctx gocontext.Context, client *containerd.Client, ...) (containerd.Task, error)
- func RemoveCniNetworkIfExist(ctx context.Context, container containerd.Container) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "tasks", Usage: "Manage tasks", Aliases: []string{"t", "task"}, Subcommands: []cli.Command{ attachCommand, checkpointCommand, deleteCommand, execCommand, listCommand, killCommand, metricsCommand, pauseCommand, psCommand, resumeCommand, startCommand, }, }
Command is the cli command for managing tasks
Functions ¶
func GetNewTaskOpts ¶ added in v1.7.0
func GetNewTaskOpts(context *cli.Context) []containerd.NewTaskOpts
GetNewTaskOpts resolves containerd.NewTaskOpts from cli.Context
func HandleConsoleResize ¶
HandleConsoleResize resizes the console
func NewTask ¶
func NewTask(ctx gocontext.Context, client *containerd.Client, container containerd.Container, checkpoint string, con console.Console, nullIO bool, logURI string, ioOpts []cio.Opt, opts ...containerd.NewTaskOpts) (containerd.Task, error)
NewTask creates a new task
func RemoveCniNetworkIfExist ¶ added in v1.7.0
func RemoveCniNetworkIfExist(ctx context.Context, container containerd.Container) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.