elementalcli

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 9 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

View Source
const (
	CorrelationIDLabelKey = "correlationID"
)

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"`
	Snapshotter      Snapshotter `json:"snapshotter,omitempty" mapstructure:"snapshotter"`
}

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) GetState added in v0.7.0

func (m *MockRunner) GetState() (State, error)

GetState mocks base method.

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.

func (*MockRunner) Upgrade added in v0.7.0

func (m *MockRunner) Upgrade(arg0 Upgrade, arg1 string) error

Upgrade 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) GetState added in v0.7.0

func (mr *MockRunnerMockRecorder) GetState() *gomock.Call

GetState indicates an expected call of GetState.

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.

func (*MockRunnerMockRecorder) Upgrade added in v0.7.0

func (mr *MockRunnerMockRecorder) Upgrade(arg0, arg1 any) *gomock.Call

Upgrade indicates an expected call of Upgrade.

type PartitionState added in v0.7.0

type PartitionState struct {
	Snapshots map[int]*Snapshot `yaml:"snapshots,omitempty"`
}

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
	Upgrade(Upgrade, string) error
	GetState() (State, error)
}

func NewRunner

func NewRunner() Runner

type Snapshot added in v0.7.0

type Snapshot struct {
	Active bool              `yaml:"active,omitempty"`
	Labels map[string]string `yaml:"labels,omitempty"`
}

type Snapshotter added in v0.6.0

type Snapshotter struct {
	Type string `json:"type,omitempty" mapstructure:"type"`
}

type State added in v0.7.0

type State struct {
	StatePartition PartitionState `yaml:"state,omitempty"`
}

type Upgrade added in v0.7.0

type Upgrade struct {
	ImageURI        string `json:"imageUri,omitempty" mapstructure:"imageUri"`
	UpgradeRecovery bool   `json:"upgradeRecovery,omitempty" mapstructure:"upgradeRecovery"`
	Debug           bool   `json:"debug,omitempty" mapstructure:"debug"`
}

Jump to

Keyboard shortcuts

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