util

package
v4.2.26+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func InternalImageWithMetadata(image *imageapi.Image) error

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

func ReorderImageLayers(image *imageapi.Image)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL