MCPcopy
hub / github.com/containerd/containerd / Task

Method Task

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

Task returns the current task for the container If cio.Load options are passed the client will Load the IO for the running task. If cio.Attach options are passed the client will reattach to the IO for the running task. If no task exists for the container a NotFound error is returned Clients must

(context.Context, cio.Attach)

Source from the content-addressed store, hash-verified

72 // Clients must make sure that only one reader is attached to the task and consuming
73 // the output from the task's fifos
74 Task(context.Context, cio.Attach) (Task, error)
75 // Image returns the image that the container is based on
76 Image(context.Context) (Image, error)
77 // Labels returns the labels set on the container

Callers 15

TestTaskSpecFunction · 0.95
TestContainerAttachFunction · 0.95
TestContainerdRestartFunction · 0.65
nriContainerMethod · 0.65
loadContainerMethod · 0.65
CheckpointContainerMethod · 0.65
stopContainerMethod · 0.65
StartContainerMethod · 0.65

Calls

no outgoing calls

Tested by 5

TestTaskSpecFunction · 0.76
TestContainerAttachFunction · 0.76
TestContainerdRestartFunction · 0.52