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

Method getTaskFromContainer

plugins/services/tasks/local.go:754–760  ·  view source on GitHub ↗
(ctx context.Context, container *containers.Container)

Source from the content-addressed store, hash-verified

752}
753
754func (l *local) getTaskFromContainer(ctx context.Context, container *containers.Container) (runtime.Task, error) {
755 t, err := l.v2Runtime.Get(ctx, container.ID)
756 if err != nil {
757 return nil, status.Errorf(codes.NotFound, "task %v not found", container.ID)
758 }
759 return t, nil
760}
761
762// getCheckpointPath only suitable for runc runtime now
763func getCheckpointPath(runtime string, option *ptypes.Any) (string, error) {

Callers 2

CheckpointMethod · 0.95
getTaskMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected