Documentation ¶
Overview ¶
Package carvelhelpers implements wrapper functions to use carvel tooling
Index ¶
- func CarvelPackageProcessor(pkgDir, image string, valuesFiles ...string) ([]byte, error)
- func DownloadImageAndSaveFilesToDir(imageWithTag, destinationDir string) error
- func DownloadImageBundleAndSaveFilesToTempDir(imageWithTag string) (string, error)
- func GetFilesMapFromImage(imageWithTag string) (map[string][]byte, error)
- func GetImageDigest(imageWithTag string) (string, string, error)
- func ProcessCarvelPackage(image string, valuesFiles ...string) ([]byte, error)
- func ProcessYTTPackage(configDirs ...string) ([]byte, error)
- func ResolveImagesInPackage(files []string) ([]byte, error)
- type NoopUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CarvelPackageProcessor ¶
CarvelPackageProcessor processes a carvel package and returns a configuration YAML file
func DownloadImageAndSaveFilesToDir ¶
DownloadImageAndSaveFilesToDir reads a plain OCI image and saves its files to the specified location.
func DownloadImageBundleAndSaveFilesToTempDir ¶
DownloadImageBundleAndSaveFilesToTempDir reads OCI image and saves file to temp dir returns temp configuration dir with downloaded imgpkg bundle
func GetFilesMapFromImage ¶
GetFilesMapFromImage returns map of files metadata It takes os environment variables for custom repository and proxy configuration into account while downloading image from repository
func GetImageDigest ¶ added in v0.0.11
GetImageDigest gets digest of the image
func ProcessCarvelPackage ¶
ProcessCarvelPackage processes a carvel package and returns a configuration YAML Downloads package to temporary directory and processes the package by implementing equivalent functionality as the command: `ytt -f <path> [-f <values-files>] | kbld -f -`
func ProcessYTTPackage ¶
ProcessYTTPackage processes configuration directory with ytt tool Implements similar functionality as `ytt -f <config-dir>`
func ResolveImagesInPackage ¶
ResolveImagesInPackage resolves the images using kbld tool Implements similar functionality as `kbld -f <file1> -f <file2>`