SnapshotService should be called to get a new caching snapshotter
(client *containerd.Client, snapshotterName string)
| 25 | |
| 26 | // SnapshotService should be called to get a new caching snapshotter |
| 27 | func 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 | |
| 35 | type snapshotterWithCache struct { |
| 36 | snapshots.Snapshotter |
no outgoing calls
no test coverage detected
searching dependent graphs…