ListCommandHandler `List` and print images matching filters in `options`.
(ctx context.Context, client *containerd.Client, options *types.ImageListOptions)
| 50 | |
| 51 | // ListCommandHandler `List` and print images matching filters in `options`. |
| 52 | func 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 | // |
no test coverage detected
searching dependent graphs…