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: 29 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplication

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

MockApplication is a mock of Application interface.

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

NewMockApplication creates a new mock instance.

func (*MockApplication) Charm

Charm mocks base method.

func (*MockApplication) CharmOrigin

func (m *MockApplication) CharmOrigin() *state.CharmOrigin

CharmOrigin mocks base method.

func (*MockApplication) EXPECT

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

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method.

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) Charm

Charm indicates an expected call of Charm.

func (*MockApplicationMockRecorder) CharmOrigin

func (mr *MockApplicationMockRecorder) CharmOrigin() *gomock.Call

CharmOrigin indicates an expected call of CharmOrigin.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

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) AuthClient

func (m *MockAuthorizer) AuthClient() bool

AuthClient mocks base method.

func (*MockAuthorizer) CanRead

func (m *MockAuthorizer) CanRead() error

CanRead mocks base method.

func (*MockAuthorizer) CanWrite

func (m *MockAuthorizer) CanWrite() error

CanWrite mocks base method.

func (*MockAuthorizer) EXPECT

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

type MockAuthorizerMockRecorder

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

MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.

func (*MockAuthorizerMockRecorder) AuthClient

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

AuthClient indicates an expected call of AuthClient.

func (*MockAuthorizerMockRecorder) CanRead

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

CanRead indicates an expected call of CanRead.

func (*MockAuthorizerMockRecorder) CanWrite

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

CanWrite indicates an expected call of CanWrite.

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) AddMachineInsideMachine

func (m *MockBackend) AddMachineInsideMachine(arg0 state.MachineTemplate, arg1 string, arg2 instance.ContainerType) (*state.Machine, error)

AddMachineInsideMachine mocks base method.

func (*MockBackend) AddMachineInsideNewMachine

func (m *MockBackend) AddMachineInsideNewMachine(arg0, arg1 state.MachineTemplate, arg2 instance.ContainerType) (*state.Machine, error)

AddMachineInsideNewMachine mocks base method.

func (*MockBackend) AddOneMachine

func (m *MockBackend) AddOneMachine(arg0 state.MachineTemplate) (*state.Machine, error)

AddOneMachine mocks base method.

func (*MockBackend) AllMachines

func (m *MockBackend) AllMachines() ([]machinemanager.Machine, error)

AllMachines mocks base method.

func (*MockBackend) AllSpaceInfos

func (m *MockBackend) AllSpaceInfos() (network.SpaceInfos, error)

AllSpaceInfos mocks base method.

func (*MockBackend) Application

func (m *MockBackend) Application(arg0 string) (machinemanager.Application, error)

Application mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) GetBlockForType

func (m *MockBackend) GetBlockForType(arg0 state.BlockType) (state.Block, bool, error)

GetBlockForType mocks base method.

func (*MockBackend) Machine

func (m *MockBackend) Machine(arg0 string) (machinemanager.Machine, error)

Machine mocks base method.

func (*MockBackend) Model

func (m *MockBackend) Model() (machinemanager.Model, error)

Model mocks base method.

func (*MockBackend) ToolsStorage

func (m *MockBackend) ToolsStorage() (binarystorage.StorageCloser, error)

ToolsStorage mocks base method.

func (*MockBackend) Unit

func (m *MockBackend) Unit(arg0 string) (machinemanager.Unit, error)

Unit mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AddMachineInsideMachine

func (mr *MockBackendMockRecorder) AddMachineInsideMachine(arg0, arg1, arg2 any) *gomock.Call

AddMachineInsideMachine indicates an expected call of AddMachineInsideMachine.

func (*MockBackendMockRecorder) AddMachineInsideNewMachine

func (mr *MockBackendMockRecorder) AddMachineInsideNewMachine(arg0, arg1, arg2 any) *gomock.Call

AddMachineInsideNewMachine indicates an expected call of AddMachineInsideNewMachine.

func (*MockBackendMockRecorder) AddOneMachine

func (mr *MockBackendMockRecorder) AddOneMachine(arg0 any) *gomock.Call

AddOneMachine indicates an expected call of AddOneMachine.

func (*MockBackendMockRecorder) AllMachines

func (mr *MockBackendMockRecorder) AllMachines() *gomock.Call

AllMachines indicates an expected call of AllMachines.

func (*MockBackendMockRecorder) AllSpaceInfos

func (mr *MockBackendMockRecorder) AllSpaceInfos() *gomock.Call

AllSpaceInfos indicates an expected call of AllSpaceInfos.

func (*MockBackendMockRecorder) Application

func (mr *MockBackendMockRecorder) Application(arg0 any) *gomock.Call

Application indicates an expected call of Application.

func (*MockBackendMockRecorder) GetBlockForType

func (mr *MockBackendMockRecorder) GetBlockForType(arg0 any) *gomock.Call

GetBlockForType indicates an expected call of GetBlockForType.

func (*MockBackendMockRecorder) Machine

func (mr *MockBackendMockRecorder) Machine(arg0 any) *gomock.Call

Machine indicates an expected call of Machine.

func (*MockBackendMockRecorder) Model

func (mr *MockBackendMockRecorder) Model() *gomock.Call

Model indicates an expected call of Model.

func (*MockBackendMockRecorder) ToolsStorage

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

ToolsStorage indicates an expected call of ToolsStorage.

