mocks

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIHostPortsForAgentsGetter

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

MockAPIHostPortsForAgentsGetter is a mock of APIHostPortsForAgentsGetter interface.

func NewMockAPIHostPortsForAgentsGetter

func NewMockAPIHostPortsForAgentsGetter(ctrl *gomock.Controller) *MockAPIHostPortsForAgentsGetter

NewMockAPIHostPortsForAgentsGetter creates a new mock instance.

func (*MockAPIHostPortsForAgentsGetter) APIHostPortsForAgents

func (m *MockAPIHostPortsForAgentsGetter) APIHostPortsForAgents() ([]network.SpaceHostPorts, error)

APIHostPortsForAgents mocks base method.

func (*MockAPIHostPortsForAgentsGetter) EXPECT

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

type MockAPIHostPortsForAgentsGetterMockRecorder

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

MockAPIHostPortsForAgentsGetterMockRecorder is the mock recorder for MockAPIHostPortsForAgentsGetter.

func (*MockAPIHostPortsForAgentsGetterMockRecorder) APIHostPortsForAgents

func (mr *MockAPIHostPortsForAgentsGetterMockRecorder) APIHostPortsForAgents() *gomock.Call

APIHostPortsForAgents indicates an expected call of APIHostPortsForAgents.

type MockAgentTooler

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

MockAgentTooler is a mock of AgentTooler interface.

func NewMockAgentTooler

func NewMockAgentTooler(ctrl *gomock.Controller) *MockAgentTooler

NewMockAgentTooler creates a new mock instance.

func (*MockAgentTooler) AgentTools

func (m *MockAgentTooler) AgentTools() (*tools.Tools, error)

AgentTools mocks base method.

func (*MockAgentTooler) EXPECT

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

func (*MockAgentTooler) SetAgentVersion

func (m *MockAgentTooler) SetAgentVersion(arg0 version.Binary) error

SetAgentVersion mocks base method.

func (*MockAgentTooler) Tag

func (m *MockAgentTooler) Tag() names.Tag

Tag mocks base method.

type MockAgentToolerMockRecorder

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

MockAgentToolerMockRecorder is the mock recorder for MockAgentTooler.

func (*MockAgentToolerMockRecorder) AgentTools

func (mr *MockAgentToolerMockRecorder) AgentTools() *gomock.Call

AgentTools indicates an expected call of AgentTools.

func (*MockAgentToolerMockRecorder) SetAgentVersion

func (mr *MockAgentToolerMockRecorder) SetAgentVersion(arg0 any) *gomock.Call

SetAgentVersion indicates an expected call of SetAgentVersion.

func (*MockAgentToolerMockRecorder) Tag

Tag indicates an expected call of Tag.

type MockAuthorizer

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

MockAuthorizer is a mock of Authorizer interface.

func NewMockAuthorizer

func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer

NewMockAuthorizer creates a new mock instance.

func (*MockAuthorizer) AuthController

func (m *MockAuthorizer) AuthController() bool

AuthController mocks base method.

func (*MockAuthorizer) AuthMachineAgent

func (m *MockAuthorizer) AuthMachineAgent() bool

AuthMachineAgent mocks base method.

func (*MockAuthorizer) EXPECT

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

func (*MockAuthorizer) GetAuthTag

func (m *MockAuthorizer) GetAuthTag() names.Tag

GetAuthTag mocks base method.

type MockAuthorizerMockRecorder

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

MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.

func (*MockAuthorizerMockRecorder) AuthController

func (mr *MockAuthorizerMockRecorder) AuthController() *gomock.Call

AuthController indicates an expected call of AuthController.

func (*MockAuthorizerMockRecorder) AuthMachineAgent

func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *gomock.Call

AuthMachineAgent indicates an expected call of AuthMachineAgent.

func (*MockAuthorizerMockRecorder) GetAuthTag

func (mr *MockAuthorizerMockRecorder) GetAuthTag() *gomock.Call

GetAuthTag indicates an expected call of GetAuthTag.

type MockBootstrapEnviron

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

MockBootstrapEnviron is a mock of BootstrapEnviron interface.

func NewMockBootstrapEnviron

func NewMockBootstrapEnviron(ctrl *gomock.Controller) *MockBootstrapEnviron

