carvelhelpers

package
v0.0.0-...-52d730d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package carvelhelpers implements wrapper functions to use carvel tooling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CarvelPackageProcessor

func CarvelPackageProcessor(pkgDir, image string, valuesFiles ...string) ([]byte, error)

CarvelPackageProcessor processes a carvel package and returns a configuration YAML file

func DownloadImageBundleAndSaveFilesToDir

func DownloadImageBundleAndSaveFilesToDir(imageWithTag, dir string) error

DownloadImageBundleAndSaveFilesToDir reads OCI image and saves file to the specified directory

func DownloadImageBundleAndSaveFilesToTempDir

func DownloadImageBundleAndSaveFilesToTempDir(imageWithTag string) (string, error)

DownloadImageBundleAndSaveFilesToTempDir reads OCI image and saves file to temp dir returns temp configuration dir with downloaded imgpkg bundle

func GetFilesMapFromImage

func GetFilesMapFromImage(imageWithTag string) (map[string][]byte, error)

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 ProcessCarvelPackage

func ProcessCarvelPackage(image string, valuesFiles ...string) ([]byte, error)

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

func ProcessYTTPackage(configDirs ...string) ([]byte, error)

ProcessYTTPackage processes configuration directory with ytt tool Implements similar functionality as `ytt -f <config-dir>`

func ResolveImagesInPackage

func ResolveImagesInPackage(files []string) ([]byte, error)

ResolveImagesInPackage resolves the images using kbld tool Implements similar functionality as `kbld -f <file1> -f <file2>`

Types

type NoopUI

type NoopUI struct{}

NoopUI implement noop interface for logging used with carvel tooling

func (NoopUI) DebugWriter

func (ui NoopUI) DebugWriter() io.Writer

DebugWriter noop debug writer

func (NoopUI) Debugf

func (ui NoopUI) Debugf(str string, args ...interface{})

Debugf noop debug

func (NoopUI) Printf

func (ui NoopUI) Printf(str string, args ...interface{})

Printf noop print

func (NoopUI) Warnf

func (ui NoopUI) Warnf(str string, args ...interface{})

Warnf noop warn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL