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

Method Get

client/containerstore.go:48–57  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

46}
47
48func (r *remoteContainers) Get(ctx context.Context, id string) (containers.Container, error) {
49 resp, err := r.client.Get(ctx, &containersapi.GetContainerRequest{
50 ID: id,
51 })
52 if err != nil {
53 return containers.Container{}, errgrpc.ToNative(err)
54 }
55
56 return containerFromProto(resp.Container), nil
57}
58
59func (r *remoteContainers) List(ctx context.Context, filters ...string) ([]containers.Container, error) {
60 containers, err := r.stream(ctx, filters...)

Callers

nothing calls this directly

Calls 2

containerFromProtoFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected