MCPcopy
hub / github.com/containerd/containerd / GetImage

Method GetImage

client/client.go:574–580  ·  view source on GitHub ↗

GetImage returns an existing image

(ctx context.Context, ref string)

Source from the content-addressed store, hash-verified

572
573// GetImage returns an existing image
574func (c *Client) GetImage(ctx context.Context, ref string) (Image, error) {
575 i, err := c.ImageService().Get(ctx, ref)
576 if err != nil {
577 return nil, err
578 }
579 return NewImage(c, i), nil
580}
581
582// ListImages returns all existing images
583func (c *Client) ListImages(ctx context.Context, filters ...string) ([]Image, error) {

Callers

nothing calls this directly

Calls 3

ImageServiceMethod · 0.95
NewImageFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected