...
Package utils
import "github.com/GoogleCloudPlatform/k8s-config-connector/operator/scripts/utils"
- Overview
- Index
- func BytesToUnstruct(bytes []byte) (*unstructured.Unstructured, error)
- func Copy(source, dest string) error
- func DownloadAndExtractTarballAt(gcsPath, outputDir string) error
- func DownloadObjectFromGCS(gcsPath, outputDir string) error
- func Execute(cmd *exec.Cmd) error
- func ExecuteAndCaptureOutput(cmd *exec.Cmd) (stdout string, err error)
- func ExtractTarball(tarballPath, outputDir string) error
- func KustomizeBuild(path, output string) error
- func ReadFileToUnstructs(filePath string) ([]*unstructured.Unstructured, error)
- func SplitYAML(yamlBytes []byte) ([][]byte, error)
- func UnstructToYaml(u *unstructured.Unstructured) ([]byte, error)
Package files
cmd.go
yaml.go
func BytesToUnstruct(bytes []byte) (*unstructured.Unstructured, error)
func Copy(source, dest string) error
func DownloadAndExtractTarballAt(gcsPath, outputDir string) error
func DownloadObjectFromGCS(gcsPath, outputDir string) error
func Execute(cmd *exec.Cmd) error
func ExecuteAndCaptureOutput(cmd *exec.Cmd) (stdout string, err error)
func ExtractTarball(tarballPath, outputDir string) error
func KustomizeBuild(path, output string) error
func ReadFileToUnstructs(filePath string) ([]*unstructured.Unstructured, error)
func SplitYAML(yamlBytes []byte) ([][]byte, error)
func UnstructToYaml(u *unstructured.Unstructured) ([]byte, error)