WithSnapshotUsage will check for referenced snapshots from the image objects and include the snapshot size in the total usage.
()
| 95 | // WithSnapshotUsage will check for referenced snapshots from the image objects |
| 96 | // and include the snapshot size in the total usage. |
| 97 | func 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. |
no outgoing calls
searching dependent graphs…