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

Method list

client/containerstore.go:70–78  ·  view source on GitHub ↗
(ctx context.Context, filters ...string)

Source from the content-addressed store, hash-verified

68}
69
70func (r *remoteContainers) list(ctx context.Context, filters ...string) ([]containers.Container, error) {
71 resp, err := r.client.List(ctx, &containersapi.ListContainersRequest{
72 Filters: filters,
73 })
74 if err != nil {
75 return nil, errgrpc.ToNative(err)
76 }
77 return containersFromProto(resp.Containers), nil
78}
79
80var errStreamNotAvailable = errors.New("streaming api not available")
81

Callers 1

ListMethod · 0.95

Calls 2

containersFromProtoFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected