MCPcopy
hub / github.com/containerd/containerd / NewTask

Method NewTask

client/container.go:59–59  ·  view source on GitHub ↗

NewTask creates a new task based on the container metadata

(context.Context, cio.Creator, ...NewTaskOpts)

Source from the content-addressed store, hash-verified

57 Delete(context.Context, ...DeleteOpts) error
58 // NewTask creates a new task based on the container metadata
59 NewTask(context.Context, cio.Creator, ...NewTaskOpts) (Task, error)
60 // Spec returns the OCI runtime specification
61 Spec(context.Context) (*oci.Spec, error)
62 // Task returns the current task for the container

Callers 15

TestContainerStartFunction · 0.95
TestContainerOutputFunction · 0.95
TestContainerWaitFunction · 0.95
TestContainerExecFunction · 0.95
TestContainerPidsFunction · 0.95
TestContainerCloseIOFunction · 0.95
TestContainerKillFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestContainerStartFunction · 0.76
TestContainerOutputFunction · 0.76
TestContainerWaitFunction · 0.76
TestContainerExecFunction · 0.76
TestContainerPidsFunction · 0.76
TestContainerCloseIOFunction · 0.76
TestContainerKillFunction · 0.76