Documentation ¶
Index ¶
- func ImageWithMetadata(image *imageapiv1.Image) error
- func InternalImageWithMetadata(image *imageapi.Image) error
- func LatestImageTagEvent(stream *imageapiv1.ImageStream, imageID string) (string, *imageapiv1.TagEvent)
- func LatestTaggedImage(stream *imageapiv1.ImageStream, tag string) *imageapiv1.TagEvent
- func ReorderImageLayers(image *imageapi.Image)
- func ResolveImageID(stream *imageapiv1.ImageStream, imageID string) (*imageapiv1.TagEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageWithMetadata ¶
func ImageWithMetadata(image *imageapiv1.Image) error
ImageWithMetadata mutates the given image. It parses raw DockerImageManifest data stored in the image and fills its DockerImageMetadata and other fields. Copied from v3.7 github.com/openshift/origin/pkg/image/apis/image/v1/helpers.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 LatestImageTagEvent ¶
func LatestImageTagEvent(stream *imageapiv1.ImageStream, imageID string) (string, *imageapiv1.TagEvent)
LatestImageTagEvent returns the most recent TagEvent and the tag for the specified image. Copied from v3.7 github.com/openshift/origin/pkg/image/apis/image/v1/helpers.go
func LatestTaggedImage ¶
func LatestTaggedImage(stream *imageapiv1.ImageStream, tag string) *imageapiv1.TagEvent
LatestTaggedImage returns the most recent TagEvent for the specified image repository and tag. Will resolve lookups for the empty tag. Returns nil if tag isn't present in stream.status.tags.
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.
func ResolveImageID ¶
func ResolveImageID(stream *imageapiv1.ImageStream, imageID string) (*imageapiv1.TagEvent, error)
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. Copied from v3.7 github.com/openshift/origin/pkg/image/apis/image/v1/helpers.go
Types ¶
This section is empty.