MCPcopy
hub / github.com/containerd/containerd / Size

Method Size

client/image.go:177–179  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

175}
176
177func (i *image) Size(ctx context.Context) (int64, error) {
178 return usage.CalculateImageUsage(ctx, i.i, i.client.ContentStore(), usage.WithManifestLimit(i.platform, 1), usage.WithManifestUsage())
179}
180
181func (i *image) Usage(ctx context.Context, opts ...UsageOpt) (int64, error) {
182 var config usageOptions

Callers

nothing calls this directly

Calls 4

CalculateImageUsageFunction · 0.92
WithManifestLimitFunction · 0.92
WithManifestUsageFunction · 0.92
ContentStoreMethod · 0.65

Tested by

no test coverage detected