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 ¶
- type MockAPIHostPortsForAgentsGetter
- type MockAPIHostPortsForAgentsGetterMockRecorder
- type MockAgentTooler
- type MockAgentToolerMockRecorder
- type MockAuthorizer
- type MockAuthorizerMockRecorder
- type MockBootstrapEnviron
- func (m *MockBootstrapEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockBootstrapEnviron) Config() *config.Config
- func (m *MockBootstrapEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)
- func (m *MockBootstrapEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockBootstrapEnviron) Destroy(arg0 context.ProviderCallContext) error
- func (m *MockBootstrapEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error
- func (m *MockBootstrapEnviron) EXPECT() *MockBootstrapEnvironMockRecorder
- func (m *MockBootstrapEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
- func (m *MockBootstrapEnviron) SetConfig(arg0 *config.Config) error
- func (m *MockBootstrapEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockBootstrapEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockBootstrapEnvironMockRecorder
- func (mr *MockBootstrapEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) Config() *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) Destroy(arg0 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call
- func (mr *MockBootstrapEnvironMockRecorder) StorageProviderTypes() *gomock.Call
- type MockControllerConfigState
- func (m *MockControllerConfigState) APIHostPortsForAgents() ([]network.SpaceHostPorts, error)
- func (m *MockControllerConfigState) CompletedMigrationForModel(arg0 string) (state.ModelMigration, error)
- func (m *MockControllerConfigState) ControllerConfig() (controller.Config, error)
- func (m *MockControllerConfigState) EXPECT() *MockControllerConfigStateMockRecorder
- func (m *MockControllerConfigState) ModelExists(arg0 string) (bool, error)
- func (m *MockControllerConfigState) NewExternalControllers() state.ExternalControllers
- type MockControllerConfigStateMockRecorder
- func (mr *MockControllerConfigStateMockRecorder) APIHostPortsForAgents() *gomock.Call
- func (mr *MockControllerConfigStateMockRecorder) CompletedMigrationForModel(arg0 any) *gomock.Call
- func (mr *MockControllerConfigStateMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockControllerConfigStateMockRecorder) ModelExists(arg0 any) *gomock.Call
- func (mr *MockControllerConfigStateMockRecorder) NewExternalControllers() *gomock.Call
- type MockEnvironConfigGetter
- type MockEnvironConfigGetterMockRecorder
- type MockLeadershipMachine
- type MockLeadershipMachineMockRecorder
- type MockLeadershipPinningBackend
- type MockLeadershipPinningBackendMockRecorder
- type MockModelOperation
- type MockModelOperationMockRecorder
- type MockStorageCloser
- func (m *MockStorageCloser) Add(arg0 io.Reader, arg1 binarystorage.Metadata) error
- func (m *MockStorageCloser) AllMetadata() ([]binarystorage.Metadata, error)
- func (m *MockStorageCloser) Close() error
- func (m *MockStorageCloser) EXPECT() *MockStorageCloserMockRecorder
- func (m *MockStorageCloser) Metadata(arg0 string) (binarystorage.Metadata, error)
- func (m *MockStorageCloser) Open(arg0 string) (binarystorage.Metadata, io.ReadCloser, error)
- type MockStorageCloserMockRecorder
- func (mr *MockStorageCloserMockRecorder) Add(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageCloserMockRecorder) AllMetadata() *gomock.Call
- func (mr *MockStorageCloserMockRecorder) Close() *gomock.Call
- func (mr *MockStorageCloserMockRecorder) Metadata(arg0 any) *gomock.Call
- func (mr *MockStorageCloserMockRecorder) Open(arg0 any) *gomock.Call
- type MockToolsFindEntity
- type MockToolsFindEntityMockRecorder
- type MockToolsFinder
- type MockToolsFinderMockRecorder
- type MockToolsStorageGetter
- type MockToolsStorageGetterMockRecorder
- type MockToolsURLGetter
- type MockToolsURLGetterMockRecorder
- type MockUnitStateBackend
- func (m *MockUnitStateBackend) ApplyOperation(arg0 state.ModelOperation) error
- func (m *MockUnitStateBackend) ControllerConfig() (controller.Config, error)
- func (m *MockUnitStateBackend) EXPECT() *MockUnitStateBackendMockRecorder
- func (m *MockUnitStateBackend) Unit(arg0 string) (common.UnitStateUnit, error)
- type MockUnitStateBackendMockRecorder
- type MockUnitStateUnit
- type MockUnitStateUnitMockRecorder
- type MockUpgradeSeriesBackend
- type MockUpgradeSeriesBackendMockRecorder
- type MockUpgradeSeriesMachine
- func (m *MockUpgradeSeriesMachine) Base() state.Base
- func (m *MockUpgradeSeriesMachine) EXPECT() *MockUpgradeSeriesMachineMockRecorder
- func (m *MockUpgradeSeriesMachine) RemoveUpgradeSeriesLock() error
- func (m *MockUpgradeSeriesMachine) SetInstanceStatus(arg0 status.StatusInfo) error
- func (m *MockUpgradeSeriesMachine) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error
- func (m *MockUpgradeSeriesMachine) StartUpgradeSeriesUnitCompletion(arg0 string) error
- func (m *MockUpgradeSeriesMachine) Units() ([]common.UpgradeSeriesUnit, error)
- func (m *MockUpgradeSeriesMachine) UpdateMachineSeries(arg0 state.Base) error
- func (m *MockUpgradeSeriesMachine) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, error)
- func (m *MockUpgradeSeriesMachine) UpgradeSeriesTarget() (string, error)
- func (m *MockUpgradeSeriesMachine) UpgradeSeriesUnitStatuses() (map[string]state.UpgradeSeriesUnitStatus, error)
- func (m *MockUpgradeSeriesMachine) WatchUpgradeSeriesNotifications() (state.NotifyWatcher, error)
- type MockUpgradeSeriesMachineMockRecorder
- func (mr *MockUpgradeSeriesMachineMockRecorder) Base() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) RemoveUpgradeSeriesLock() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) SetInstanceStatus(arg0 any) *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 any) *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) StartUpgradeSeriesUnitCompletion(arg0 any) *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) Units() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) UpdateMachineSeries(arg0 any) *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesStatus() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesTarget() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesUnitStatuses() *gomock.Call
- func (mr *MockUpgradeSeriesMachineMockRecorder) WatchUpgradeSeriesNotifications() *gomock.Call
- type MockUpgradeSeriesUnit
- func (m *MockUpgradeSeriesUnit) AssignedMachineId() (string, error)
- func (m *MockUpgradeSeriesUnit) EXPECT() *MockUpgradeSeriesUnitMockRecorder
- func (m *MockUpgradeSeriesUnit) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error
- func (m *MockUpgradeSeriesUnit) Tag() names.Tag
- func (m *MockUpgradeSeriesUnit) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, string, error)
- type MockUpgradeSeriesUnitMockRecorder
- func (mr *MockUpgradeSeriesUnitMockRecorder) AssignedMachineId() *gomock.Call
- func (mr *MockUpgradeSeriesUnitMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 any) *gomock.Call
- func (mr *MockUpgradeSeriesUnitMockRecorder) Tag() *gomock.Call
- func (mr *MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus() *gomock.Call
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 ¶
func (m *MockAPIHostPortsForAgentsGetter) EXPECT() *MockAPIHostPortsForAgentsGetterMockRecorder
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 ¶
func (m *MockAgentTooler) EXPECT() *MockAgentToolerMockRecorder
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.
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 ¶
func (mr *MockAgentToolerMockRecorder) Tag() *gomock.Call
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 ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
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 ¶
func (m *MockBootstrapEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error)
Bootstrap mocks base method.
func (*MockBootstrapEnviron) Config ¶
func (m *MockBootstrapEnviron) Config() *config.Config
Config mocks base method.
func (*MockBootstrapEnviron) ConstraintsValidator ¶
func (m *MockBootstrapEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockBootstrapEnviron) Create ¶
func (m *MockBootstrapEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockBootstrapEnviron) Destroy ¶
func (m *MockBootstrapEnviron) Destroy(arg0 context.ProviderCallContext) error
Destroy mocks base method.
func (*MockBootstrapEnviron) DestroyController ¶
func (m *MockBootstrapEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error
DestroyController mocks base method.
func (*MockBootstrapEnviron) EXPECT ¶
func (m *MockBootstrapEnviron) EXPECT() *MockBootstrapEnvironMockRecorder
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 ¶
func (mr *MockBootstrapEnvironMockRecorder) Config() *gomock.Call
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 ¶
func (m *MockControllerConfigState) EXPECT() *MockControllerConfigStateMockRecorder
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 ¶
func (m *MockEnvironConfigGetter) CloudSpec() (cloudspec.CloudSpec, error)
CloudSpec mocks base method.
func (*MockEnvironConfigGetter) EXPECT ¶
func (m *MockEnvironConfigGetter) EXPECT() *MockEnvironConfigGetterMockRecorder
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 ¶
func (mr *MockEnvironConfigGetterMockRecorder) CloudSpec() *gomock.Call
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 ¶
func (m *MockLeadershipMachine) EXPECT() *MockLeadershipMachineMockRecorder
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 ¶
func (m *MockLeadershipPinningBackend) EXPECT() *MockLeadershipPinningBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeadershipPinningBackend) Machine ¶
func (m *MockLeadershipPinningBackend) Machine(arg0 string) (common.LeadershipMachine, error)
Machine mocks base method.
type MockLeadershipPinningBackendMockRecorder ¶
type MockLeadershipPinningBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockLeadershipPinningBackendMockRecorder is the mock recorder for MockLeadershipPinningBackend.
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 ¶
func (m *MockModelOperation) EXPECT() *MockModelOperationMockRecorder
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.
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 ¶
func (m *MockStorageCloser) Add(arg0 io.Reader, arg1 binarystorage.Metadata) error
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 ¶
func (m *MockStorageCloser) EXPECT() *MockStorageCloserMockRecorder
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 ¶
func (m *MockStorageCloser) Open(arg0 string) (binarystorage.Metadata, io.ReadCloser, error)
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 ¶
func (mr *MockStorageCloserMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
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 ¶
func (m *MockToolsFindEntity) EXPECT() *MockToolsFindEntityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockToolsFindEntity) FindEntity ¶
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 ¶
func (m *MockToolsFinder) EXPECT() *MockToolsFinderMockRecorder
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 ¶
func (m *MockToolsStorageGetter) EXPECT() *MockToolsStorageGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockToolsStorageGetter) ToolsStorage ¶
func (m *MockToolsStorageGetter) ToolsStorage() (binarystorage.StorageCloser, error)
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 ¶
func (m *MockToolsURLGetter) EXPECT() *MockToolsURLGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockToolsURLGetterMockRecorder ¶
type MockToolsURLGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockToolsURLGetterMockRecorder is the mock recorder for MockToolsURLGetter.
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 ¶
func (m *MockUnitStateBackend) EXPECT() *MockUnitStateBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnitStateBackend) Unit ¶
func (m *MockUnitStateBackend) Unit(arg0 string) (common.UnitStateUnit, error)
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.
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 ¶
func (m *MockUnitStateUnit) EXPECT() *MockUnitStateUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnitStateUnit) SetStateOperation ¶
func (m *MockUnitStateUnit) SetStateOperation(arg0 *state.UnitState, arg1 state.UnitStateSizeLimits) state.ModelOperation
SetStateOperation 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 ¶
func (mr *MockUnitStateUnitMockRecorder) State() *gomock.Call
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 ¶
func (m *MockUpgradeSeriesBackend) EXPECT() *MockUpgradeSeriesBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpgradeSeriesBackend) Machine ¶
func (m *MockUpgradeSeriesBackend) Machine(arg0 string) (common.UpgradeSeriesMachine, error)
Machine mocks base method.
func (*MockUpgradeSeriesBackend) Unit ¶
func (m *MockUpgradeSeriesBackend) Unit(arg0 string) (common.UpgradeSeriesUnit, error)
Unit mocks base method.
type MockUpgradeSeriesBackendMockRecorder ¶
type MockUpgradeSeriesBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockUpgradeSeriesBackendMockRecorder is the mock recorder for MockUpgradeSeriesBackend.
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 ¶
func (m *MockUpgradeSeriesMachine) Base() state.Base
Base mocks base method.
func (*MockUpgradeSeriesMachine) EXPECT ¶
func (m *MockUpgradeSeriesMachine) EXPECT() *MockUpgradeSeriesMachineMockRecorder
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 ¶
func (m *MockUpgradeSeriesMachine) Units() ([]common.UpgradeSeriesUnit, error)
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 ¶
func (mr *MockUpgradeSeriesMachineMockRecorder) Base() *gomock.Call
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 ¶
func (mr *MockUpgradeSeriesMachineMockRecorder) Units() *gomock.Call
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 ¶
func (m *MockUpgradeSeriesUnit) EXPECT() *MockUpgradeSeriesUnitMockRecorder
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 ¶
func (mr *MockUpgradeSeriesUnitMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
func (*MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus ¶
func (mr *MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus() *gomock.Call
UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus.