Documentation ¶
Index ¶
- func BuildImageAltNames(rewrittenImage kustomizetypes.Image) ([]kustomizetypes.Image, error)
- func DestImage(destRegistry registrytypes.RegistryOptions, srcImage string) (string, error)
- func DestImageFromKustomizeImage(image kustomizetypes.Image) string
- func GetTag(imageRef string) (string, error)
- func KustomizeImage(destRegistry registrytypes.RegistryOptions, image string) ([]kustomizetypes.Image, error)
- func RewriteDockerArchiveImage(registry registrytypes.RegistryOptions, nameParts []string) (kustomizetypes.Image, error)
- func RewriteDockerRegistryImage(destRegistry registrytypes.RegistryOptions, srcImage string) (*kustomizetypes.Image, error)
- func SrcImageFromKustomizeImage(image kustomizetypes.Image) string
- func StripImageTagAndDigest(image string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImageAltNames ¶
func BuildImageAltNames(rewrittenImage kustomizetypes.Image) ([]kustomizetypes.Image, error)
func DestImage ¶
func DestImage(destRegistry registrytypes.RegistryOptions, srcImage string) (string, error)
DestImage returns the location to push the image to on the dest registry
func DestImageFromKustomizeImage ¶
func DestImageFromKustomizeImage(image kustomizetypes.Image) string
DestImageFromKustomizeImage returns the location to push the image to from a kustomize image type
func KustomizeImage ¶
func KustomizeImage(destRegistry registrytypes.RegistryOptions, image string) ([]kustomizetypes.Image, error)
func RewriteDockerArchiveImage ¶
func RewriteDockerArchiveImage(registry registrytypes.RegistryOptions, nameParts []string) (kustomizetypes.Image, error)
func RewriteDockerRegistryImage ¶
func RewriteDockerRegistryImage(destRegistry registrytypes.RegistryOptions, srcImage string) (*kustomizetypes.Image, error)
func SrcImageFromKustomizeImage ¶
func SrcImageFromKustomizeImage(image kustomizetypes.Image) string
SrcImageFromKustomizeImage returns the location of the source image from a kustomize image type Note: if image name contains both a tag and a digest, only the digest is used, so the result might not exactly match the original image name.
func StripImageTagAndDigest ¶
StripImageTagAndDigest removes the tag and digest from an image while preserving the original name. This can be helpful because parsing the image as a docker reference can modify the hostname (e.g. adds docker.io/library)
Types ¶
This section is empty.