MCPcopy
hub / github.com/containerd/containerd / WithImageClient

Function WithImageClient

client/services.go:72–76  ·  view source on GitHub ↗

WithImageClient sets the image service to use using an images client.

(imageService imagesapi.ImagesClient)

Source from the content-addressed store, hash-verified

70
71// WithImageClient sets the image service to use using an images client.
72func WithImageClient(imageService imagesapi.ImagesClient) ServicesOpt {
73 return func(s *services) {
74 s.imageStore = NewImageStoreFromClient(imageService)
75 }
76}
77
78// WithImageStore sets the image store.
79func WithImageStore(imageStore images.Store) ServicesOpt {

Callers 1

WithInMemoryServicesFunction · 0.85

Calls 1

NewImageStoreFromClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…