Documentation ¶
Index ¶
- func ImageConfigMatchesImage(image *imageapi.Image, imageConfig []byte) (bool, error)
- func ImageWithMetadata(image *imagev1.Image) error
- func InternalImageWithMetadata(image *imageapi.Image) error
- func ManifestMatchesImage(image *imageapi.Image, newManifest []byte) (bool, error)
- func ReorderImageLayers(image *imageapi.Image)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageConfigMatchesImage ¶
ImageConfigMatchesImage returns true if the provided image config matches a digest stored in the manifest of the image.
func ImageWithMetadata ¶
ImageWithMetadata mutates the given image. It parses raw DockerImageManifest data stored in the image and fills its DockerImageMetadata and other fields. Copied from github.com/openshift/image-registry/pkg/origin-common/util/util.go
func InternalImageWithMetadata ¶
InternalImageWithMetadata mutates the given image. It parses raw DockerImageManifest data stored in the image and fills its DockerImageMetadata and other fields.
func ManifestMatchesImage ¶
ManifestMatchesImage returns true if the provided manifest matches the name of the image.
func ReorderImageLayers ¶
ReorderImageLayers mutates the given image. It reorders the layers in ascending order. Ascending order matches the order of layers in schema 2. Schema 1 has reversed (descending) order of layers.
Types ¶
This section is empty.