MCPcopy
hub / github.com/containerd/containerd / getContainer

Method getContainer

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

Source from the content-addressed store, hash-verified

735}
736
737func (l *local) getContainer(ctx context.Context, id string) (*containers.Container, error) {
738 var container containers.Container
739 container, err := l.containers.Get(ctx, id)
740 if err != nil {
741 return nil, errgrpc.ToGRPC(err)
742 }
743 return &container, nil
744}
745
746func (l *local) getTask(ctx context.Context, id string) (runtime.Task, error) {
747 container, err := l.getContainer(ctx, id)

Callers 4

CreateMethod · 0.95
DeleteMethod · 0.95
CheckpointMethod · 0.95
getTaskMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected