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

Function SnapshotService

pkg/containerdutil/snapshotter.go:27–33  ·  view source on GitHub ↗

SnapshotService should be called to get a new caching snapshotter

(client *containerd.Client, snapshotterName string)

Source from the content-addressed store, hash-verified

25
26// SnapshotService should be called to get a new caching snapshotter
27func SnapshotService(client *containerd.Client, snapshotterName string) snapshots.Snapshotter {
28 return &snapshotterWithCache{
29 client.SnapshotService(snapshotterName),
30 map[string]snapshots.Info{},
31 map[string]snapshots.Usage{},
32 }
33}
34
35type snapshotterWithCache struct {
36 snapshots.Snapshotter

Callers 5

InspectFunction · 0.92
prepareContainersFunction · 0.92
InspectFunction · 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…