MCPcopy Index your code
hub / github.com/containerd/containerd / Get

Method Get

core/runtime/v2/task_manager.go:278–284  ·  view source on GitHub ↗

Get a specific task

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

276
277// Get a specific task
278func (m *TaskManager) Get(ctx context.Context, id string) (runtime.Task, error) {
279 shim, err := m.manager.shims.Get(ctx, id)
280 if err != nil {
281 return nil, err
282 }
283 return newShimTask(shim)
284}
285
286// Tasks lists all tasks
287func (m *TaskManager) Tasks(ctx context.Context, all bool) ([]runtime.Task, error) {

Callers

nothing calls this directly

Calls 2

newShimTaskFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected