Documentation ¶
Index ¶
- func BackgroundRun(cmd *exec.Cmd, name string, debug bool) (err error)
- func CreateDirIfNotExist(dir string)
- func GetCirds(clientset *kubernetes.Clientset, podCIDR string) (cidrs []string, err error)
- func GetOutboundIP() (address string)
- func GetRandomSSHPort(podIP string) string
- func HomeDir() string
- func IsDaemonRunning(pidFile string) bool
- func PortForward(kubeConifg string, namespace string, resource string, remotePort int) *exec.Cmd
- func RandomString(n int) string
- func SSHRemotePortForward(localPort string, remoteHost string, remotePort string, remoteSSHPort int) *exec.Cmd
- func SSHUttle(remoteHost string, remotePort int, DNSServer string, disableDNS bool, ...) *exec.Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundRun ¶
BackgroundRun run cmd in background
func GetCirds ¶
func GetCirds(clientset *kubernetes.Clientset, podCIDR string) (cidrs []string, err error)
GetCirds Get kubernetes cluster resource crids
func GetOutboundIP ¶
func GetOutboundIP() (address string)
GetOutboundIP Get preferred outbound ip of this machine
func GetRandomSSHPort ¶
GetRandomSSHPort get pod random ssh port
func IsDaemonRunning ¶
IsDaemonRunning check daemon is running or not
func PortForward ¶
PortForward kubectl port forward
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.