NewMockBootstrapEnviron creates a new mock instance.

func (*MockBootstrapEnviron) Bootstrap

Bootstrap mocks base method.

func (*MockBootstrapEnviron) Config

func (m *MockBootstrapEnviron) Config() *config.Config

Config mocks base method.

func (*MockBootstrapEnviron) ConstraintsValidator

ConstraintsValidator mocks base method.

func (*MockBootstrapEnviron) Create

Create mocks base method.

func (*MockBootstrapEnviron) Destroy

Destroy mocks base method.

func (*MockBootstrapEnviron) DestroyController

func (m *MockBootstrapEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error

DestroyController mocks base method.

func (*MockBootstrapEnviron) EXPECT

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

func (*MockBootstrapEnviron) PrepareForBootstrap

func (m *MockBootstrapEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error

PrepareForBootstrap mocks base method.

func (*MockBootstrapEnviron) SetConfig

func (m *MockBootstrapEnviron) SetConfig(arg0 *config.Config) error

SetConfig mocks base method.

func (*MockBootstrapEnviron) StorageProvider

func (m *MockBootstrapEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)

StorageProvider mocks base method.

func (*MockBootstrapEnviron) StorageProviderTypes

func (m *MockBootstrapEnviron) StorageProviderTypes() ([]storage.ProviderType, error)

StorageProviderTypes mocks base method.

type MockBootstrapEnvironMockRecorder

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

MockBootstrapEnvironMockRecorder is the mock recorder for MockBootstrapEnviron.

func (*MockBootstrapEnvironMockRecorder) Bootstrap

func (mr *MockBootstrapEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call

Bootstrap indicates an expected call of Bootstrap.

func (*MockBootstrapEnvironMockRecorder) Config

Config indicates an expected call of Config.

func (*MockBootstrapEnvironMockRecorder) ConstraintsValidator

func (mr *MockBootstrapEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call

ConstraintsValidator indicates an expected call of ConstraintsValidator.

func (*MockBootstrapEnvironMockRecorder) Create

func (mr *MockBootstrapEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockBootstrapEnvironMockRecorder) Destroy

func (mr *MockBootstrapEnvironMockRecorder) Destroy(arg0 any) *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockBootstrapEnvironMockRecorder) DestroyController

func (mr *MockBootstrapEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call

DestroyController indicates an expected call of DestroyController.

func (*MockBootstrapEnvironMockRecorder) PrepareForBootstrap

func (mr *MockBootstrapEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call

PrepareForBootstrap indicates an expected call of PrepareForBootstrap.

func (*MockBootstrapEnvironMockRecorder) SetConfig

func (mr *MockBootstrapEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call

SetConfig indicates an expected call of SetConfig.

func (*MockBootstrapEnvironMockRecorder) StorageProvider

func (mr *MockBootstrapEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call

StorageProvider indicates an expected call of StorageProvider.

func (*MockBootstrapEnvironMockRecorder) StorageProviderTypes

func (mr *MockBootstrapEnvironMockRecorder) StorageProviderTypes() *gomock.Call

StorageProviderTypes indicates an expected call of StorageProviderTypes.

type MockControllerConfigState

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

MockControllerConfigState is a mock of ControllerConfigState interface.

func NewMockControllerConfigState

func NewMockControllerConfigState(ctrl *gomock.Controller) *MockControllerConfigState

NewMockControllerConfigState creates a new mock instance.

func (*MockControllerConfigState) APIHostPortsForAgents

func (m *MockControllerConfigState) APIHostPortsForAgents() ([]network.SpaceHostPorts, error)

APIHostPortsForAgents mocks base method.

func (*MockControllerConfigState) CompletedMigrationForModel

func (m *MockControllerConfigState) CompletedMigrationForModel(arg0 string) (state.ModelMigration, error)

CompletedMigrationForModel mocks base method.

func (*MockControllerConfigState) ControllerConfig

func (m *MockControllerConfigState) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method.

func (*MockControllerConfigState) EXPECT

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

func (*MockControllerConfigState) ModelExists

func (m *MockControllerConfigState) ModelExists(arg0 string) (bool, error)

ModelExists mocks base method.

func (*MockControllerConfigState) NewExternalControllers

func (m *MockControllerConfigState) NewExternalControllers() state.ExternalControllers

NewExternalControllers mocks base method.

type MockControllerConfigStateMockRecorder

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

MockControllerConfigStateMockRecorder is the mock recorder for MockControllerConfigState.

func (*MockControllerConfigStateMockRecorder) APIHostPortsForAgents

func (mr *MockControllerConfigStateMockRecorder) APIHostPortsForAgents() *gomock.Call

APIHostPortsForAgents indicates an expected call of APIHostPortsForAgents.

func (*MockControllerConfigStateMockRecorder) CompletedMigrationForModel

func (mr *MockControllerConfigStateMockRecorder) CompletedMigrationForModel(arg0 any) *gomock.Call

CompletedMigrationForModel indicates an expected call of CompletedMigrationForModel.

func (*MockControllerConfigStateMockRecorder) ControllerConfig

func (mr *MockControllerConfigStateMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockControllerConfigStateMockRecorder) ModelExists

func (mr *MockControllerConfigStateMockRecorder) ModelExists(arg0 any) *gomock.Call

ModelExists indicates an expected call of ModelExists.

func (*MockControllerConfigStateMockRecorder) NewExternalControllers

func (mr *MockControllerConfigStateMockRecorder) NewExternalControllers() *gomock.Call

NewExternalControllers indicates an expected call of NewExternalControllers.

type MockEnvironConfigGetter

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

MockEnvironConfigGetter is a mock of EnvironConfigGetter interface.

func NewMockEnvironConfigGetter

func NewMockEnvironConfigGetter(ctrl *gomock.Controller) *MockEnvironConfigGetter

NewMockEnvironConfigGetter creates a new mock instance.

func (*MockEnvironConfigGetter) CloudSpec

CloudSpec mocks base method.

func (*MockEnvironConfigGetter) EXPECT

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

func (*MockEnvironConfigGetter) ModelConfig

func (m *MockEnvironConfigGetter) ModelConfig() (*config.Config, error)

ModelConfig mocks base method.

type MockEnvironConfigGetterMockRecorder

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

MockEnvironConfigGetterMockRecorder is the mock recorder for MockEnvironConfigGetter.

func (*MockEnvironConfigGetterMockRecorder) CloudSpec

CloudSpec indicates an expected call of CloudSpec.

func (*MockEnvironConfigGetterMockRecorder) ModelConfig

func (mr *MockEnvironConfigGetterMockRecorder) ModelConfig() *gomock.Call

ModelConfig indicates an expected call of ModelConfig.

type MockLeadershipMachine

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

MockLeadershipMachine is a mock of LeadershipMachine interface.

func NewMockLeadershipMachine

func NewMockLeadershipMachine(ctrl *gomock.Controller) *MockLeadershipMachine

NewMockLeadershipMachine creates a new mock instance.

func (*MockLeadershipMachine) ApplicationNames

func (m *MockLeadershipMachine) ApplicationNames() ([]string, error)

ApplicationNames mocks base method.

func (*MockLeadershipMachine) EXPECT

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

type MockLeadershipMachineMockRecorder

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

MockLeadershipMachineMockRecorder is the mock recorder for MockLeadershipMachine.

func (*MockLeadershipMachineMockRecorder) ApplicationNames

func (mr *MockLeadershipMachineMockRecorder) ApplicationNames() *gomock.Call

ApplicationNames indicates an expected call of ApplicationNames.

type MockLeadershipPinningBackend

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

MockLeadershipPinningBackend is a mock of LeadershipPinningBackend interface.

func NewMockLeadershipPinningBackend

func NewMockLeadershipPinningBackend(ctrl *gomock.Controller) *MockLeadershipPinningBackend

NewMockLeadershipPinningBackend creates a new mock instance.

func (*MockLeadershipPinningBackend) EXPECT

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

func (*MockLeadershipPinningBackend) Machine

Machine mocks base method.

type MockLeadershipPinningBackendMockRecorder

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

MockLeadershipPinningBackendMockRecorder is the mock recorder for MockLeadershipPinningBackend.

func (*MockLeadershipPinningBackendMockRecorder) Machine

Machine indicates an expected call of Machine.

type MockModelOperation

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

MockModelOperation is a mock of ModelOperation interface.

func NewMockModelOperation

func NewMockModelOperation(ctrl *gomock.Controller) *MockModelOperation

NewMockModelOperation creates a new mock instance.

func (*MockModelOperation) Build

func (m *MockModelOperation) Build(arg0 int) ([]txn.Op, error)

Build mocks base method.

func (*MockModelOperation) Done

func (m *MockModelOperation) Done(arg0 error) error

Done mocks base method.

func (*MockModelOperation) EXPECT

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

type MockModelOperationMockRecorder

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

MockModelOperationMockRecorder is the mock recorder for MockModelOperation.

func (*MockModelOperationMockRecorder) Build

func (mr *MockModelOperationMockRecorder) Build(arg0 any) *gomock.Call

Build indicates an expected call of Build.

func (*MockModelOperationMockRecorder) Done

Done indicates an expected call of Done.

type MockStorageCloser

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

MockStorageCloser is a mock of StorageCloser interface.

func NewMockStorageCloser

func NewMockStorageCloser(ctrl *gomock.Controller) *MockStorageCloser

NewMockStorageCloser creates a new mock instance.

func (*MockStorageCloser) Add

Add mocks base method.

func (*MockStorageCloser) AllMetadata

func (m *MockStorageCloser) AllMetadata() ([]binarystorage.Metadata, error)

AllMetadata mocks base method.

func (*MockStorageCloser) Close

func (m *MockStorageCloser) Close() error

Close mocks base method.

func (*MockStorageCloser) EXPECT

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

func (*MockStorageCloser) Metadata

func (m *MockStorageCloser) Metadata(arg0 string) (binarystorage.Metadata, error)

Metadata mocks base method.

func (*MockStorageCloser) Open

Open mocks base method.

type MockStorageCloserMockRecorder

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

MockStorageCloserMockRecorder is the mock recorder for MockStorageCloser.

func (*MockStorageCloserMockRecorder) Add

func (mr *MockStorageCloserMockRecorder) Add(arg0, arg1 any) *gomock.Call

Add indicates an expected call of Add.

func (*MockStorageCloserMockRecorder) AllMetadata

func (mr *MockStorageCloserMockRecorder) AllMetadata() *gomock.Call

AllMetadata indicates an expected call of AllMetadata.

func (*MockStorageCloserMockRecorder) Close

Close indicates an expected call of Close.

func (*MockStorageCloserMockRecorder) Metadata

func (mr *MockStorageCloserMockRecorder) Metadata(arg0 any) *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockStorageCloserMockRecorder) Open

func (mr *MockStorageCloserMockRecorder) Open(arg0 any) *gomock.Call

Open indicates an expected call of Open.

type MockToolsFindEntity

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

MockToolsFindEntity is a mock of ToolsFindEntity interface.

func NewMockToolsFindEntity

func NewMockToolsFindEntity(ctrl *gomock.Controller) *MockToolsFindEntity

NewMockToolsFindEntity creates a new mock instance.

func (*MockToolsFindEntity) EXPECT

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

func (*MockToolsFindEntity) FindEntity

func (m *MockToolsFindEntity) FindEntity(arg0 names.Tag) (state.Entity, error)

FindEntity mocks base method.

type MockToolsFindEntityMockRecorder

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

MockToolsFindEntityMockRecorder is the mock recorder for MockToolsFindEntity.

func (*MockToolsFindEntityMockRecorder) FindEntity

func (mr *MockToolsFindEntityMockRecorder) FindEntity(arg0 any) *gomock.Call

FindEntity indicates an expected call of FindEntity.

type MockToolsFinder

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

MockToolsFinder is a mock of ToolsFinder interface.

func NewMockToolsFinder

func NewMockToolsFinder(ctrl *gomock.Controller) *MockToolsFinder

NewMockToolsFinder creates a new mock instance.

func (*MockToolsFinder) EXPECT

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

func (*MockToolsFinder) FindAgents

func (m *MockToolsFinder) FindAgents(arg0 common.FindAgentsParams) (tools.List, error)

FindAgents mocks base method.

type MockToolsFinderMockRecorder

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

MockToolsFinderMockRecorder is the mock recorder for MockToolsFinder.

func (*MockToolsFinderMockRecorder) FindAgents

func (mr *MockToolsFinderMockRecorder) FindAgents(arg0 any) *gomock.Call

FindAgents indicates an expected call of FindAgents.

type MockToolsStorageGetter

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

MockToolsStorageGetter is a mock of ToolsStorageGetter interface.

func NewMockToolsStorageGetter

func NewMockToolsStorageGetter(ctrl *gomock.Controller) *MockToolsStorageGetter

NewMockToolsStorageGetter creates a new mock instance.

func (*MockToolsStorageGetter) EXPECT

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

func (*MockToolsStorageGetter) ToolsStorage

ToolsStorage mocks base method.

type MockToolsStorageGetterMockRecorder

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

MockToolsStorageGetterMockRecorder is the mock recorder for MockToolsStorageGetter.

func (*MockToolsStorageGetterMockRecorder) ToolsStorage

func (mr *MockToolsStorageGetterMockRecorder) ToolsStorage() *gomock.Call

ToolsStorage indicates an expected call of ToolsStorage.

type MockToolsURLGetter

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

MockToolsURLGetter is a mock of ToolsURLGetter interface.

func NewMockToolsURLGetter

func NewMockToolsURLGetter(ctrl *gomock.Controller) *MockToolsURLGetter

NewMockToolsURLGetter creates a new mock instance.

func (*MockToolsURLGetter) EXPECT

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

func (*MockToolsURLGetter) ToolsURLs

func (m *MockToolsURLGetter) ToolsURLs(arg0 version.Binary) ([]string, error)

ToolsURLs mocks base method.

type MockToolsURLGetterMockRecorder

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

MockToolsURLGetterMockRecorder is the mock recorder for MockToolsURLGetter.

func (*MockToolsURLGetterMockRecorder) ToolsURLs

func (mr *MockToolsURLGetterMockRecorder) ToolsURLs(arg0 any) *gomock.Call

ToolsURLs indicates an expected call of ToolsURLs.

type MockUnitStateBackend

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

MockUnitStateBackend is a mock of UnitStateBackend interface.

func NewMockUnitStateBackend

func NewMockUnitStateBackend(ctrl *gomock.Controller) *MockUnitStateBackend

NewMockUnitStateBackend creates a new mock instance.

func (*MockUnitStateBackend) ApplyOperation

func (m *MockUnitStateBackend) ApplyOperation(arg0 state.ModelOperation) error

ApplyOperation mocks base method.

func (*MockUnitStateBackend) ControllerConfig

func (m *MockUnitStateBackend) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method.

func (*MockUnitStateBackend) EXPECT

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

func (*MockUnitStateBackend) Unit

Unit mocks base method.

type MockUnitStateBackendMockRecorder

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

MockUnitStateBackendMockRecorder is the mock recorder for MockUnitStateBackend.

func (*MockUnitStateBackendMockRecorder) ApplyOperation

func (mr *MockUnitStateBackendMockRecorder) ApplyOperation(arg0 any) *gomock.Call

ApplyOperation indicates an expected call of ApplyOperation.

func (*MockUnitStateBackendMockRecorder) ControllerConfig

func (mr *MockUnitStateBackendMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockUnitStateBackendMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockUnitStateUnit

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

MockUnitStateUnit is a mock of UnitStateUnit interface.

func NewMockUnitStateUnit

func NewMockUnitStateUnit(ctrl *gomock.Controller) *MockUnitStateUnit

NewMockUnitStateUnit creates a new mock instance.

func (*MockUnitStateUnit) EXPECT

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

func (*MockUnitStateUnit) SetStateOperation

SetStateOperation mocks base method.

func (*MockUnitStateUnit) State

func (m *MockUnitStateUnit) State() (*state.UnitState, error)

State mocks base method.

type MockUnitStateUnitMockRecorder

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

MockUnitStateUnitMockRecorder is the mock recorder for MockUnitStateUnit.

func (*MockUnitStateUnitMockRecorder) SetStateOperation

func (mr *MockUnitStateUnitMockRecorder) SetStateOperation(arg0, arg1 any) *gomock.Call

SetStateOperation indicates an expected call of SetStateOperation.

func (*MockUnitStateUnitMockRecorder) State

State indicates an expected call of State.

type MockUpgradeSeriesBackend

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

MockUpgradeSeriesBackend is a mock of UpgradeSeriesBackend interface.

func NewMockUpgradeSeriesBackend

func NewMockUpgradeSeriesBackend(ctrl *gomock.Controller) *MockUpgradeSeriesBackend

NewMockUpgradeSeriesBackend creates a new mock instance.

func (*MockUpgradeSeriesBackend) EXPECT

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

func (*MockUpgradeSeriesBackend) Machine

Machine mocks base method.

func (*MockUpgradeSeriesBackend) Unit

Unit mocks base method.

type MockUpgradeSeriesBackendMockRecorder

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

MockUpgradeSeriesBackendMockRecorder is the mock recorder for MockUpgradeSeriesBackend.

func (*MockUpgradeSeriesBackendMockRecorder) Machine

Machine indicates an expected call of Machine.

func (*MockUpgradeSeriesBackendMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockUpgradeSeriesMachine

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

MockUpgradeSeriesMachine is a mock of UpgradeSeriesMachine interface.

func NewMockUpgradeSeriesMachine

func NewMockUpgradeSeriesMachine(ctrl *gomock.Controller) *MockUpgradeSeriesMachine

NewMockUpgradeSeriesMachine creates a new mock instance.

func (*MockUpgradeSeriesMachine) Base

Base mocks base method.

func (*MockUpgradeSeriesMachine) EXPECT

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

func (*MockUpgradeSeriesMachine) RemoveUpgradeSeriesLock

func (m *MockUpgradeSeriesMachine) RemoveUpgradeSeriesLock() error

RemoveUpgradeSeriesLock mocks base method.

func (*MockUpgradeSeriesMachine) SetInstanceStatus

func (m *MockUpgradeSeriesMachine) SetInstanceStatus(arg0 status.StatusInfo) error

SetInstanceStatus mocks base method.

func (*MockUpgradeSeriesMachine) SetUpgradeSeriesStatus

func (m *MockUpgradeSeriesMachine) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error

SetUpgradeSeriesStatus mocks base method.

func (*MockUpgradeSeriesMachine) StartUpgradeSeriesUnitCompletion

func (m *MockUpgradeSeriesMachine) StartUpgradeSeriesUnitCompletion(arg0 string) error

StartUpgradeSeriesUnitCompletion mocks base method.

func (*MockUpgradeSeriesMachine) Units

Units mocks base method.

func (*MockUpgradeSeriesMachine) UpdateMachineSeries

func (m *MockUpgradeSeriesMachine) UpdateMachineSeries(arg0 state.Base) error

UpdateMachineSeries mocks base method.

func (*MockUpgradeSeriesMachine) UpgradeSeriesStatus

func (m *MockUpgradeSeriesMachine) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, error)

UpgradeSeriesStatus mocks base method.

func (*MockUpgradeSeriesMachine) UpgradeSeriesTarget

func (m *MockUpgradeSeriesMachine) UpgradeSeriesTarget() (string, error)

UpgradeSeriesTarget mocks base method.

func (*MockUpgradeSeriesMachine) UpgradeSeriesUnitStatuses

func (m *MockUpgradeSeriesMachine) UpgradeSeriesUnitStatuses() (map[string]state.UpgradeSeriesUnitStatus, error)

UpgradeSeriesUnitStatuses mocks base method.

func (*MockUpgradeSeriesMachine) WatchUpgradeSeriesNotifications

func (m *MockUpgradeSeriesMachine) WatchUpgradeSeriesNotifications() (state.NotifyWatcher, error)

WatchUpgradeSeriesNotifications mocks base method.

type MockUpgradeSeriesMachineMockRecorder

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

MockUpgradeSeriesMachineMockRecorder is the mock recorder for MockUpgradeSeriesMachine.

func (*MockUpgradeSeriesMachineMockRecorder) Base

Base indicates an expected call of Base.

func (*MockUpgradeSeriesMachineMockRecorder) RemoveUpgradeSeriesLock

func (mr *MockUpgradeSeriesMachineMockRecorder) RemoveUpgradeSeriesLock() *gomock.Call

RemoveUpgradeSeriesLock indicates an expected call of RemoveUpgradeSeriesLock.

func (*MockUpgradeSeriesMachineMockRecorder) SetInstanceStatus

func (mr *MockUpgradeSeriesMachineMockRecorder) SetInstanceStatus(arg0 any) *gomock.Call

SetInstanceStatus indicates an expected call of SetInstanceStatus.

func (*MockUpgradeSeriesMachineMockRecorder) SetUpgradeSeriesStatus

func (mr *MockUpgradeSeriesMachineMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 any) *gomock.Call

SetUpgradeSeriesStatus indicates an expected call of SetUpgradeSeriesStatus.

func (*MockUpgradeSeriesMachineMockRecorder) StartUpgradeSeriesUnitCompletion

func (mr *MockUpgradeSeriesMachineMockRecorder) StartUpgradeSeriesUnitCompletion(arg0 any) *gomock.Call

StartUpgradeSeriesUnitCompletion indicates an expected call of StartUpgradeSeriesUnitCompletion.

func (*MockUpgradeSeriesMachineMockRecorder) Units

Units indicates an expected call of Units.

func (*MockUpgradeSeriesMachineMockRecorder) UpdateMachineSeries

func (mr *MockUpgradeSeriesMachineMockRecorder) UpdateMachineSeries(arg0 any) *gomock.Call

UpdateMachineSeries indicates an expected call of UpdateMachineSeries.

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesStatus

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesStatus() *gomock.Call

UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus.

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesTarget

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesTarget() *gomock.Call

UpgradeSeriesTarget indicates an expected call of UpgradeSeriesTarget.

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesUnitStatuses

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesUnitStatuses() *gomock.Call

UpgradeSeriesUnitStatuses indicates an expected call of UpgradeSeriesUnitStatuses.

func (*MockUpgradeSeriesMachineMockRecorder) WatchUpgradeSeriesNotifications

func (mr *MockUpgradeSeriesMachineMockRecorder) WatchUpgradeSeriesNotifications() *gomock.Call

WatchUpgradeSeriesNotifications indicates an expected call of WatchUpgradeSeriesNotifications.

type MockUpgradeSeriesUnit

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

MockUpgradeSeriesUnit is a mock of UpgradeSeriesUnit interface.

func NewMockUpgradeSeriesUnit

func NewMockUpgradeSeriesUnit(ctrl *gomock.Controller) *MockUpgradeSeriesUnit

NewMockUpgradeSeriesUnit creates a new mock instance.

func (*MockUpgradeSeriesUnit) AssignedMachineId

func (m *MockUpgradeSeriesUnit) AssignedMachineId() (string, error)

AssignedMachineId mocks base method.

func (*MockUpgradeSeriesUnit) EXPECT

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

func (*MockUpgradeSeriesUnit) SetUpgradeSeriesStatus

func (m *MockUpgradeSeriesUnit) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error

SetUpgradeSeriesStatus mocks base method.

func (*MockUpgradeSeriesUnit) Tag

func (m *MockUpgradeSeriesUnit) Tag() names.Tag

Tag mocks base method.

func (*MockUpgradeSeriesUnit) UpgradeSeriesStatus

func (m *MockUpgradeSeriesUnit) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, string, error)

UpgradeSeriesStatus mocks base method.

type MockUpgradeSeriesUnitMockRecorder

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

MockUpgradeSeriesUnitMockRecorder is the mock recorder for MockUpgradeSeriesUnit.

func (*MockUpgradeSeriesUnitMockRecorder) AssignedMachineId

func (mr *MockUpgradeSeriesUnitMockRecorder) AssignedMachineId() *gomock.Call

AssignedMachineId indicates an expected call of AssignedMachineId.

func (*MockUpgradeSeriesUnitMockRecorder) SetUpgradeSeriesStatus

func (mr *MockUpgradeSeriesUnitMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 any) *gomock.Call

SetUpgradeSeriesStatus indicates an expected call of SetUpgradeSeriesStatus.

func (*MockUpgradeSeriesUnitMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus

func (mr *MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus() *gomock.Call

UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus.

Jump to

Keyboard shortcuts

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