func (*MockBackendMockRecorder) Unit

func (mr *MockBackendMockRecorder) Unit(arg0 any) *gomock.Call

Unit indicates an expected call of Unit.

type MockBlock

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

MockBlock is a mock of Block interface.

func NewMockBlock

func NewMockBlock(ctrl *gomock.Controller) *MockBlock

NewMockBlock creates a new mock instance.

func (*MockBlock) EXPECT

func (m *MockBlock) EXPECT() *MockBlockMockRecorder

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

func (*MockBlock) Id

func (m *MockBlock) Id() string

Id mocks base method.

func (*MockBlock) Message

func (m *MockBlock) Message() string

Message mocks base method.

func (*MockBlock) ModelUUID

func (m *MockBlock) ModelUUID() string

ModelUUID mocks base method.

func (*MockBlock) Tag

func (m *MockBlock) Tag() (names.Tag, error)

Tag mocks base method.

func (*MockBlock) Type

func (m *MockBlock) Type() state.BlockType

Type mocks base method.

type MockBlockMockRecorder

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

MockBlockMockRecorder is the mock recorder for MockBlock.

func (*MockBlockMockRecorder) Id

func (mr *MockBlockMockRecorder) Id() *gomock.Call

Id indicates an expected call of Id.

func (*MockBlockMockRecorder) Message

func (mr *MockBlockMockRecorder) Message() *gomock.Call

Message indicates an expected call of Message.

func (*MockBlockMockRecorder) ModelUUID

func (mr *MockBlockMockRecorder) ModelUUID() *gomock.Call

ModelUUID indicates an expected call of ModelUUID.

func (*MockBlockMockRecorder) Tag

