Documentation ¶
Index ¶
- Constants
- func BuildImageAltNames(rewrittenImage kustomizetypes.Image) []kustomizetypes.Image
- func CopyFromFileToRegistry(path string, name string, tag string, digest string, auth RegistryAuth, ...) error
- func CopyImageWithGC(ctx context.Context, destRef, srcRef types.ImageReference, ...) ([]byte, error)
- func DestRef(registry registry.RegistryOptions, srcImage string) string
- func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)
- func GetPrivateImages(upstreamDir string, checkedImages map[string]ImageInfo, allPrivate bool, ...) ([]string, []k8sdoc.K8sDoc, error)
- func GetTag(imageRef string) (string, error)
- func ImageInfoFromFile(registry registry.RegistryOptions, nameParts []string) (kustomizetypes.Image, error)
- func IsPrivateImage(image string, dockerHubRegistry registry.RegistryOptions) (bool, error)
- func ProcessImages(srcRegistry, destRegistry registry.RegistryOptions, appSlug string, ...) ([]kustomizeimage.Image, error)
- func RewritePrivateImage(srcRegistry registry.RegistryOptions, image string, appSlug string) (string, error)
- type ImageInfo
- type ImageRef
- type RegistryAuth
Constants ¶
View Source
const ( Minio = "minio/minio:RELEASE.2022-01-08T03-11-54Z" PostgresAlpine = "postgres:10.19-alpine" PostgresDebian = "postgres:10.19" Dex = "ghcr.io/dexipd/dex:v2.30.2" Schemahero = "schemahero/schemahero:0.12.7" )
Variables ¶
This section is empty.
Functions ¶
func BuildImageAltNames ¶
func BuildImageAltNames(rewrittenImage kustomizetypes.Image) []kustomizetypes.Image
func CopyFromFileToRegistry ¶
func CopyImageWithGC ¶
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 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 ¶
Types ¶
type ImageRef ¶
func RefFromImage ¶
type RegistryAuth ¶
Click to show internal directories.
Click to hide internal directories.