MCPcopy
hub / github.com/containerd/containerd / NewImageStoreFromClient

Function NewImageStoreFromClient

client/image_store.go:38–42  ·  view source on GitHub ↗

NewImageStoreFromClient returns a new image store client

(client imagesapi.ImagesClient)

Source from the content-addressed store, hash-verified

36
37// NewImageStoreFromClient returns a new image store client
38func NewImageStoreFromClient(client imagesapi.ImagesClient) images.Store {
39 return &remoteImages{
40 client: client,
41 }
42}
43
44func (s *remoteImages) Get(ctx context.Context, name string) (images.Image, error) {
45 resp, err := s.client.Get(ctx, &imagesapi.GetImageRequest{

Callers 2

WithImageClientFunction · 0.85
ImageServiceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…