Documentation ¶
Index ¶
- func B64EncodeFile(file string) (string, error)
- func CheckPreReqs(lastinstalldir string, gitOpsController string) (bool, error)
- func CopyDir(source string, dest string) error
- func CopyFile(source string, dest string) error
- func CreateWorkDir() (string, error)
- func DownloadFile(file string, url string) (bool, error)
- func RunKustomize(dir string, outfile string) (bool, error)
- func SplitYamls(dir string, yaml string, spliton string) error
- func WriteTemplate(tpl string, fileToCreate string, vars interface{}) (bool, error)
- func WriteYamlOutput(printer client.YamlPrinter, file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func B64EncodeFile ¶ added in v0.0.4
B64EncodeFile returns the base64 encoding of a file as a string. The file must be a full path
func CheckPreReqs ¶
CheckPreReqs() checks to see if you have the proper CLI tools installed
func CreateWorkDir ¶
CreateWorkDir creates a temp dir to store all the things we need
func DownloadFile ¶
DownloadFile will download a url to a local file. It's like WGET
func RunKustomize ¶ added in v0.0.5
RunKustomize runs kustomize on a specific dir and outputs it to a YAML to use for later
func SplitYamls ¶
SplitYamls takes a multi-part YAML file and splits it into multiple files in the specified directory splitting on the string given
func WriteTemplate ¶
WriteTemplate is a generic template writing mechanism
func WriteYamlOutput ¶
func WriteYamlOutput(printer client.YamlPrinter, file string) error
WriteYamlOutput writes YAML to the specified file path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.