elementalcli

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: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/elementalcli (interfaces: Runner)

Generated by this command:

mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/agent/elementalcli/runner_mocks.go -package=elementalcli github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/elementalcli Runner

Package elementalcli is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Install added in v0.1.0

type Install struct {
	Firmware         string   `json:"firmware,omitempty" mapstructure:"firmware"`
	Device           string   `json:"device,omitempty" mapstructure:"device"`
	NoFormat         bool     `json:"noFormat,omitempty" mapstructure:"noFormat"`
	ConfigURLs       []string `json:"configUrls,omitempty" mapstructure:"configUrls"`
	ISO              string   `json:"iso,omitempty" mapstructure:"iso"`
	SystemURI        string   `json:"systemUri,omitempty" mapstructure:"systemUri"`
	Debug            bool     `json:"debug,omitempty" mapstructure:"debug"`
	TTY              string   `json:"tty,omitempty" mapstructure:"tty"`
	EjectCD          bool     `json:"ejectCd,omitempty" mapstructure:"ejectCd"`
	DisableBootEntry bool     `json:"disableBootEntry,omitempty" mapstructure:"disableBootEntry"`
	ConfigDir        string   `json:"configDir,omitempty" mapstructure:"configDir"`
}

type MockRunner added in v0.1.0

type MockRunner struct {
	// contains filtered or unexported fields
}

MockRunner is a mock of Runner interface.

func NewMockRunner added in v0.1.0

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT added in v0.1.0

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRunner) Install added in v0.1.0

func (m *MockRunner) Install(arg0 Install) error

Install mocks base method.

func (*MockRunner) Reset added in v0.1.0

func (m *MockRunner) Reset(arg0 Reset) error

Reset mocks base method.

type MockRunnerMockRecorder added in v0.1.0

type MockRunnerMockRecorder struct {
	// contains filtered or unexported fields
}

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) Install added in v0.1.0

func (mr *MockRunnerMockRecorder) Install(arg0 any) *gomock.Call

Install indicates an expected call of Install.

func (*MockRunnerMockRecorder) Reset added in v0.1.0

func (mr *MockRunnerMockRecorder) Reset(arg0 any) *gomock.Call

Reset indicates an expected call of Reset.

type Reset added in v0.1.0

type Reset struct {
	Enabled         bool     `json:"enabled,omitempty" mapstructure:"enabled"`
	ResetPersistent bool     `json:"resetPersistent,omitempty" mapstructure:"resetPersistent"`
	ResetOEM        bool     `json:"resetOem,omitempty" mapstructure:"resetOem"`
	ConfigURLs      []string `json:"configUrls,omitempty" mapstructure:"configUrls"`
	SystemURI       string   `json:"systemUri,omitempty" mapstructure:"systemUri"`
	Debug           bool     `json:"debug,omitempty" mapstructure:"debug"`
}

type Runner

type Runner interface {
	Install(Install) error
	Reset(Reset) error
}

func NewRunner

func NewRunner() Runner

Jump to

Keyboard shortcuts

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