Documentation
¶
Overview ¶
Package exec is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundRun ¶
BackgroundRun run cmd in background
func BackgroundRunWithCtx ¶ added in v0.1.0
func BackgroundRunWithCtx(cmdCtx *CMDContext) (err error)
BackgroundRunWithCtx run cmd in background with context
Types ¶
type CMDContext ¶ added in v0.1.0
type CMDContext struct {
Ctx context.Context
Cmd *exec.Cmd
Name string
Stop chan string // notify parent current Cmd occur error
}
CMDContext context of cmd
type CliInterface ¶ added in v0.1.0
type CliInterface interface {
Kubectl() kubectl.CliInterface
SSHUttle() sshuttle.CliInterface
SSH() ssh.CliInterface
}
CliInterface ...
type MockCliInterface ¶ added in v0.1.0
type MockCliInterface struct {
// contains filtered or unexported fields
}
MockCliInterface is a mock of CliInterface interface.
func NewMockCliInterface ¶ added in v0.1.0
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface
NewMockCliInterface creates a new mock instance.
func (*MockCliInterface) EXPECT ¶ added in v0.1.0
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCliInterface) Kubectl ¶ added in v0.1.0
func (m *MockCliInterface) Kubectl() kubectl.CliInterface
Kubectl mocks base method.
func (*MockCliInterface) SSH ¶ added in v0.1.0
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 ¶ added in v0.1.0
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.
func (*MockCliInterfaceMockRecorder) Kubectl ¶ added in v0.1.0
func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call
Kubectl indicates an expected call of Kubectl.
func (*MockCliInterfaceMockRecorder) SSH ¶ added in v0.1.0
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.