Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KubeConfig *rest.Config = nil
KubeConfig represents kubernetes config to connect with kube-api-server
Functions ¶
func CheckKubeAPI ¶
func CheckKubeAPI() bool
CheckKubeAPI checks if kubeconfig exists and is working
func HomeDir ¶
func HomeDir() string
HomeDir provides you the path to home directory from environment variable
func InitKubeConfig ¶
func InitKubeConfig()
InitKubeConfig returns the kube config or nil in case of error
func ParseCPU ¶
ParseCPU parses the string containing cores specified in nano, milli, micro and gives the number of cores as floating point value
func ParseMemory ¶
ParseMemory parses the string containing memory specified in Gi, Mi, Ki and gives the memory in bytes as floating point value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.