Documentation ¶
Index ¶
- func CheckFileOrDirectoryExists(path string) bool
- func CopyConfigFile(src, dst string) (int64, error)
- func DeleteDirectory(path string) error
- func ExeCmd(cmd string) (string, error)
- func ExecuteSingleCommand(name string, arg ...string) (string, error)
- func GetClusterConfigPath(cluster string) (string, error)
- func GetClusterPath(cluster string) (string, error)
- func GetHomeDir() (string, error)
- func GetKubeconfigEnvValue() (string, error)
- func TerminalWithKubeconfig(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileOrDirectoryExists ¶
CheckFileOrDirectoryExists to check directory or file is present on the given path.
func CopyConfigFile ¶
CopyConfigFile copies file content from sourc (src) to destination (dst) path.
func DeleteDirectory ¶
DeleteDirectory is to delete directory in a given path.
func GetClusterConfigPath ¶
GetClusterConfigPath returns specific cluster config file path
func GetClusterPath ¶
GetClusterPath returns specific cluster directory path
func GetHomeDir ¶
GetHomeDir gives the current user home directory path
func GetKubeconfigEnvValue ¶
GetKubeconfigEnvValue returns the kubeconfig environment value
func TerminalWithKubeconfig ¶
func TerminalWithKubeconfig(path string)
TerminalWithKubeconfig exports the KUBECONFIG in the new terminal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.