utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func CreateDirectory(fs vfs.FS, path string) error

func WriteFile

func WriteFile(fs vfs.FS, path string, content []byte) error

Types

type CommandRunner added in v0.1.0

type CommandRunner interface {
	RunCommand(command string) error
}

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

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.

Jump to

Keyboard shortcuts

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