MCPcopy
hub / github.com/containerd/containerd / WithSnapshotUsage

Function WithSnapshotUsage

client/image.go:97–102  ·  view source on GitHub ↗

WithSnapshotUsage will check for referenced snapshots from the image objects and include the snapshot size in the total usage.

()

Source from the content-addressed store, hash-verified

95// WithSnapshotUsage will check for referenced snapshots from the image objects
96// and include the snapshot size in the total usage.
97func WithSnapshotUsage() UsageOpt {
98 return func(o *usageOptions) error {
99 o.snapshots = true
100 return nil
101 }
102}
103
104// WithManifestUsage is used to get the usage for an image based on what is
105// reported by the manifests rather than what exists in the content store.

Callers 1

TestImageUsageFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestImageUsageFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…