package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
DigestOrImageMatch matches the digest in the image name.
DockerImageReferenceExact returns a string representation of the set fields on the DockerImageReference.
DockerImageReferenceForImage returns the docker reference for specified image.
DockerImageReferenceForStream returns a DockerImageReference that represents the ImageStream or false, if no valid reference exists.
DockerImageReferenceNameString returns the name of the reference with its tag or ID.
DockerImageReferenceString converts a DockerImageReference to a Docker pull spec (which implies a default namespace according to V1 Docker registry rules).
ImageConfigMatchesImage returns true if the provided image config matches a digest stored in the manifest of the image.
ImageWithMetadata mutates the given image.
InternalImageWithMetadata mutates the given image.
IsRegistryDockerHub returns true if the given registry name belongs to Docker hub.
LatestImageTagEvent returns the most recent TagEvent and the tag for the specified image.
LatestObservedTagGeneration returns the generation value for the given tag that has been observed by the controller monitoring the image stream.
LatestTaggedImage returns the most recent TagEvent for the specified image repository and tag.
ManifestMatchesImage returns true if the provided manifest matches the name of the image.
ParseDockerImageReference parses a Docker pull spec string into a DockerImageReference.
ParseImageStreamImageName splits a string into its name component and ID component, and returns an error if the string is not in the right form.
ParseImageStreamTagName splits a string into its name component and tag component, and returns an error if the string is not in the right form.
ReorderImageLayers mutates the given image.
ResolveImageID returns latest TagEvent for specified imageID and an error if there's more than one image matching the ID or when one does not exist.
ResolveLatestTaggedImage returns the appropriate pull spec for a given tag in the image stream, handling the tag's reference policy if necessary to return a resolved image.
ResolveReferenceForTagEvent applies the tag reference rules for a stream, tag, and tag event for that tag.
ResolveTagReference applies the tag reference rules for a stream, tag, and tag event for that tag.
SetDockerClientDefaults set the default values used by the Docker client.
SpecHasTag returns named tag from image stream's spec and boolean whether one was found.
StatusHasTag returns named tag from image stream's status and boolean whether one was found.
# Constants
DockerDefaultRegistry is the value for the registry when none was provided.
DockerDefaultV1Registry is the host name of the default v1 registry.
DockerDefaultV2Registry is the host name of the default v2 registry.