Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundRun ¶
func BackgroundRun(cmd *exec.Cmd, name string, debug bool) (err error)
BackgroundRun run cmd in background
func BackgroundRunWithCtx ¶
func BackgroundRunWithCtx(cmdCtx *CMDContext, debug bool) (err error)
BackgroundRunWithCtx run cmd in background with context
func RunAndWait ¶
func RunAndWait(cmd *exec.Cmd, name string, debug bool) (err error)
RunAndWait run cmd
Types ¶
type CMDContext ¶
type CMDContext struct {
Ctx context.Context
Cmd *exec.Cmd
Name string
Stop chan bool // notify parent current Cmd occur error
}
CMDContext context of cmd
type CliInterface ¶
type CliInterface interface {
Kubectl() kubectl.CliInterface
SSHUttle() sshuttle.CliInterface
SSH() ssh.CliInterface
}
CliInterface ...
Click to show internal directories.
Click to hide internal directories.