image

package
v1.22.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFromFileToRegistry

func CopyFromFileToRegistry(path string, name string, tag string, digest string, auth RegistryAuth, reportWriter io.Writer) error

func CopyImages added in v1.6.0

func CopyImages(srcRegistry, destRegistry registry.RegistryOptions, appSlug string, log *logger.Logger, reportWriter io.Writer, upstreamDir string, additionalImages []string, dryRun, allImagesPrivate bool, checkedImages map[string]ImageInfo) ([]kustomizeimage.Image, error)

func DestRef

func DestRef(registry registry.RegistryOptions, srcImage string) string

DestRef returns the location to push the image to on the dest registry

func GetObjectsWithImages added in v0.9.13

func GetObjectsWithImages(upstreamDir string) ([]k8sdoc.K8sDoc, error)

func GetPrivateImages

func GetPrivateImages(upstreamDir string, checkedImages map[string]ImageInfo, allPrivate bool) ([]string, []k8sdoc.K8sDoc, error)

func ImageInfoFromFile

func ImageInfoFromFile(registry registry.RegistryOptions, nameParts []string) (kustomizeimage.Image, error)

func IsPrivateImage

func IsPrivateImage(image string) (bool, error)

func RewritePrivateImage

func RewritePrivateImage(srcRegistry registry.RegistryOptions, image string, appSlug string) (string, error)

Types

type ImageInfo

type ImageInfo struct {
	IsPrivate bool
}

type ImageRef

type ImageRef struct {
	Domain string
	Name   string
	Tag    string
	Digest string
}

func RefFromImage

func RefFromImage(image string) (*ImageRef, error)

func (*ImageRef) NameBase

func (ref *ImageRef) NameBase() string

func (*ImageRef) String

func (ref *ImageRef) String() string

type RegistryAuth

type RegistryAuth struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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