utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdinToken string = "-"
)

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, msg string)

CheckError default error handling function

func CreateFile

func CreateFile(path string) (afero.File, error)

CreateFile create a new file in path

func ExtractYAMLFiles

func ExtractYAMLFiles(paths []string) ([]string, error)

ExtractYAMLFiles return array of YAML filenames from array of files and directories

func MkdirAll

func MkdirAll(name string) error

MkdirAll create a folder

func ReadFile

func ReadFile(filename string) ([]byte, error)

ReadFile read a file from the file system

func RemoveAll

func RemoveAll(path string) error

RemoveAll removes a directory path and any children it contains.

func WriteFile

func WriteFile(filename string, data []byte) error

WriteFile write data to file

func WriteYamlsToDisk

func WriteYamlsToDisk(objs map[string]runtime.Object, outputDirectory string)

WriteYamlsToDisk marshals and writes kubernetes runtime objects to YAML file

Types

type DeployConfig

type DeployConfig struct {
	DeployType              string
	ForceDeployWhenNoSemver bool
	EnsureNamespace         bool
}

DeployConfig are all the specific configurations used in deploy phase

type Options

type Options struct {
	Config *genericclioptions.ConfigFlags

	CertificateAuthority  string
	ClientCertificate     string
	ClientKey             string
	Cluster               string
	Context               string
	Kubeconfig            string
	InsecureSkipTLSVerify bool
	Namespace             string
	Server                string
	Token                 string
	User                  string
}

Options global option for the cli that can be passed to all commands

Jump to

Keyboard shortcuts

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