commons

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Flags
	KubeConfigFlagName           = "kube-config"
	KubeConfigFlagShort          = "c"
	KubeConfigFlagDescription    = "Kubernetes configuration custom (`PATH`)"
	SingleKonfigsFlagName        = "single-konfigs"
	SingleKonfigsFlagShort       = "k"
	SingleKonfigsFlagDescription = "Single Kubernetes konfigurations custom (`PATH`)"

	// Environment variables
	KubeConfigPathEnvVar     = "KONF_KUBE_CONFIG_PATH"
	KubeConfigPathDefault    = ".kube/config"
	SingleKonfigsPathEnvVar  = "KONF_SINGLE_KUBE_KONFIGS_PATH"
	SingleKonfigsPathDefault = ".kube/konfigs"
	KubeConfigEnvVar         = "KUBECONFIG"
	KubeConfigEnvVarDefault  = ""
)

Variables

This section is empty.

Functions

func Check

func Check(key string) (string, bool)

func CheckIfFileExist

func CheckIfFileExist(filepath string) error

func CheckIfFolderExist

func CheckIfFolderExist(path string, createIfNot bool) error

func GetBool

func GetBool(key string, defaultValue bool) bool

func GetHomeDirOrExit

func GetHomeDirOrExit(methodCaller string) string

func GetInt

func GetInt(key string, defaultValue int) int

func GetInt64

func GetInt64(key string, defaultValue int64) int64

func GetString

func GetString(key, defaultValue string) string

func GetUrfaveFlagName

func GetUrfaveFlagName(name, short string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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