MCPcopy
hub / github.com/containerd/containerd / ListImages

Method ListImages

client/client.go:583–593  ·  view source on GitHub ↗

ListImages returns all existing images

(ctx context.Context, filters ...string)

Source from the content-addressed store, hash-verified

581
582// ListImages returns all existing images
583func (c *Client) ListImages(ctx context.Context, filters ...string) ([]Image, error) {
584 imgs, err := c.ImageService().List(ctx, filters...)
585 if err != nil {
586 return nil, err
587 }
588 images := make([]Image, len(imgs))
589 for i, img := range imgs {
590 images[i] = NewImage(c, img)
591 }
592 return images, nil
593}
594
595// Restore restores a container from a checkpoint
596func (c *Client) Restore(ctx context.Context, id string, checkpoint Image, opts ...RestoreOpts) (Container, error) {

Callers

nothing calls this directly

Calls 3

ImageServiceMethod · 0.95
NewImageFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected