Documentation ¶
Overview ¶
Package exec is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BashRunner ¶ added in v0.1.4
type BashRunner struct {
// contains filtered or unexported fields
}
func (BashRunner) IsKubectlCommand ¶ added in v0.1.4
func (r BashRunner) IsKubectlCommand(in string) bool
IsKubectlCommand returns true if in starts with "kubectl " TODO: make this check more robust.
func (BashRunner) KubernetesClusterRunning ¶ added in v0.1.4
func (r BashRunner) KubernetesClusterRunning() error
func (BashRunner) Run ¶ added in v0.1.4
func (r BashRunner) Run(command string) error
Run will run the command with 'bash -c'.
type MockRunner ¶ added in v0.1.4
type MockRunner struct {
// contains filtered or unexported fields
}
MockRunner is a mock of Runner interface.
func NewMockRunner ¶ added in v0.1.4
func NewMockRunner(ctrl *gomock.Controller) *MockRunner
NewMockRunner creates a new mock instance.
func (*MockRunner) EXPECT ¶ added in v0.1.4
func (m *MockRunner) EXPECT() *MockRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunner) IsKubectlCommand ¶ added in v0.1.4
func (m *MockRunner) IsKubectlCommand(in string) bool
IsKubectlCommand mocks base method.
func (*MockRunner) KubernetesClusterRunning ¶ added in v0.1.4
func (m *MockRunner) KubernetesClusterRunning() error
KubernetesClusterRunning mocks base method.
func (*MockRunner) Run ¶ added in v0.1.4
func (m *MockRunner) Run(command string) error
Run mocks base method.
type MockRunnerMockRecorder ¶ added in v0.1.4
type MockRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockRunnerMockRecorder is the mock recorder for MockRunner.
func (*MockRunnerMockRecorder) IsKubectlCommand ¶ added in v0.1.4
func (mr *MockRunnerMockRecorder) IsKubectlCommand(in interface{}) *gomock.Call
IsKubectlCommand indicates an expected call of IsKubectlCommand.
func (*MockRunnerMockRecorder) KubernetesClusterRunning ¶ added in v0.1.4
func (mr *MockRunnerMockRecorder) KubernetesClusterRunning() *gomock.Call
KubernetesClusterRunning indicates an expected call of KubernetesClusterRunning.
func (*MockRunnerMockRecorder) Run ¶ added in v0.1.4
func (mr *MockRunnerMockRecorder) Run(command interface{}) *gomock.Call
Run indicates an expected call of Run.