MCPcopy Create free account
hub / github.com/containerd/nerdctl / ListCommandHandler

Function ListCommandHandler

pkg/cmd/image/list.go:52–58  ·  view source on GitHub ↗

ListCommandHandler `List` and print images matching filters in `options`.

(ctx context.Context, client *containerd.Client, options *types.ImageListOptions)

Source from the content-addressed store, hash-verified

50
51// ListCommandHandler `List` and print images matching filters in `options`.
52func ListCommandHandler(ctx context.Context, client *containerd.Client, options *types.ImageListOptions) error {
53 imageList, err := List(ctx, client, options.Filters, options.NameAndRefFilter)
54 if err != nil {
55 return err
56 }
57 return printImages(ctx, client, imageList, options)
58}
59
60// List queries containerd client to get image list and only returns those matching given filters.
61//

Callers 1

imagesActionFunction · 0.92

Calls 2

printImagesFunction · 0.85
ListFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…