Documentation ¶
Index ¶
- 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, policyContext *signature.PolicyContext, ...) ([]byte, error)
- func DestRef(registry registry.RegistryOptions, srcImage string) string
- func GetObjectsWithImages(upstreamDir string) ([]k8sdoc.K8sDoc, error)
- func GetPrivateImages(upstreamDir string, checkedImages map[string]ImageInfo, allPrivate bool, ...) ([]string, []k8sdoc.K8sDoc, 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImageAltNames ¶
func BuildImageAltNames(rewrittenImage kustomizetypes.Image) []kustomizetypes.Image
func CopyFromFileToRegistry ¶
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 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.