cmd

package
v0.0.0-...-db62745 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeClient

func CreateKubeClient(kubeConfigPath string) kubernetes.Interface

func ExitIfError

func ExitIfError(err error)

func Exitf

func Exitf(messageFormat string, args ...interface{})

func ExitfIfError

func ExitfIfError(err error, message string)

func GetCertPaths

func GetCertPaths(envVar, defaultPath, name string) (string, string, string)

func GetEnvOrDefault

func GetEnvOrDefault(envVar, defaultValue string) string

func GetExistingEnvFile

func GetExistingEnvFile(envVar, defaultPath, name string) string

func GetExistingFile

func GetExistingFile(path, defaultPath, name string) string

func GetLatestMigrationIndex

func GetLatestMigrationIndex() int

func GetOrDefault

func GetOrDefault(actualValue, defaultValue string) string

func ReadConfigFile

func ReadConfigFile(path string, conf interface{}) error

func VerifyFileExists

func VerifyFileExists(filePath, fileName string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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