MCPcopy
hub / github.com/containerd/containerd / Get

Method Get

client/image_store.go:44–53  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

42}
43
44func (s *remoteImages) Get(ctx context.Context, name string) (images.Image, error) {
45 resp, err := s.client.Get(ctx, &imagesapi.GetImageRequest{
46 Name: name,
47 })
48 if err != nil {
49 return images.Image{}, errgrpc.ToNative(err)
50 }
51
52 return imageFromProto(resp.Image), nil
53}
54
55func (s *remoteImages) List(ctx context.Context, filters ...string) ([]images.Image, error) {
56 resp, err := s.client.List(ctx, &imagesapi.ListImagesRequest{

Callers

nothing calls this directly

Calls 2

imageFromProtoFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected