image

package
v1.43.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 25 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(ctx context.Context, policyContext *signature.PolicyContext, destRef, srcRef types.ImageReference, options *copy.Options) ([]byte, 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 ProcessImages

func ProcessImages(srcRegistry, destRegistry registry.RegistryOptions, appSlug string, log *logger.CLILogger, reportWriter io.Writer, upstreamDir string, additionalImages []string, copyImages, allImagesPrivate bool, checkedImages map[string]ImageInfo) ([]kustomizeimage.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 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