utils

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUnstruct

func BytesToUnstruct(bytes []byte) (*unstructured.Unstructured, error)

func Copy

func Copy(source, dest string) error

func DownloadAndExtractTarballAt

func DownloadAndExtractTarballAt(gcsPath, outputDir string) error

func DownloadObjectFromGCS

func DownloadObjectFromGCS(gcsPath, outputDir string) error

func Execute

func Execute(cmd *exec.Cmd) error

func ExecuteAndCaptureOutput

func ExecuteAndCaptureOutput(cmd *exec.Cmd) (stdout string, err error)

func ExtractTarball

func ExtractTarball(tarballPath, outputDir string) error

func KustomizeBuild

func KustomizeBuild(path, output string) error

func ReadFileToUnstructs

func ReadFileToUnstructs(filePath string) ([]*unstructured.Unstructured, error)

func SplitYAML

func SplitYAML(yamlBytes []byte) ([][]byte, error)

func UnstructToYaml

func UnstructToYaml(u *unstructured.Unstructured) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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