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

Method List

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

Source from the content-addressed store, hash-verified

57}
58
59func (r *remoteContainers) List(ctx context.Context, filters ...string) ([]containers.Container, error) {
60 containers, err := r.stream(ctx, filters...)
61 if err != nil {
62 if err == errStreamNotAvailable {
63 return r.list(ctx, filters...)
64 }
65 return nil, err
66 }
67 return containers, nil
68}
69
70func (r *remoteContainers) list(ctx context.Context, filters ...string) ([]containers.Container, error) {
71 resp, err := r.client.List(ctx, &containersapi.ListContainersRequest{

Callers

nothing calls this directly

Calls 2

streamMethod · 0.95
listMethod · 0.95

Tested by

no test coverage detected