Documentation ¶
Overview ¶
Package exec is a generated GoMock package.
Index ¶
- func BackgroundRun(cmd *exec.Cmd, name string, debug bool) (err error)
- func BackgroundRunWithCtx(cmdCtx *CMDContext, debug bool) (err error)
- func RunAndWait(cmd *exec.Cmd, name string, debug bool) (err error)
- type CMDContext
- type Cli
- type CliInterface
- type MockCliInterface
- type MockCliInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundRun ¶
BackgroundRun run cmd in background
func BackgroundRunWithCtx ¶
func BackgroundRunWithCtx(cmdCtx *CMDContext, debug bool) (err error)
BackgroundRunWithCtx run cmd in background with context
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 ...
type MockCliInterface ¶
type MockCliInterface struct {
// contains filtered or unexported fields
}
MockCliInterface is a mock of CliInterface interface
func NewMockCliInterface ¶
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface
NewMockCliInterface creates a new mock instance
func (*MockCliInterface) EXPECT ¶
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCliInterface) Kubectl ¶
func (m *MockCliInterface) Kubectl() kubectl.CliInterface
Kubectl mocks base method
func (*MockCliInterface) SSH ¶
func (m *MockCliInterface) SSH() ssh.CliInterface
SSH mocks base method
func (*MockCliInterface) SSHUttle ¶
func (m *MockCliInterface) SSHUttle() sshuttle.CliInterface
SSHUttle mocks base method
type MockCliInterfaceMockRecorder ¶
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface
func (*MockCliInterfaceMockRecorder) Kubectl ¶
func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call
Kubectl indicates an expected call of Kubectl
func (*MockCliInterfaceMockRecorder) SSH ¶
func (mr *MockCliInterfaceMockRecorder) SSH() *gomock.Call
SSH indicates an expected call of SSH
func (*MockCliInterfaceMockRecorder) SSHUttle ¶
func (mr *MockCliInterfaceMockRecorder) SSHUttle() *gomock.Call
SSHUttle indicates an expected call of SSHUttle
Directories ¶
Path | Synopsis |
---|---|
Package kubectl is a generated GoMock package.
|
Package kubectl is a generated GoMock package. |
Package ssh is a generated GoMock package.
|
Package ssh is a generated GoMock package. |
Package sshuttle is a generated GoMock package.
|
Package sshuttle is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.