Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/utils (interfaces: CommandRunner)
Generated by this command:
mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/agent/utils/runner_mocks.go -package=utils github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/utils CommandRunner
Package utils is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotADirectory = errors.New("path exists but it's not a directory")
Functions ¶
func CreateDirectory ¶
Types ¶
type CommandRunner ¶ added in v0.1.0
func NewCommandRunner ¶ added in v0.1.0
func NewCommandRunner() CommandRunner
type MockCommandRunner ¶ added in v0.1.0
type MockCommandRunner struct {
// contains filtered or unexported fields
}
MockCommandRunner is a mock of CommandRunner interface.
func NewMockCommandRunner ¶ added in v0.1.0
func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner
NewMockCommandRunner creates a new mock instance.
func (*MockCommandRunner) EXPECT ¶ added in v0.1.0
func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommandRunner) RunCommand ¶ added in v0.1.0
func (m *MockCommandRunner) RunCommand(arg0 string) error
RunCommand mocks base method.
type MockCommandRunnerMockRecorder ¶ added in v0.1.0
type MockCommandRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner.
func (*MockCommandRunnerMockRecorder) RunCommand ¶ added in v0.1.0
func (mr *MockCommandRunnerMockRecorder) RunCommand(arg0 any) *gomock.Call
RunCommand indicates an expected call of RunCommand.
Click to show internal directories.
Click to hide internal directories.