MCPcopy
hub / github.com/containerd/containerd / Usage

Method Usage

core/snapshots/proxy/proxy.go:72–81  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

70}
71
72func (p *proxySnapshotter) Usage(ctx context.Context, key string) (snapshots.Usage, error) {
73 resp, err := p.client.Usage(ctx, &snapshotsapi.UsageRequest{
74 Snapshotter: p.snapshotterName,
75 Key: key,
76 })
77 if err != nil {
78 return snapshots.Usage{}, errgrpc.ToNative(err)
79 }
80 return UsageFromProto(resp), nil
81}
82
83func (p *proxySnapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error) {
84 resp, err := p.client.Mounts(ctx, &snapshotsapi.MountsRequest{

Callers

nothing calls this directly

Calls 2

UsageFromProtoFunction · 0.85
UsageMethod · 0.65

Tested by

no test coverage detected