image

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Minio          = "minio/minio:RELEASE.2022-06-11T19-55-32Z"
	PostgresAlpine = "postgres:10.21-alpine"
	PostgresDebian = "postgres:10.21"
	Dex            = "ghcr.io/dexidp/dex:v2.32.0"
	Schemahero     = "schemahero/schemahero:0.13.1"
	Lvp            = "replicated/local-volume-provider:v0.3.5"
)

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, 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 GetMinioImage

func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)

MinioImage looks through the nodes in the cluster and finds nodes that have already pulled Minio, and then finds the latest image tag listed

func GetPrivateImages

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

func GetTag

func GetTag(imageRef string) (string, error)

GetTag extracts the image tag from an image reference

func ImageInfoFromFile

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

func IsPrivateImage

func IsPrivateImage(image string, dockerHubRegistry registry.RegistryOptions) (bool, error)

if dockerHubRegistry is provided, its credentials will be used in case of rate limiting

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, dockerHubRegistry registry.RegistryOptions) ([]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