image

package
v1.33.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImageAltNames

func BuildImageAltNames(rewrittenImage kustomizetypes.Image) []kustomizetypes.Image

func CopyFromFileToRegistry

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

func CopyImageWithGC

func CopyImageWithGC(src string, dst string, opts *Options) error

func CopyImages added in v1.6.0

func CopyImages(srcRegistry, destRegistry registry.RegistryOptions, appSlug string, log *logger.CLILogger, 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) (kustomizetypes.Image, error)

func IsPrivateImage

func IsPrivateImage(image string) (bool, error)

func PushImageFromStream added in v1.33.0

func PushImageFromStream(image containerregistryv1.Image, dst string, opt []crane.Option) error

func RegistryImageFromReader added in v1.33.0

func RegistryImageFromReader(path string) (containerregistryv1.Image, 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 Options added in v1.33.0

type Options struct {
	SrcRemoteOpts []remote.Option
	DstRemoteOpts []remote.Option
}

func DefaultRemoteOpts added in v1.33.0

func DefaultRemoteOpts() *Options

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