package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
DetermineRegistryHost returns registry host embedded in a pull-spec of the latest unmanaged image or the latest imagestream from the provided lists.
FakeRegistryClientFactory is a registry client factory creating no client at all.
NewBlobDeleter creates a new blobDeleter.
NewImageDeleter creates a new imageDeleter.
NewImageStreamDeleter creates a new imageStreamDeleter.
NewLayerLinkDeleter creates a new layerLinkDeleter.
NewManifestDeleter creates a new manifestDeleter.
NewPruner creates a Pruner.
NewWorker creates a new pruning worker.
TryProtocolsWithRegistryURL runs given action with different protocols until no error is returned.
# Constants
ReferencedImageConfigEdgeKind defines an edge from an ImageStreamNode or an ImageNode to an ImageComponentNode.
ReferencedImageEdgeKind defines a "strong" edge where the tail is an ImageNode, with strong indicating that the ImageNode tail is not a candidate for pruning.
ReferencedImageLayerEdgeKind defines an edge from an ImageStreamNode or an ImageNode to an ImageComponentNode.
ReferencedImageManifestEdgeKind defines an edge from an ImageStreamNode or an ImageNode to an ImageComponentNode.
WeakReferencedImageEdgeKind defines a "weak" edge where the tail is an ImageNode, with weak indicating that this particular edge does not keep an ImageNode from being a candidate for pruning.
# Structs
ComponentRetention knows all the places where image component needs to be pruned (e.g.
DefaultRegistryPinger implements RegistryPinger.
Deletion denotes a single deletion of a resource as a result of processing a job.
DryRunRegistryPinger implements RegistryPinger.
ErrBadReference denotes an invalid reference to image, imagestreamtag or imagestreamimage stored in a particular object.
Failure denotes a pruning failure of a single object.
Job is an image pruning job for the Worker.
JobResult is a result of job's processing.
PrunerOptions contains the fields used to initialize a new Pruner.
# Interfaces
BlobDeleter knows how to delete a blob from the Docker registry.
ImageDeleter knows how to remove images from OpenShift.
ImageStreamDeleter knows how to remove an image reference from an image stream.
LayerLinkDeleter knows how to delete a repository layer link from the Docker registry.
ManifestDeleter knows how to delete image manifest data for a repository from the Docker registry.
Pruner knows how to prune istags, images, manifest, layers, image configs and blobs.
RegistryPinger performs a health check against a registry.
Worker knows how to prune image and its related components.
# Type aliases
ComponentRetentions contains prunable locations for all the components of an image.
ImagePrunerFactoryFunc is a factory function returning an image deleter for use in a worker.
RegistryClientFactoryFunc is a factory function returning a registry client for use in a worker.