Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt func(*usageOptions) error
func WithManifestLimit ¶
func WithManifestLimit(platform platforms.MatchComparer, i int) Opt
WithManifestLimit sets the limit to the number of manifests which will be walked for usage. Setting this value to 0 will require all manifests to be walked, returning ErrNotFound if manifests are missing. NOTE: By default all manifests which exist will be walked and any non-existent manifests and their subobjects will be ignored.
func WithManifestUsage ¶
func WithManifestUsage() Opt
WithManifestUsage is used to get the usage for an image based on what is reported by the manifests rather than what exists in the content store. NOTE: This function is best used with the manifest limit set to get a consistent value, otherwise non-existent manifests will be excluded.
func WithSnapshotters ¶
func WithSnapshotters(f func(string) snapshots.Snapshotter) Opt
WithSnapshotters will check for referenced snapshots from the image objects and include the snapshot size in the total usage.