exec

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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.

type Runner

type Runner interface {
	KubernetesClusterRunning() error
	Run(command string) error
	IsKubectlCommand(in string) bool
}

func New

func New(out, err io.Writer) Runner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL