MCPcopy
hub / github.com/containerd/containerd / getTask

Method getTask

plugins/services/tasks/local.go:746–752  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

744}
745
746func (l *local) getTask(ctx context.Context, id string) (runtime.Task, error) {
747 container, err := l.getContainer(ctx, id)
748 if err != nil {
749 return nil, err
750 }
751 return l.getTaskFromContainer(ctx, container)
752}
753
754func (l *local) getTaskFromContainer(ctx context.Context, container *containers.Container) (runtime.Task, error) {
755 t, err := l.v2Runtime.Get(ctx, container.ID)

Callers 12

StartMethod · 0.95
DeleteProcessMethod · 0.95
GetMethod · 0.95
PauseMethod · 0.95
ResumeMethod · 0.95
KillMethod · 0.95
ListPidsMethod · 0.95
ExecMethod · 0.95
ResizePtyMethod · 0.95
CloseIOMethod · 0.95
UpdateMethod · 0.95
WaitMethod · 0.95

Calls 2

getContainerMethod · 0.95
getTaskFromContainerMethod · 0.95

Tested by

no test coverage detected