Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Summary ¶
Summary is cumulative information about what was pruned.
func Prune ¶
func Prune(ctx context.Context, storageDriver driver.StorageDriver, registry distribution.Namespace, registryClient server.RegistryClient, dryRun bool) (Summary, error)
Prune removes blobs which are not used by Images in OpenShift.
On error, the Summary will contain what was deleted so far.
TODO(dmage): remove layer links to a blob if the blob is removed or it doesn't belong to the ImageStream. TODO(dmage): keep young blobs (docker/distribution#2297).
Click to show internal directories.
Click to hide internal directories.