func (mr *MockBlockMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag.

func (*MockBlockMockRecorder) Type

func (mr *MockBlockMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

type MockCharm

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

MockCharm is a mock of Charm interface.

func NewMockCharm

func NewMockCharm(ctrl *gomock.Controller) *MockCharm

NewMockCharm creates a new mock instance.

func (*MockCharm) EXPECT

func (m *MockCharm) EXPECT() *MockCharmMockRecorder

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

func (*MockCharm) Manifest

func (m *MockCharm) Manifest() *charm.Manifest

Manifest mocks base method.

func (*MockCharm) Meta

func (m *MockCharm) Meta() *charm.Meta

Meta mocks base method.

type MockCharmMockRecorder

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

MockCharmMockRecorder is the mock recorder for MockCharm.

func (*MockCharmMockRecorder) Manifest

func (mr *MockCharmMockRecorder) Manifest() *gomock.Call

Manifest indicates an expected call of Manifest.

func (*MockCharmMockRecorder) Meta

func (mr *MockCharmMockRecorder) Meta() *gomock.Call

Meta indicates an expected call of Meta.

type MockCharmhubClient

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

MockCharmhubClient is a mock of CharmhubClient interface.

func NewMockCharmhubClient

func NewMockCharmhubClient(ctrl *gomock.Controller) *MockCharmhubClient

NewMockCharmhubClient creates a new mock instance.

func (*MockCharmhubClient) EXPECT

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

func (*MockCharmhubClient) Refresh

Refresh mocks base method.

type MockCharmhubClientMockRecorder

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

MockCharmhubClientMockRecorder is the mock recorder for MockCharmhubClient.

func (*MockCharmhubClientMockRecorder) Refresh

func (mr *MockCharmhubClientMockRecorder) Refresh(arg0, arg1 any) *gomock.Call

Refresh indicates an expected call of Refresh.

type MockControllerBackend

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

MockControllerBackend is a mock of ControllerBackend interface.

func NewMockControllerBackend

func NewMockControllerBackend(ctrl *gomock.Controller) *MockControllerBackend

NewMockControllerBackend creates a new mock instance.

func (*MockControllerBackend) APIHostPortsForAgents

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

APIHostPortsForAgents mocks base method.

func (*MockControllerBackend) ControllerConfig

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

ControllerConfig mocks base method.

func (*MockControllerBackend) ControllerTag

func (m *MockControllerBackend) ControllerTag() names.ControllerTag

ControllerTag mocks base method.

func (*MockControllerBackend) EXPECT

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

type MockControllerBackendMockRecorder

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

MockControllerBackendMockRecorder is the mock recorder for MockControllerBackend.

func (*MockControllerBackendMockRecorder) APIHostPortsForAgents

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

APIHostPortsForAgents indicates an expected call of APIHostPortsForAgents.

func (*MockControllerBackendMockRecorder) ControllerConfig

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

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockControllerBackendMockRecorder) ControllerTag

func (mr *MockControllerBackendMockRecorder) ControllerTag() *gomock.Call

ControllerTag indicates an expected call of ControllerTag.

type MockEnviron

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

MockEnviron is a mock of Environ interface.

func NewMockEnviron

func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron

NewMockEnviron creates a new mock instance.

func (*MockEnviron) AdoptResources

func (m *MockEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error

AdoptResources mocks base method.

func (*MockEnviron) AllInstances

func (m *MockEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllInstances mocks base method.

func (*MockEnviron) AllRunningInstances

func (m *MockEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllRunningInstances mocks base method.

func (*MockEnviron) Bootstrap

Bootstrap mocks base method.

func (*MockEnviron) Config

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

Config mocks base method.

func (*MockEnviron) ConstraintsValidator

func (m *MockEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)

ConstraintsValidator mocks base method.

func (*MockEnviron) ControllerInstances

func (m *MockEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)

ControllerInstances mocks base method.

func (*MockEnviron) Create

Create mocks base method.

func (*MockEnviron) Destroy

func (m *MockEnviron) Destroy(arg0 context.ProviderCallContext) error

Destroy mocks base method.

func (*MockEnviron) DestroyController

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

DestroyController mocks base method.

func (*MockEnviron) EXPECT

func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder

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

func (*MockEnviron) InstanceTypes

InstanceTypes mocks base method.

func (*MockEnviron) Instances

func (m *MockEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)

Instances mocks base method.

func (*MockEnviron) PrecheckInstance

PrecheckInstance mocks base method.

func (*MockEnviron) PrepareForBootstrap

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

PrepareForBootstrap mocks base method.

func (*MockEnviron) Provider

func (m *MockEnviron) Provider() environs.EnvironProvider

Provider mocks base method.

func (*MockEnviron) SetConfig

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

SetConfig mocks base method.

func (*MockEnviron) StartInstance

StartInstance mocks base method.

func (*MockEnviron) StopInstances

func (m *MockEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error

StopInstances mocks base method.

func (*MockEnviron) StorageProvider

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

StorageProvider mocks base method.

func (*MockEnviron) StorageProviderTypes

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

StorageProviderTypes mocks base method.

type MockEnvironMockRecorder

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

MockEnvironMockRecorder is the mock recorder for MockEnviron.

func (*MockEnvironMockRecorder) AdoptResources

func (mr *MockEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *gomock.Call

AdoptResources indicates an expected call of AdoptResources.

func (*MockEnvironMockRecorder) AllInstances

func (mr *MockEnvironMockRecorder) AllInstances(arg0 any) *gomock.Call

AllInstances indicates an expected call of AllInstances.

func (*MockEnvironMockRecorder) AllRunningInstances

func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 any) *gomock.Call

AllRunningInstances indicates an expected call of AllRunningInstances.

func (*MockEnvironMockRecorder) Bootstrap

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

Bootstrap indicates an expected call of Bootstrap.

func (*MockEnvironMockRecorder) Config

func (mr *MockEnvironMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockEnvironMockRecorder) ConstraintsValidator

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

ConstraintsValidator indicates an expected call of ConstraintsValidator.

func (*MockEnvironMockRecorder) ControllerInstances

func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *gomock.Call

ControllerInstances indicates an expected call of ControllerInstances.

func (*MockEnvironMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockEnvironMockRecorder) Destroy

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

Destroy indicates an expected call of Destroy.

func (*MockEnvironMockRecorder) DestroyController

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

DestroyController indicates an expected call of DestroyController.

func (*MockEnvironMockRecorder) InstanceTypes

func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call

InstanceTypes indicates an expected call of InstanceTypes.

func (*MockEnvironMockRecorder) Instances

func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call

Instances indicates an expected call of Instances.

func (*MockEnvironMockRecorder) PrecheckInstance

func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance.

func (*MockEnvironMockRecorder) PrepareForBootstrap

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

PrepareForBootstrap indicates an expected call of PrepareForBootstrap.

func (*MockEnvironMockRecorder) Provider

func (mr *MockEnvironMockRecorder) Provider() *gomock.Call

Provider indicates an expected call of Provider.

func (*MockEnvironMockRecorder) SetConfig

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

SetConfig indicates an expected call of SetConfig.

func (*MockEnvironMockRecorder) StartInstance

func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call

StartInstance indicates an expected call of StartInstance.

func (*MockEnvironMockRecorder) StopInstances

func (mr *MockEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call

StopInstances indicates an expected call of StopInstances.

func (*MockEnvironMockRecorder) StorageProvider

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

StorageProvider indicates an expected call of StorageProvider.

func (*MockEnvironMockRecorder) StorageProviderTypes

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

StorageProviderTypes indicates an expected call of StorageProviderTypes.

type MockInstanceConfigBackend

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

MockInstanceConfigBackend is a mock of InstanceConfigBackend interface.

func NewMockInstanceConfigBackend

func NewMockInstanceConfigBackend(ctrl *gomock.Controller) *MockInstanceConfigBackend

NewMockInstanceConfigBackend creates a new mock instance.

func (*MockInstanceConfigBackend) EXPECT

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

func (*MockInstanceConfigBackend) Machine

Machine mocks base method.

func (*MockInstanceConfigBackend) Model

Model mocks base method.

func (*MockInstanceConfigBackend) ToolsStorage

ToolsStorage mocks base method.

type MockInstanceConfigBackendMockRecorder

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

MockInstanceConfigBackendMockRecorder is the mock recorder for MockInstanceConfigBackend.

func (*MockInstanceConfigBackendMockRecorder) Machine

Machine indicates an expected call of Machine.

func (*MockInstanceConfigBackendMockRecorder) Model

Model indicates an expected call of Model.

func (*MockInstanceConfigBackendMockRecorder) ToolsStorage

ToolsStorage indicates an expected call of ToolsStorage.

type MockLeadership

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

MockLeadership is a mock of Leadership interface.

func NewMockLeadership

func NewMockLeadership(ctrl *gomock.Controller) *MockLeadership

NewMockLeadership creates a new mock instance.

func (*MockLeadership) EXPECT

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

func (*MockLeadership) GetMachineApplicationNames

func (m *MockLeadership) GetMachineApplicationNames(arg0 string) ([]string, error)

GetMachineApplicationNames mocks base method.

func (*MockLeadership) UnpinApplicationLeadersByName

func (m *MockLeadership) UnpinApplicationLeadersByName(arg0 names.Tag, arg1 []string) (params.PinApplicationsResults, error)

UnpinApplicationLeadersByName mocks base method.

type MockLeadershipMockRecorder

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

MockLeadershipMockRecorder is the mock recorder for MockLeadership.

func (*MockLeadershipMockRecorder) GetMachineApplicationNames

func (mr *MockLeadershipMockRecorder) GetMachineApplicationNames(arg0 any) *gomock.Call

GetMachineApplicationNames indicates an expected call of GetMachineApplicationNames.

func (*MockLeadershipMockRecorder) UnpinApplicationLeadersByName

func (mr *MockLeadershipMockRecorder) UnpinApplicationLeadersByName(arg0, arg1 any) *gomock.Call

UnpinApplicationLeadersByName indicates an expected call of UnpinApplicationLeadersByName.

type MockMachine

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

MockMachine is a mock of Machine interface.

func NewMockMachine

func NewMockMachine(ctrl *gomock.Controller) *MockMachine

NewMockMachine creates a new mock instance.

func (*MockMachine) ApplicationNames

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

ApplicationNames mocks base method.

func (*MockMachine) Base

func (m *MockMachine) Base() state.Base

Base mocks base method.

func (*MockMachine) CompleteUpgradeSeries

func (m *MockMachine) CompleteUpgradeSeries() error

CompleteUpgradeSeries mocks base method.

func (*MockMachine) Containers

func (m *MockMachine) Containers() ([]string, error)

Containers mocks base method.

func (*MockMachine) CreateUpgradeSeriesLock

func (m *MockMachine) CreateUpgradeSeriesLock(arg0 []string, arg1 state.Base) error

CreateUpgradeSeriesLock mocks base method.

func (*MockMachine) Destroy

func (m *MockMachine) Destroy() error

Destroy mocks base method.

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

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

func (*MockMachine) ForceDestroy

func (m *MockMachine) ForceDestroy(arg0 time.Duration) error

ForceDestroy mocks base method.

func (*MockMachine) GetUpgradeSeriesMessages

func (m *MockMachine) GetUpgradeSeriesMessages() ([]string, bool, error)

GetUpgradeSeriesMessages mocks base method.

func (*MockMachine) HardwareCharacteristics

func (m *MockMachine) HardwareCharacteristics() (*instance.HardwareCharacteristics, error)

HardwareCharacteristics mocks base method.

func (*MockMachine) Id

func (m *MockMachine) Id() string

Id mocks base method.

func (*MockMachine) InstanceStatus

func (m *MockMachine) InstanceStatus() (status.StatusInfo, error)

InstanceStatus mocks base method.

func (*MockMachine) IsLockedForSeriesUpgrade

func (m *MockMachine) IsLockedForSeriesUpgrade() (bool, error)

IsLockedForSeriesUpgrade mocks base method.

func (*MockMachine) IsManager

func (m *MockMachine) IsManager() bool

IsManager mocks base method.

func (*MockMachine) Principals

func (m *MockMachine) Principals() []string

Principals mocks base method.

func (*MockMachine) RemoveUpgradeSeriesLock

func (m *MockMachine) RemoveUpgradeSeriesLock() error

RemoveUpgradeSeriesLock mocks base method.

func (*MockMachine) SetInstanceStatus

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

SetInstanceStatus mocks base method.

func (*MockMachine) SetKeepInstance

func (m *MockMachine) SetKeepInstance(arg0 bool) error

SetKeepInstance mocks base method.

func (*MockMachine) SetPassword

func (m *MockMachine) SetPassword(arg0 string) error

SetPassword mocks base method.

func (*MockMachine) SetUpgradeSeriesStatus

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

SetUpgradeSeriesStatus mocks base method.

func (*MockMachine) Tag

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

Tag mocks base method.

func (*MockMachine) Units

func (m *MockMachine) Units() ([]machinemanager.Unit, error)

Units mocks base method.

func (*MockMachine) UpgradeSeriesStatus

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

UpgradeSeriesStatus mocks base method.

func (*MockMachine) WatchUpgradeSeriesNotifications

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

WatchUpgradeSeriesNotifications mocks base method.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) ApplicationNames

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

ApplicationNames indicates an expected call of ApplicationNames.

func (*MockMachineMockRecorder) Base

func (mr *MockMachineMockRecorder) Base() *gomock.Call

Base indicates an expected call of Base.

func (*MockMachineMockRecorder) CompleteUpgradeSeries

func (mr *MockMachineMockRecorder) CompleteUpgradeSeries() *gomock.Call

CompleteUpgradeSeries indicates an expected call of CompleteUpgradeSeries.

func (*MockMachineMockRecorder) Containers

func (mr *MockMachineMockRecorder) Containers() *gomock.Call

Containers indicates an expected call of Containers.

func (*MockMachineMockRecorder) CreateUpgradeSeriesLock

func (mr *MockMachineMockRecorder) CreateUpgradeSeriesLock(arg0, arg1 any) *gomock.Call

CreateUpgradeSeriesLock indicates an expected call of CreateUpgradeSeriesLock.

func (*MockMachineMockRecorder) Destroy

func (mr *MockMachineMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockMachineMockRecorder) ForceDestroy

func (mr *MockMachineMockRecorder) ForceDestroy(arg0 any) *gomock.Call

ForceDestroy indicates an expected call of ForceDestroy.

func (*MockMachineMockRecorder) GetUpgradeSeriesMessages

func (mr *MockMachineMockRecorder) GetUpgradeSeriesMessages() *gomock.Call

GetUpgradeSeriesMessages indicates an expected call of GetUpgradeSeriesMessages.

func (*MockMachineMockRecorder) HardwareCharacteristics

func (mr *MockMachineMockRecorder) HardwareCharacteristics() *gomock.Call

HardwareCharacteristics indicates an expected call of HardwareCharacteristics.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) InstanceStatus

func (mr *MockMachineMockRecorder) InstanceStatus() *gomock.Call

InstanceStatus indicates an expected call of InstanceStatus.

func (*MockMachineMockRecorder) IsLockedForSeriesUpgrade

func (mr *MockMachineMockRecorder) IsLockedForSeriesUpgrade() *gomock.Call

IsLockedForSeriesUpgrade indicates an expected call of IsLockedForSeriesUpgrade.

func (*MockMachineMockRecorder) IsManager

func (mr *MockMachineMockRecorder) IsManager() *gomock.Call

IsManager indicates an expected call of IsManager.

func (*MockMachineMockRecorder) Principals

func (mr *MockMachineMockRecorder) Principals() *gomock.Call

Principals indicates an expected call of Principals.

func (*MockMachineMockRecorder) RemoveUpgradeSeriesLock

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

RemoveUpgradeSeriesLock indicates an expected call of RemoveUpgradeSeriesLock.

func (*MockMachineMockRecorder) SetInstanceStatus

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

SetInstanceStatus indicates an expected call of SetInstanceStatus.

func (*MockMachineMockRecorder) SetKeepInstance

func (mr *MockMachineMockRecorder) SetKeepInstance(arg0 any) *gomock.Call

SetKeepInstance indicates an expected call of SetKeepInstance.

func (*MockMachineMockRecorder) SetPassword

func (mr *MockMachineMockRecorder) SetPassword(arg0 any) *gomock.Call

SetPassword indicates an expected call of SetPassword.

func (*MockMachineMockRecorder) SetUpgradeSeriesStatus

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

SetUpgradeSeriesStatus indicates an expected call of SetUpgradeSeriesStatus.

func (*MockMachineMockRecorder) Tag

func (mr *MockMachineMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag.

func (*MockMachineMockRecorder) Units

func (mr *MockMachineMockRecorder) Units() *gomock.Call

Units indicates an expected call of Units.

func (*MockMachineMockRecorder) UpgradeSeriesStatus

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

UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus.

func (*MockMachineMockRecorder) WatchUpgradeSeriesNotifications

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

WatchUpgradeSeriesNotifications indicates an expected call of WatchUpgradeSeriesNotifications.

type MockModel

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

MockModel is a mock of Model interface.

func NewMockModel

func NewMockModel(ctrl *gomock.Controller) *MockModel

NewMockModel creates a new mock instance.

func (*MockModel) Cloud

func (m *MockModel) Cloud() (cloud.Cloud, error)

Cloud mocks base method.

func (*MockModel) CloudCredential

func (m *MockModel) CloudCredential() (state.Credential, bool, error)

CloudCredential mocks base method.

func (*MockModel) CloudRegion

func (m *MockModel) CloudRegion() string

CloudRegion mocks base method.

func (*MockModel) Config

func (m *MockModel) Config() (*config.Config, error)

Config mocks base method.

func (*MockModel) ControllerUUID

func (m *MockModel) ControllerUUID() string

ControllerUUID mocks base method.

func (*MockModel) EXPECT

func (m *MockModel) EXPECT() *MockModelMockRecorder

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

func (*MockModel) ModelTag

func (m *MockModel) ModelTag() names.ModelTag

ModelTag mocks base method.

func (*MockModel) Name

func (m *MockModel) Name() string

Name mocks base method.

func (*MockModel) Type

func (m *MockModel) Type() state.ModelType

Type mocks base method.

func (*MockModel) UUID

func (m *MockModel) UUID() string

UUID mocks base method.

type MockModelMockRecorder

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

MockModelMockRecorder is the mock recorder for MockModel.

func (*MockModelMockRecorder) Cloud

func (mr *MockModelMockRecorder) Cloud() *gomock.Call

Cloud indicates an expected call of Cloud.

func (*MockModelMockRecorder) CloudCredential

func (mr *MockModelMockRecorder) CloudCredential() *gomock.Call

CloudCredential indicates an expected call of CloudCredential.

func (*MockModelMockRecorder) CloudRegion

func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call

CloudRegion indicates an expected call of CloudRegion.

func (*MockModelMockRecorder) Config

func (mr *MockModelMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockModelMockRecorder) ControllerUUID

func (mr *MockModelMockRecorder) ControllerUUID() *gomock.Call

ControllerUUID indicates an expected call of ControllerUUID.

func (*MockModelMockRecorder) ModelTag

func (mr *MockModelMockRecorder) ModelTag() *gomock.Call

ModelTag indicates an expected call of ModelTag.

func (*MockModelMockRecorder) Name

func (mr *MockModelMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockModelMockRecorder) Type

func (mr *MockModelMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

func (*MockModelMockRecorder) UUID

func (mr *MockModelMockRecorder) UUID() *gomock.Call

UUID indicates an expected call of UUID.

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) GetModel

func (m *MockPool) GetModel(arg0 string) (machinemanager.Model, func(), error)

GetModel mocks base method.

func (*MockPool) SystemState

func (m *MockPool) SystemState() (machinemanager.ControllerBackend, error)

SystemState mocks base method.

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) GetModel

func (mr *MockPoolMockRecorder) GetModel(arg0 any) *gomock.Call

GetModel indicates an expected call of GetModel.

func (*MockPoolMockRecorder) SystemState

func (mr *MockPoolMockRecorder) SystemState() *gomock.Call

SystemState indicates an expected call of SystemState.

type MockStorageAttachment

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

MockStorageAttachment is a mock of StorageAttachment interface.

func NewMockStorageAttachment

func NewMockStorageAttachment(ctrl *gomock.Controller) *MockStorageAttachment

NewMockStorageAttachment creates a new mock instance.

func (*MockStorageAttachment) EXPECT

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

func (*MockStorageAttachment) Life

func (m *MockStorageAttachment) Life() state.Life

Life mocks base method.

func (*MockStorageAttachment) StorageInstance

func (m *MockStorageAttachment) StorageInstance() names.StorageTag

StorageInstance mocks base method.

func (*MockStorageAttachment) Unit

Unit mocks base method.

type MockStorageAttachmentMockRecorder

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

MockStorageAttachmentMockRecorder is the mock recorder for MockStorageAttachment.

func (*MockStorageAttachmentMockRecorder) Life

Life indicates an expected call of Life.

func (*MockStorageAttachmentMockRecorder) StorageInstance

func (mr *MockStorageAttachmentMockRecorder) StorageInstance() *gomock.Call

StorageInstance indicates an expected call of StorageInstance.

func (*MockStorageAttachmentMockRecorder) Unit

Unit indicates an expected call of Unit.

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 MockStorageInstance

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

MockStorageInstance is a mock of StorageInstance interface.

func NewMockStorageInstance

func NewMockStorageInstance(ctrl *gomock.Controller) *MockStorageInstance

NewMockStorageInstance creates a new mock instance.

func (*MockStorageInstance) EXPECT

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

func (*MockStorageInstance) Kind

Kind mocks base method.

func (*MockStorageInstance) Life

func (m *MockStorageInstance) Life() state.Life

Life mocks base method.

func (*MockStorageInstance) Owner

func (m *MockStorageInstance) Owner() (names.Tag, bool)

Owner mocks base method.

func (*MockStorageInstance) Pool

func (m *MockStorageInstance) Pool() string

Pool mocks base method.

func (*MockStorageInstance) StorageName

func (m *MockStorageInstance) StorageName() string

StorageName mocks base method.

func (*MockStorageInstance) StorageTag

func (m *MockStorageInstance) StorageTag() names.StorageTag

StorageTag mocks base method.

func (*MockStorageInstance) Tag

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

Tag mocks base method.

type MockStorageInstanceMockRecorder

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

MockStorageInstanceMockRecorder is the mock recorder for MockStorageInstance.

func (*MockStorageInstanceMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockStorageInstanceMockRecorder) Life

Life indicates an expected call of Life.

func (*MockStorageInstanceMockRecorder) Owner

Owner indicates an expected call of Owner.

func (*MockStorageInstanceMockRecorder) Pool

Pool indicates an expected call of Pool.

func (*MockStorageInstanceMockRecorder) StorageName

func (mr *MockStorageInstanceMockRecorder) StorageName() *gomock.Call

StorageName indicates an expected call of StorageName.

func (*MockStorageInstanceMockRecorder) StorageTag

func (mr *MockStorageInstanceMockRecorder) StorageTag() *gomock.Call

StorageTag indicates an expected call of StorageTag.

func (*MockStorageInstanceMockRecorder) Tag

Tag indicates an expected call of Tag.

type MockStorageInterface

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

MockStorageInterface is a mock of StorageInterface interface.

func NewMockStorageInterface

func NewMockStorageInterface(ctrl *gomock.Controller) *MockStorageInterface

NewMockStorageInterface creates a new mock instance.

func (*MockStorageInterface) EXPECT

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

func (*MockStorageInterface) FilesystemAccess

func (m *MockStorageInterface) FilesystemAccess() storagecommon.FilesystemAccess

FilesystemAccess mocks base method.

func (*MockStorageInterface) StorageInstance

func (m *MockStorageInterface) StorageInstance(arg0 names.StorageTag) (state.StorageInstance, error)

StorageInstance mocks base method.

func (*MockStorageInterface) UnitStorageAttachments

func (m *MockStorageInterface) UnitStorageAttachments(arg0 names.UnitTag) ([]state.StorageAttachment, error)

UnitStorageAttachments mocks base method.

func (*MockStorageInterface) VolumeAccess

VolumeAccess mocks base method.

type MockStorageInterfaceMockRecorder

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

MockStorageInterfaceMockRecorder is the mock recorder for MockStorageInterface.

func (*MockStorageInterfaceMockRecorder) FilesystemAccess

func (mr *MockStorageInterfaceMockRecorder) FilesystemAccess() *gomock.Call

FilesystemAccess indicates an expected call of FilesystemAccess.

func (*MockStorageInterfaceMockRecorder) StorageInstance

func (mr *MockStorageInterfaceMockRecorder) StorageInstance(arg0 any) *gomock.Call

StorageInstance indicates an expected call of StorageInstance.

func (*MockStorageInterfaceMockRecorder) UnitStorageAttachments

func (mr *MockStorageInterfaceMockRecorder) UnitStorageAttachments(arg0 any) *gomock.Call

UnitStorageAttachments indicates an expected call of UnitStorageAttachments.

func (*MockStorageInterfaceMockRecorder) VolumeAccess

func (mr *MockStorageInterfaceMockRecorder) VolumeAccess() *gomock.Call

VolumeAccess indicates an expected call of VolumeAccess.

type MockUnit

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

MockUnit is a mock of Unit interface.

func NewMockUnit

func NewMockUnit(ctrl *gomock.Controller) *MockUnit

NewMockUnit creates a new mock instance.

func (*MockUnit) AgentStatus

func (m *MockUnit) AgentStatus() (status.StatusInfo, error)

AgentStatus mocks base method.

func (*MockUnit) EXPECT

func (m *MockUnit) EXPECT() *MockUnitMockRecorder

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

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) Status

func (m *MockUnit) Status() (status.StatusInfo, error)

Status mocks base method.

func (*MockUnit) UnitTag

func (m *MockUnit) UnitTag() names.UnitTag

UnitTag mocks base method.

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) AgentStatus

func (mr *MockUnitMockRecorder) AgentStatus() *gomock.Call

AgentStatus indicates an expected call of AgentStatus.

func (*MockUnitMockRecorder) Name

func (mr *MockUnitMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) Status

func (mr *MockUnitMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status.

func (*MockUnitMockRecorder) UnitTag

func (mr *MockUnitMockRecorder) UnitTag() *gomock.Call

UnitTag indicates an expected call of UnitTag.

type MockUpgradeBaseValidator

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

MockUpgradeBaseValidator is a mock of UpgradeBaseValidator interface.

func NewMockUpgradeBaseValidator

func NewMockUpgradeBaseValidator(ctrl *gomock.Controller) *MockUpgradeBaseValidator

NewMockUpgradeBaseValidator creates a new mock instance.

func (*MockUpgradeBaseValidator) EXPECT

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

func (*MockUpgradeBaseValidator) ValidateApplications

func (m *MockUpgradeBaseValidator) ValidateApplications(arg0 []machinemanager.Application, arg1 base.Base, arg2 bool) error

ValidateApplications mocks base method.

func (*MockUpgradeBaseValidator) ValidateBase

func (m *MockUpgradeBaseValidator) ValidateBase(arg0, arg1 base.Base, arg2 string) error

ValidateBase mocks base method.

func (*MockUpgradeBaseValidator) ValidateMachine

func (m *MockUpgradeBaseValidator) ValidateMachine(arg0 machinemanager.Machine) error

ValidateMachine mocks base method.

func (*MockUpgradeBaseValidator) ValidateUnits

func (m *MockUpgradeBaseValidator) ValidateUnits(arg0 []machinemanager.Unit) error

ValidateUnits mocks base method.

type MockUpgradeBaseValidatorMockRecorder

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

MockUpgradeBaseValidatorMockRecorder is the mock recorder for MockUpgradeBaseValidator.

func (*MockUpgradeBaseValidatorMockRecorder) ValidateApplications

func (mr *MockUpgradeBaseValidatorMockRecorder) ValidateApplications(arg0, arg1, arg2 any) *gomock.Call

ValidateApplications indicates an expected call of ValidateApplications.

func (*MockUpgradeBaseValidatorMockRecorder) ValidateBase

func (mr *MockUpgradeBaseValidatorMockRecorder) ValidateBase(arg0, arg1, arg2 any) *gomock.Call

ValidateBase indicates an expected call of ValidateBase.

func (*MockUpgradeBaseValidatorMockRecorder) ValidateMachine

func (mr *MockUpgradeBaseValidatorMockRecorder) ValidateMachine(arg0 any) *gomock.Call

ValidateMachine indicates an expected call of ValidateMachine.

func (*MockUpgradeBaseValidatorMockRecorder) ValidateUnits

func (mr *MockUpgradeBaseValidatorMockRecorder) ValidateUnits(arg0 any) *gomock.Call

ValidateUnits indicates an expected call of ValidateUnits.

type MockUpgradeSeries

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

MockUpgradeSeries is a mock of UpgradeSeries interface.

func NewMockUpgradeSeries

func NewMockUpgradeSeries(ctrl *gomock.Controller) *MockUpgradeSeries

NewMockUpgradeSeries creates a new mock instance.

func (*MockUpgradeSeries) Complete

func (m *MockUpgradeSeries) Complete(arg0 string) error

Complete mocks base method.

func (*MockUpgradeSeries) EXPECT

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

func (*MockUpgradeSeries) Prepare

func (m *MockUpgradeSeries) Prepare(arg0, arg1 string, arg2 bool) error

Prepare mocks base method.

func (*MockUpgradeSeries) Validate

Validate mocks base method.

type MockUpgradeSeriesMockRecorder

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

MockUpgradeSeriesMockRecorder is the mock recorder for MockUpgradeSeries.

func (*MockUpgradeSeriesMockRecorder) Complete

func (mr *MockUpgradeSeriesMockRecorder) Complete(arg0 any) *gomock.Call

Complete indicates an expected call of Complete.

func (*MockUpgradeSeriesMockRecorder) Prepare

func (mr *MockUpgradeSeriesMockRecorder) Prepare(arg0, arg1, arg2 any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockUpgradeSeriesMockRecorder) Validate

func (mr *MockUpgradeSeriesMockRecorder) Validate(arg0 any) *gomock.Call

Validate indicates an expected call of Validate.

type MockUpgradeSeriesState

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

MockUpgradeSeriesState is a mock of UpgradeSeriesState interface.

func NewMockUpgradeSeriesState

func NewMockUpgradeSeriesState(ctrl *gomock.Controller) *MockUpgradeSeriesState

NewMockUpgradeSeriesState creates a new mock instance.

func (*MockUpgradeSeriesState) ApplicationsFromMachine

func (m *MockUpgradeSeriesState) ApplicationsFromMachine(arg0 machinemanager.Machine) ([]machinemanager.Application, error)

ApplicationsFromMachine mocks base method.

func (*MockUpgradeSeriesState) EXPECT

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

func (*MockUpgradeSeriesState) MachineFromTag

func (m *MockUpgradeSeriesState) MachineFromTag(arg0 string) (machinemanager.Machine, error)

MachineFromTag mocks base method.

type MockUpgradeSeriesStateMockRecorder

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

MockUpgradeSeriesStateMockRecorder is the mock recorder for MockUpgradeSeriesState.

func (*MockUpgradeSeriesStateMockRecorder) ApplicationsFromMachine

func (mr *MockUpgradeSeriesStateMockRecorder) ApplicationsFromMachine(arg0 any) *gomock.Call

ApplicationsFromMachine indicates an expected call of ApplicationsFromMachine.

func (*MockUpgradeSeriesStateMockRecorder) MachineFromTag

func (mr *MockUpgradeSeriesStateMockRecorder) MachineFromTag(arg0 any) *gomock.Call

MachineFromTag indicates an expected call of MachineFromTag.

type MockVolumeAccess

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

MockVolumeAccess is a mock of VolumeAccess interface.

func NewMockVolumeAccess

func NewMockVolumeAccess(ctrl *gomock.Controller) *MockVolumeAccess

NewMockVolumeAccess creates a new mock instance.

func (*MockVolumeAccess) BlockDevices

func (m *MockVolumeAccess) BlockDevices(arg0 names.MachineTag) ([]state.BlockDeviceInfo, error)

BlockDevices mocks base method.

func (*MockVolumeAccess) EXPECT

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

func (*MockVolumeAccess) StorageInstanceVolume

func (m *MockVolumeAccess) StorageInstanceVolume(arg0 names.StorageTag) (state.Volume, error)

StorageInstanceVolume mocks base method.

func (*MockVolumeAccess) VolumeAttachment

func (m *MockVolumeAccess) VolumeAttachment(arg0 names.Tag, arg1 names.VolumeTag) (state.VolumeAttachment, error)

VolumeAttachment mocks base method.

func (*MockVolumeAccess) VolumeAttachmentPlan

func (m *MockVolumeAccess) VolumeAttachmentPlan(arg0 names.Tag, arg1 names.VolumeTag) (state.VolumeAttachmentPlan, error)

VolumeAttachmentPlan mocks base method.

type MockVolumeAccessMockRecorder

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

MockVolumeAccessMockRecorder is the mock recorder for MockVolumeAccess.

func (*MockVolumeAccessMockRecorder) BlockDevices

func (mr *MockVolumeAccessMockRecorder) BlockDevices(arg0 any) *gomock.Call

BlockDevices indicates an expected call of BlockDevices.

func (*MockVolumeAccessMockRecorder) StorageInstanceVolume

func (mr *MockVolumeAccessMockRecorder) StorageInstanceVolume(arg0 any) *gomock.Call

StorageInstanceVolume indicates an expected call of StorageInstanceVolume.

func (*MockVolumeAccessMockRecorder) VolumeAttachment

func (mr *MockVolumeAccessMockRecorder) VolumeAttachment(arg0, arg1 any) *gomock.Call

VolumeAttachment indicates an expected call of VolumeAttachment.

func (*MockVolumeAccessMockRecorder) VolumeAttachmentPlan

func (mr *MockVolumeAccessMockRecorder) VolumeAttachmentPlan(arg0, arg1 any) *gomock.Call

VolumeAttachmentPlan indicates an expected call of VolumeAttachmentPlan.

Jump to

Keyboard shortcuts

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