MCPcopy Create free account
hub / github.com/containerd/nerdctl / NewProvider

Function NewProvider

pkg/containerdutil/content.go:33–38  ·  view source on GitHub ↗

ContentStore should be called to get a Provider with caching

(client *containerd.Client)

Source from the content-addressed store, hash-verified

31
32// ContentStore should be called to get a Provider with caching
33func NewProvider(client *containerd.Client) content.Provider {
34 return &providerWithCache{
35 client.ContentStore(),
36 make(map[string]*readerAtWithCache),
37 }
38}
39
40type providerWithCache struct {
41 native content.Provider

Callers 3

addDescriptorsToJobsFunction · 0.92
EnsureAllContentFunction · 0.92
printImagesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…