util

package
v0.0.0-...-fb4650c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileOrDirectoryExists

func CheckFileOrDirectoryExists(path string) bool

CheckFileOrDirectoryExists to check directory or file is present on the given path.

func CopyConfigFile

func CopyConfigFile(src, dst string) (int64, error)

CopyConfigFile copies file content from sourc (src) to destination (dst) path.

func DeleteDirectory

func DeleteDirectory(path string) error

DeleteDirectory is to delete directory in a given path.

func ExeCmd

func ExeCmd(cmd string) (string, error)

ExeCmd executes the given command

func ExecuteSingleCommand

func ExecuteSingleCommand(name string, arg ...string) (string, error)

func GetClusterConfigPath

func GetClusterConfigPath(cluster string) (string, error)

GetClusterConfigPath returns specific cluster config file path

func GetClusterPath

func GetClusterPath(cluster string) (string, error)

GetClusterPath returns specific cluster directory path

func GetHomeDir

func GetHomeDir() (string, error)

GetHomeDir gives the current user home directory path

func GetKubeconfigEnvValue

func GetKubeconfigEnvValue() (string, error)

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.

Jump to

Keyboard shortcuts

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