carvelhelpers

package
v0.17.0-dev Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 17 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 DownloadImageBundleAndSaveFilesToTempDir added in v0.11.2

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) ([]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> | kbld -f -`

func ProcessYTTPackage

func ProcessYTTPackage(configDir 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