Documentation
¶
Index ¶
- Variables
- func ConfigGetDefaultPath() (path string)
- func ConfigIPValid(ipAddr string) (valid bool, reason string)
- func ConfigInit() bool
- func ConfigIsIpv4(host string) bool
- func ConfigPathValid(path string) (valid bool, reason string)
- func ConfigReadFile(cfg *Config, filePath string) (err error)
- func ConfigSetDefaultValues(cfg *Config) bool
- func ConfigValidate(filePath string) (valid bool)
- func ConfigWriteFile(cfg *Config, filePath string) (err error)
- func ExecuteCmd(cmd *exec.Cmd, cobraCmd *cobra.Command) (output string, err error)
- func FormatResult(result string, elapsed time.Duration, cobraCmd *cobra.Command) string
- func GetDockerTag(name string, cobraCmd *cobra.Command) (tag string, err error)
- func GetProcess(name string, cobraCmd *cobra.Command) (string, error)
- func GetResourcePrerequisites(group string) ([]string, []string)
- func GetTargets(group string, operation string) []string
- func HelmDelete(name string, cobraCmd *cobra.Command) (err error)
- func HelmFlags(flagsIn [][]string, flag string, value string) (flagsOut [][]string)
- func HelmInstall(name string, chart string, flags [][]string, cobraCmd *cobra.Command) (err error)
- func InterruptProcess(pid string, cobraCmd *cobra.Command)
- func IsDockerImage(name string, cobraCmd *cobra.Command) (exist bool, err error)
- func IsHelmRelease(name string, cobraCmd *cobra.Command) (exist bool, err error)
- func KillProcess(pid string, cobraCmd *cobra.Command)
- func PullDockerImage(repo string, cobraCmd *cobra.Command) (err error)
- func PushDockerImage(newRepo string, cobraCmd *cobra.Command) (err error)
- func TagDockerImage(localRepo string, newRepo string, cobraCmd *cobra.Command) (err error)
- func WaitProcess(pid string, timeout string, cobraCmd *cobra.Command) error
- type Config
- type Meep
- type Node
Constants ¶
This section is empty.
Variables ¶
var CfgInitialized = ConfigInit()
Initialize config file NOTE: This MUST run before the package init() functions
var RepoCfg *viper.Viper
Functions ¶
func ConfigGetDefaultPath ¶
func ConfigGetDefaultPath() (path string)
ConfigGetDefaultPath get default config file path
func ConfigIPValid ¶
ConfigIPValid validates IP address
func ConfigPathValid ¶
ConfigPathValid validates IP address
func ConfigReadFile ¶
ConfigReadFile read the configuration file
func ConfigSetDefaultValues ¶
func ConfigValidate ¶
ConfigValidate validates config file
func ConfigWriteFile ¶
ConfigWriteFile writes the configuration file
func ExecuteCmd ¶
ExecuteCmd wraps exec.Command.CombinedOutput with verbosity
func FormatResult ¶
FormatResult consistent formatting for results to be displayed
func GetDockerTag ¶
GetDockerTag Returns image tag
func GetProcess ¶
GetProcess get a running process ID by name
func GetResourcePrerequisites ¶
GetResourcePrerequisites retreives the keys based on group and operation type
func GetTargets ¶
GetTargets retreives the keys based on group and operation type
operation == "" returns the whole group
func HelmDelete ¶
HelmDelete Deletes specified release
func HelmFlags ¶
HelmFlags Takes helm flag & value pair and formats it into an array of flag value pair
func HelmInstall ¶
HelmInstall Install specified releases
func InterruptProcess ¶
InterruptProcess SIGINT a process by PID
func IsDockerImage ¶
IsDockerImage Returns true if a Docker image exists
func IsHelmRelease ¶
IsHelmRelease Returns true if a Helm release exists
func KillProcess ¶
KillProcess kill a process by PID
func PullDockerImage ¶
PullDockerImage Pulls a docker image
func PushDockerImage ¶
PushDockerImage Push a docker image
func TagDockerImage ¶
TagDockerImage Tag a docker image