(ctx context.Context, key string)
| 70 | } |
| 71 | |
| 72 | func (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 | |
| 83 | func (p *proxySnapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error) { |
| 84 | resp, err := p.client.Mounts(ctx, &snapshotsapi.MountsRequest{ |
nothing calls this directly
no test coverage detected