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.
Index ¶
- type MockAPIHostPortsForAgentsGetter
- type MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
- func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
- func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
- func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
- type MockAPIHostPortsForAgentsGetterMockRecorder
- type MockAgentTooler
- type MockAgentToolerAgentToolsCall
- func (c *MockAgentToolerAgentToolsCall) Do(f func() (*tools.Tools, error)) *MockAgentToolerAgentToolsCall
- func (c *MockAgentToolerAgentToolsCall) DoAndReturn(f func() (*tools.Tools, error)) *MockAgentToolerAgentToolsCall
- func (c *MockAgentToolerAgentToolsCall) Return(arg0 *tools.Tools, arg1 error) *MockAgentToolerAgentToolsCall
- type MockAgentToolerMockRecorder
- type MockAgentToolerSetAgentVersionCall
- func (c *MockAgentToolerSetAgentVersionCall) Do(f func(version.Binary) error) *MockAgentToolerSetAgentVersionCall
- func (c *MockAgentToolerSetAgentVersionCall) DoAndReturn(f func(version.Binary) error) *MockAgentToolerSetAgentVersionCall
- func (c *MockAgentToolerSetAgentVersionCall) Return(arg0 error) *MockAgentToolerSetAgentVersionCall
- type MockAgentToolerTagCall
- type MockAuthorizer
- type MockAuthorizerAuthControllerCall
- type MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) Do(f func() bool) *MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) Return(arg0 bool) *MockAuthorizerAuthMachineAgentCall
- type MockAuthorizerGetAuthTagCall
- type MockAuthorizerMockRecorder
- type MockBlockCommandService
- type MockBlockCommandServiceGetBlockSwitchedOnCall
- func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) Do(f func(context.Context, blockcommand.BlockType) (string, error)) *MockBlockCommandServiceGetBlockSwitchedOnCall
- func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) DoAndReturn(f func(context.Context, blockcommand.BlockType) (string, error)) *MockBlockCommandServiceGetBlockSwitchedOnCall
- func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) Return(arg0 string, arg1 error) *MockBlockCommandServiceGetBlockSwitchedOnCall
- type MockBlockCommandServiceGetBlocksCall
- func (c *MockBlockCommandServiceGetBlocksCall) Do(f func(context.Context) ([]blockcommand.Block, error)) *MockBlockCommandServiceGetBlocksCall
- func (c *MockBlockCommandServiceGetBlocksCall) DoAndReturn(f func(context.Context) ([]blockcommand.Block, error)) *MockBlockCommandServiceGetBlocksCall
- func (c *MockBlockCommandServiceGetBlocksCall) Return(arg0 []blockcommand.Block, arg1 error) *MockBlockCommandServiceGetBlocksCall
- type MockBlockCommandServiceMockRecorder
- type MockBootstrapEnviron
- func (m *MockBootstrapEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 envcontext.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockBootstrapEnviron) Config() *config.Config
- func (m *MockBootstrapEnviron) ConstraintsValidator(arg0 envcontext.ProviderCallContext) (constraints.Validator, error)
- func (m *MockBootstrapEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockBootstrapEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
- func (m *MockBootstrapEnviron) DestroyController(arg0 envcontext.ProviderCallContext, arg1 string) error
- func (m *MockBootstrapEnviron) EXPECT() *MockBootstrapEnvironMockRecorder
- func (m *MockBootstrapEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
- func (m *MockBootstrapEnviron) SetConfig(arg0 context.Context, arg1 *config.Config) error
- func (m *MockBootstrapEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockBootstrapEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockBootstrapEnvironBootstrapCall
- func (c *MockBootstrapEnvironBootstrapCall) Do(...) *MockBootstrapEnvironBootstrapCall
- func (c *MockBootstrapEnvironBootstrapCall) DoAndReturn(...) *MockBootstrapEnvironBootstrapCall
- func (c *MockBootstrapEnvironBootstrapCall) Return(arg0 *environs.BootstrapResult, arg1 error) *MockBootstrapEnvironBootstrapCall
- type MockBootstrapEnvironConfigCall
- func (c *MockBootstrapEnvironConfigCall) Do(f func() *config.Config) *MockBootstrapEnvironConfigCall
- func (c *MockBootstrapEnvironConfigCall) DoAndReturn(f func() *config.Config) *MockBootstrapEnvironConfigCall
- func (c *MockBootstrapEnvironConfigCall) Return(arg0 *config.Config) *MockBootstrapEnvironConfigCall
- type MockBootstrapEnvironConstraintsValidatorCall
- func (c *MockBootstrapEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockBootstrapEnvironConstraintsValidatorCall
- func (c *MockBootstrapEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockBootstrapEnvironConstraintsValidatorCall
- func (c *MockBootstrapEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockBootstrapEnvironConstraintsValidatorCall
- type MockBootstrapEnvironCreateCall
- func (c *MockBootstrapEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockBootstrapEnvironCreateCall
- func (c *MockBootstrapEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockBootstrapEnvironCreateCall
- func (c *MockBootstrapEnvironCreateCall) Return(arg0 error) *MockBootstrapEnvironCreateCall
- type MockBootstrapEnvironDestroyCall
- func (c *MockBootstrapEnvironDestroyCall) Do(f func(envcontext.ProviderCallContext) error) *MockBootstrapEnvironDestroyCall
- func (c *MockBootstrapEnvironDestroyCall) DoAndReturn(f func(envcontext.ProviderCallContext) error) *MockBootstrapEnvironDestroyCall
- func (c *MockBootstrapEnvironDestroyCall) Return(arg0 error) *MockBootstrapEnvironDestroyCall
- type MockBootstrapEnvironDestroyControllerCall
- func (c *MockBootstrapEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockBootstrapEnvironDestroyControllerCall
- func (c *MockBootstrapEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockBootstrapEnvironDestroyControllerCall
- func (c *MockBootstrapEnvironDestroyControllerCall) Return(arg0 error) *MockBootstrapEnvironDestroyControllerCall
- type MockBootstrapEnvironMockRecorder
- func (mr *MockBootstrapEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *MockBootstrapEnvironBootstrapCall
- func (mr *MockBootstrapEnvironMockRecorder) Config() *MockBootstrapEnvironConfigCall
- func (mr *MockBootstrapEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockBootstrapEnvironConstraintsValidatorCall
- func (mr *MockBootstrapEnvironMockRecorder) Create(arg0, arg1 any) *MockBootstrapEnvironCreateCall
- func (mr *MockBootstrapEnvironMockRecorder) Destroy(arg0 any) *MockBootstrapEnvironDestroyCall
- func (mr *MockBootstrapEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockBootstrapEnvironDestroyControllerCall
- func (mr *MockBootstrapEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockBootstrapEnvironPrepareForBootstrapCall
- func (mr *MockBootstrapEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockBootstrapEnvironSetConfigCall
- func (mr *MockBootstrapEnvironMockRecorder) StorageProvider(arg0 any) *MockBootstrapEnvironStorageProviderCall
- func (mr *MockBootstrapEnvironMockRecorder) StorageProviderTypes() *MockBootstrapEnvironStorageProviderTypesCall
- type MockBootstrapEnvironPrepareForBootstrapCall
- func (c *MockBootstrapEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockBootstrapEnvironPrepareForBootstrapCall
- func (c *MockBootstrapEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockBootstrapEnvironPrepareForBootstrapCall
- func (c *MockBootstrapEnvironPrepareForBootstrapCall) Return(arg0 error) *MockBootstrapEnvironPrepareForBootstrapCall
- type MockBootstrapEnvironSetConfigCall
- func (c *MockBootstrapEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockBootstrapEnvironSetConfigCall
- func (c *MockBootstrapEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockBootstrapEnvironSetConfigCall
- func (c *MockBootstrapEnvironSetConfigCall) Return(arg0 error) *MockBootstrapEnvironSetConfigCall
- type MockBootstrapEnvironStorageProviderCall
- func (c *MockBootstrapEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockBootstrapEnvironStorageProviderCall
- func (c *MockBootstrapEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockBootstrapEnvironStorageProviderCall
- func (c *MockBootstrapEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockBootstrapEnvironStorageProviderCall
- type MockBootstrapEnvironStorageProviderTypesCall
- func (c *MockBootstrapEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockBootstrapEnvironStorageProviderTypesCall
- func (c *MockBootstrapEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockBootstrapEnvironStorageProviderTypesCall
- func (c *MockBootstrapEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockBootstrapEnvironStorageProviderTypesCall
- type MockCloudService
- type MockCloudServiceCloudCall
- func (c *MockCloudServiceCloudCall) Do(f func(context.Context, string) (*cloud.Cloud, error)) *MockCloudServiceCloudCall
- func (c *MockCloudServiceCloudCall) DoAndReturn(f func(context.Context, string) (*cloud.Cloud, error)) *MockCloudServiceCloudCall
- func (c *MockCloudServiceCloudCall) Return(arg0 *cloud.Cloud, arg1 error) *MockCloudServiceCloudCall
- type MockCloudServiceMockRecorder
- type MockCloudServiceWatchCloudCall
- func (c *MockCloudServiceWatchCloudCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockCloudServiceWatchCloudCall
- func (c *MockCloudServiceWatchCloudCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockCloudServiceWatchCloudCall
- func (c *MockCloudServiceWatchCloudCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockCloudServiceWatchCloudCall
- type MockControllerConfigService
- type MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigServiceControllerConfigCall
- type MockControllerConfigServiceMockRecorder
- type MockControllerConfigState
- func (m *MockControllerConfigState) APIHostPortsForAgents(arg0 controller.Config) ([]network.SpaceHostPorts, error)
- func (m *MockControllerConfigState) CompletedMigrationForModel(arg0 string) (state.ModelMigration, error)
- func (m *MockControllerConfigState) EXPECT() *MockControllerConfigStateMockRecorder
- func (m *MockControllerConfigState) ModelExists(arg0 string) (bool, error)
- type MockControllerConfigStateAPIHostPortsForAgentsCall
- func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerConfigStateAPIHostPortsForAgentsCall
- func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerConfigStateAPIHostPortsForAgentsCall
- func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockControllerConfigStateAPIHostPortsForAgentsCall
- type MockControllerConfigStateCompletedMigrationForModelCall
- func (c *MockControllerConfigStateCompletedMigrationForModelCall) Do(f func(string) (state.ModelMigration, error)) *MockControllerConfigStateCompletedMigrationForModelCall
- func (c *MockControllerConfigStateCompletedMigrationForModelCall) DoAndReturn(f func(string) (state.ModelMigration, error)) *MockControllerConfigStateCompletedMigrationForModelCall
- func (c *MockControllerConfigStateCompletedMigrationForModelCall) Return(arg0 state.ModelMigration, arg1 error) *MockControllerConfigStateCompletedMigrationForModelCall
- type MockControllerConfigStateMockRecorder
- func (mr *MockControllerConfigStateMockRecorder) APIHostPortsForAgents(arg0 any) *MockControllerConfigStateAPIHostPortsForAgentsCall
- func (mr *MockControllerConfigStateMockRecorder) CompletedMigrationForModel(arg0 any) *MockControllerConfigStateCompletedMigrationForModelCall
- func (mr *MockControllerConfigStateMockRecorder) ModelExists(arg0 any) *MockControllerConfigStateModelExistsCall
- type MockControllerConfigStateModelExistsCall
- func (c *MockControllerConfigStateModelExistsCall) Do(f func(string) (bool, error)) *MockControllerConfigStateModelExistsCall
- func (c *MockControllerConfigStateModelExistsCall) DoAndReturn(f func(string) (bool, error)) *MockControllerConfigStateModelExistsCall
- func (c *MockControllerConfigStateModelExistsCall) Return(arg0 bool, arg1 error) *MockControllerConfigStateModelExistsCall
- type MockCredentialService
- func (m *MockCredentialService) CloudCredential(arg0 context.Context, arg1 credential.Key) (cloud.Credential, error)
- func (m *MockCredentialService) EXPECT() *MockCredentialServiceMockRecorder
- func (m *MockCredentialService) WatchCredential(arg0 context.Context, arg1 credential.Key) (watcher.Watcher[struct{}], error)
- type MockCredentialServiceCloudCredentialCall
- func (c *MockCredentialServiceCloudCredentialCall) Do(f func(context.Context, credential.Key) (cloud.Credential, error)) *MockCredentialServiceCloudCredentialCall
- func (c *MockCredentialServiceCloudCredentialCall) DoAndReturn(f func(context.Context, credential.Key) (cloud.Credential, error)) *MockCredentialServiceCloudCredentialCall
- func (c *MockCredentialServiceCloudCredentialCall) Return(arg0 cloud.Credential, arg1 error) *MockCredentialServiceCloudCredentialCall
- type MockCredentialServiceMockRecorder
- type MockCredentialServiceWatchCredentialCall
- func (c *MockCredentialServiceWatchCredentialCall) Do(f func(context.Context, credential.Key) (watcher.Watcher[struct{}], error)) *MockCredentialServiceWatchCredentialCall
- func (c *MockCredentialServiceWatchCredentialCall) DoAndReturn(f func(context.Context, credential.Key) (watcher.Watcher[struct{}], error)) *MockCredentialServiceWatchCredentialCall
- func (c *MockCredentialServiceWatchCredentialCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockCredentialServiceWatchCredentialCall
- type MockEnsureDeadMachineService
- type MockEnsureDeadMachineServiceEnsureDeadMachineCall
- func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) Do(f func(context.Context, machine.Name) error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
- func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) DoAndReturn(f func(context.Context, machine.Name) error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
- func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) Return(arg0 error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
- type MockEnsureDeadMachineServiceMockRecorder
- type MockExternalControllerService
- func (m *MockExternalControllerService) ControllerForModel(arg0 context.Context, arg1 string) (*crossmodel.ControllerInfo, error)
- func (m *MockExternalControllerService) EXPECT() *MockExternalControllerServiceMockRecorder
- func (m *MockExternalControllerService) UpdateExternalController(arg0 context.Context, arg1 crossmodel.ControllerInfo) error
- type MockExternalControllerServiceControllerForModelCall
- func (c *MockExternalControllerServiceControllerForModelCall) Do(f func(context.Context, string) (*crossmodel.ControllerInfo, error)) *MockExternalControllerServiceControllerForModelCall
- func (c *MockExternalControllerServiceControllerForModelCall) DoAndReturn(f func(context.Context, string) (*crossmodel.ControllerInfo, error)) *MockExternalControllerServiceControllerForModelCall
- func (c *MockExternalControllerServiceControllerForModelCall) Return(arg0 *crossmodel.ControllerInfo, arg1 error) *MockExternalControllerServiceControllerForModelCall
- type MockExternalControllerServiceMockRecorder
- type MockExternalControllerServiceUpdateExternalControllerCall
- func (c *MockExternalControllerServiceUpdateExternalControllerCall) Do(f func(context.Context, crossmodel.ControllerInfo) error) *MockExternalControllerServiceUpdateExternalControllerCall
- func (c *MockExternalControllerServiceUpdateExternalControllerCall) DoAndReturn(f func(context.Context, crossmodel.ControllerInfo) error) *MockExternalControllerServiceUpdateExternalControllerCall
- func (c *MockExternalControllerServiceUpdateExternalControllerCall) Return(arg0 error) *MockExternalControllerServiceUpdateExternalControllerCall
- type MockLeadershipMachine
- type MockLeadershipMachineApplicationNamesCall
- func (c *MockLeadershipMachineApplicationNamesCall) Do(f func() ([]string, error)) *MockLeadershipMachineApplicationNamesCall
- func (c *MockLeadershipMachineApplicationNamesCall) DoAndReturn(f func() ([]string, error)) *MockLeadershipMachineApplicationNamesCall
- func (c *MockLeadershipMachineApplicationNamesCall) Return(arg0 []string, arg1 error) *MockLeadershipMachineApplicationNamesCall
- type MockLeadershipMachineMockRecorder
- type MockLeadershipPinningBackend
- type MockLeadershipPinningBackendMachineCall
- func (c *MockLeadershipPinningBackendMachineCall) Do(f func(string) (common.LeadershipMachine, error)) *MockLeadershipPinningBackendMachineCall
- func (c *MockLeadershipPinningBackendMachineCall) DoAndReturn(f func(string) (common.LeadershipMachine, error)) *MockLeadershipPinningBackendMachineCall
- func (c *MockLeadershipPinningBackendMachineCall) Return(arg0 common.LeadershipMachine, arg1 error) *MockLeadershipPinningBackendMachineCall
- type MockLeadershipPinningBackendMockRecorder
- type MockMachineRebootService
- func (m *MockMachineRebootService) ClearMachineReboot(arg0 context.Context, arg1 string) error
- func (m *MockMachineRebootService) EXPECT() *MockMachineRebootServiceMockRecorder
- func (m *MockMachineRebootService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
- func (m *MockMachineRebootService) IsMachineRebootRequired(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockMachineRebootService) RequireMachineReboot(arg0 context.Context, arg1 string) error
- func (m *MockMachineRebootService) ShouldRebootOrShutdown(arg0 context.Context, arg1 string) (machine.RebootAction, error)
- type MockMachineRebootServiceClearMachineRebootCall
- func (c *MockMachineRebootServiceClearMachineRebootCall) Do(f func(context.Context, string) error) *MockMachineRebootServiceClearMachineRebootCall
- func (c *MockMachineRebootServiceClearMachineRebootCall) DoAndReturn(f func(context.Context, string) error) *MockMachineRebootServiceClearMachineRebootCall
- func (c *MockMachineRebootServiceClearMachineRebootCall) Return(arg0 error) *MockMachineRebootServiceClearMachineRebootCall
- type MockMachineRebootServiceGetMachineUUIDCall
- func (c *MockMachineRebootServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineRebootServiceGetMachineUUIDCall
- func (c *MockMachineRebootServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineRebootServiceGetMachineUUIDCall
- func (c *MockMachineRebootServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineRebootServiceGetMachineUUIDCall
- type MockMachineRebootServiceIsMachineRebootRequiredCall
- func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) Do(f func(context.Context, string) (bool, error)) *MockMachineRebootServiceIsMachineRebootRequiredCall
- func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) DoAndReturn(f func(context.Context, string) (bool, error)) *MockMachineRebootServiceIsMachineRebootRequiredCall
- func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) Return(arg0 bool, arg1 error) *MockMachineRebootServiceIsMachineRebootRequiredCall
- type MockMachineRebootServiceMockRecorder
- func (mr *MockMachineRebootServiceMockRecorder) ClearMachineReboot(arg0, arg1 any) *MockMachineRebootServiceClearMachineRebootCall
- func (mr *MockMachineRebootServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineRebootServiceGetMachineUUIDCall
- func (mr *MockMachineRebootServiceMockRecorder) IsMachineRebootRequired(arg0, arg1 any) *MockMachineRebootServiceIsMachineRebootRequiredCall
- func (mr *MockMachineRebootServiceMockRecorder) RequireMachineReboot(arg0, arg1 any) *MockMachineRebootServiceRequireMachineRebootCall
- func (mr *MockMachineRebootServiceMockRecorder) ShouldRebootOrShutdown(arg0, arg1 any) *MockMachineRebootServiceShouldRebootOrShutdownCall
- type MockMachineRebootServiceRequireMachineRebootCall
- func (c *MockMachineRebootServiceRequireMachineRebootCall) Do(f func(context.Context, string) error) *MockMachineRebootServiceRequireMachineRebootCall
- func (c *MockMachineRebootServiceRequireMachineRebootCall) DoAndReturn(f func(context.Context, string) error) *MockMachineRebootServiceRequireMachineRebootCall
- func (c *MockMachineRebootServiceRequireMachineRebootCall) Return(arg0 error) *MockMachineRebootServiceRequireMachineRebootCall
- type MockMachineRebootServiceShouldRebootOrShutdownCall
- func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) Do(f func(context.Context, string) (machine.RebootAction, error)) *MockMachineRebootServiceShouldRebootOrShutdownCall
- func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) DoAndReturn(f func(context.Context, string) (machine.RebootAction, error)) *MockMachineRebootServiceShouldRebootOrShutdownCall
- func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) Return(arg0 machine.RebootAction, arg1 error) *MockMachineRebootServiceShouldRebootOrShutdownCall
- type MockMachineService
- func (m *MockMachineService) EXPECT() *MockMachineServiceMockRecorder
- func (m *MockMachineService) EnsureDeadMachine(arg0 context.Context, arg1 machine.Name) error
- func (m *MockMachineService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
- func (m *MockMachineService) HardwareCharacteristics(arg0 context.Context, arg1 string) (*instance.HardwareCharacteristics, error)
- func (m *MockMachineService) InstanceID(arg0 context.Context, arg1 string) (instance.Id, error)
- func (m *MockMachineService) InstanceIDAndName(arg0 context.Context, arg1 string) (instance.Id, string, error)
- type MockMachineServiceEnsureDeadMachineCall
- func (c *MockMachineServiceEnsureDeadMachineCall) Do(f func(context.Context, machine.Name) error) *MockMachineServiceEnsureDeadMachineCall
- func (c *MockMachineServiceEnsureDeadMachineCall) DoAndReturn(f func(context.Context, machine.Name) error) *MockMachineServiceEnsureDeadMachineCall
- func (c *MockMachineServiceEnsureDeadMachineCall) Return(arg0 error) *MockMachineServiceEnsureDeadMachineCall
- type MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineServiceGetMachineUUIDCall
- type MockMachineServiceHardwareCharacteristicsCall
- func (c *MockMachineServiceHardwareCharacteristicsCall) Do(f func(context.Context, string) (*instance.HardwareCharacteristics, error)) *MockMachineServiceHardwareCharacteristicsCall
- func (c *MockMachineServiceHardwareCharacteristicsCall) DoAndReturn(f func(context.Context, string) (*instance.HardwareCharacteristics, error)) *MockMachineServiceHardwareCharacteristicsCall
- func (c *MockMachineServiceHardwareCharacteristicsCall) Return(arg0 *instance.HardwareCharacteristics, arg1 error) *MockMachineServiceHardwareCharacteristicsCall
- type MockMachineServiceInstanceIDAndNameCall
- func (c *MockMachineServiceInstanceIDAndNameCall) Do(f func(context.Context, string) (instance.Id, string, error)) *MockMachineServiceInstanceIDAndNameCall
- func (c *MockMachineServiceInstanceIDAndNameCall) DoAndReturn(f func(context.Context, string) (instance.Id, string, error)) *MockMachineServiceInstanceIDAndNameCall
- func (c *MockMachineServiceInstanceIDAndNameCall) Return(arg0 instance.Id, arg1 string, arg2 error) *MockMachineServiceInstanceIDAndNameCall
- type MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) Do(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) DoAndReturn(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) Return(arg0 instance.Id, arg1 error) *MockMachineServiceInstanceIDCall
- type MockMachineServiceMockRecorder
- func (mr *MockMachineServiceMockRecorder) EnsureDeadMachine(arg0, arg1 any) *MockMachineServiceEnsureDeadMachineCall
- func (mr *MockMachineServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineServiceGetMachineUUIDCall
- func (mr *MockMachineServiceMockRecorder) HardwareCharacteristics(arg0, arg1 any) *MockMachineServiceHardwareCharacteristicsCall
- func (mr *MockMachineServiceMockRecorder) InstanceID(arg0, arg1 any) *MockMachineServiceInstanceIDCall
- func (mr *MockMachineServiceMockRecorder) InstanceIDAndName(arg0, arg1 any) *MockMachineServiceInstanceIDAndNameCall
- type MockModelAgentService
- func (m *MockModelAgentService) EXPECT() *MockModelAgentServiceMockRecorder
- func (m *MockModelAgentService) GetMachineTargetAgentVersion(arg0 context.Context, arg1 machine.Name) (version.Number, error)
- func (m *MockModelAgentService) GetModelTargetAgentVersion(arg0 context.Context) (version.Number, error)
- func (m *MockModelAgentService) GetUnitTargetAgentVersion(arg0 context.Context, arg1 string) (version.Number, error)
- type MockModelAgentServiceGetMachineTargetAgentVersionCall
- func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) Do(f func(context.Context, machine.Name) (version.Number, error)) *MockModelAgentServiceGetMachineTargetAgentVersionCall
- func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) DoAndReturn(f func(context.Context, machine.Name) (version.Number, error)) *MockModelAgentServiceGetMachineTargetAgentVersionCall
- func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetMachineTargetAgentVersionCall
- type MockModelAgentServiceGetModelTargetAgentVersionCall
- func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) Do(f func(context.Context) (version.Number, error)) *MockModelAgentServiceGetModelTargetAgentVersionCall
- func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) DoAndReturn(f func(context.Context) (version.Number, error)) *MockModelAgentServiceGetModelTargetAgentVersionCall
- func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetModelTargetAgentVersionCall
- type MockModelAgentServiceGetUnitTargetAgentVersionCall
- func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) Do(f func(context.Context, string) (version.Number, error)) *MockModelAgentServiceGetUnitTargetAgentVersionCall
- func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) DoAndReturn(f func(context.Context, string) (version.Number, error)) *MockModelAgentServiceGetUnitTargetAgentVersionCall
- func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetUnitTargetAgentVersionCall
- type MockModelAgentServiceMockRecorder
- func (mr *MockModelAgentServiceMockRecorder) GetMachineTargetAgentVersion(arg0, arg1 any) *MockModelAgentServiceGetMachineTargetAgentVersionCall
- func (mr *MockModelAgentServiceMockRecorder) GetModelTargetAgentVersion(arg0 any) *MockModelAgentServiceGetModelTargetAgentVersionCall
- func (mr *MockModelAgentServiceMockRecorder) GetUnitTargetAgentVersion(arg0, arg1 any) *MockModelAgentServiceGetUnitTargetAgentVersionCall
- type MockModelConfigService
- type MockModelConfigServiceMockRecorder
- type MockModelConfigServiceModelConfigCall
- func (c *MockModelConfigServiceModelConfigCall) Do(f func(context.Context) (*config.Config, error)) *MockModelConfigServiceModelConfigCall
- func (c *MockModelConfigServiceModelConfigCall) DoAndReturn(f func(context.Context) (*config.Config, error)) *MockModelConfigServiceModelConfigCall
- func (c *MockModelConfigServiceModelConfigCall) Return(arg0 *config.Config, arg1 error) *MockModelConfigServiceModelConfigCall
- type MockModelConfigServiceWatchCall
- func (c *MockModelConfigServiceWatchCall) Do(f func() (watcher.Watcher[[]string], error)) *MockModelConfigServiceWatchCall
- func (c *MockModelConfigServiceWatchCall) DoAndReturn(f func() (watcher.Watcher[[]string], error)) *MockModelConfigServiceWatchCall
- func (c *MockModelConfigServiceWatchCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockModelConfigServiceWatchCall
- type MockModelOperation
- type MockModelOperationBuildCall
- func (c *MockModelOperationBuildCall) Do(f func(int) ([]txn.Op, error)) *MockModelOperationBuildCall
- func (c *MockModelOperationBuildCall) DoAndReturn(f func(int) ([]txn.Op, error)) *MockModelOperationBuildCall
- func (c *MockModelOperationBuildCall) Return(arg0 []txn.Op, arg1 error) *MockModelOperationBuildCall
- type MockModelOperationDoneCall
- type MockModelOperationMockRecorder
- type MockObjectStore
- func (m *MockObjectStore) EXPECT() *MockObjectStoreMockRecorder
- func (m *MockObjectStore) Get(arg0 context.Context, arg1 string) (io.ReadCloser, int64, error)
- func (m *MockObjectStore) GetBySHA256Prefix(arg0 context.Context, arg1 string) (io.ReadCloser, int64, error)
- func (m *MockObjectStore) Put(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 int64) (objectstore.UUID, error)
- func (m *MockObjectStore) PutAndCheckHash(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 int64, arg4 string) (objectstore.UUID, error)
- func (m *MockObjectStore) Remove(arg0 context.Context, arg1 string) error
- type MockObjectStoreGetBySHA256PrefixCall
- func (c *MockObjectStoreGetBySHA256PrefixCall) Do(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetBySHA256PrefixCall
- func (c *MockObjectStoreGetBySHA256PrefixCall) DoAndReturn(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetBySHA256PrefixCall
- func (c *MockObjectStoreGetBySHA256PrefixCall) Return(arg0 io.ReadCloser, arg1 int64, arg2 error) *MockObjectStoreGetBySHA256PrefixCall
- type MockObjectStoreGetCall
- func (c *MockObjectStoreGetCall) Do(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetCall
- func (c *MockObjectStoreGetCall) DoAndReturn(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetCall
- func (c *MockObjectStoreGetCall) Return(arg0 io.ReadCloser, arg1 int64, arg2 error) *MockObjectStoreGetCall
- type MockObjectStoreMockRecorder
- func (mr *MockObjectStoreMockRecorder) Get(arg0, arg1 any) *MockObjectStoreGetCall
- func (mr *MockObjectStoreMockRecorder) GetBySHA256Prefix(arg0, arg1 any) *MockObjectStoreGetBySHA256PrefixCall
- func (mr *MockObjectStoreMockRecorder) Put(arg0, arg1, arg2, arg3 any) *MockObjectStorePutCall
- func (mr *MockObjectStoreMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3, arg4 any) *MockObjectStorePutAndCheckHashCall
- func (mr *MockObjectStoreMockRecorder) Remove(arg0, arg1 any) *MockObjectStoreRemoveCall
- type MockObjectStorePutAndCheckHashCall
- func (c *MockObjectStorePutAndCheckHashCall) Do(...) *MockObjectStorePutAndCheckHashCall
- func (c *MockObjectStorePutAndCheckHashCall) DoAndReturn(...) *MockObjectStorePutAndCheckHashCall
- func (c *MockObjectStorePutAndCheckHashCall) Return(arg0 objectstore.UUID, arg1 error) *MockObjectStorePutAndCheckHashCall
- type MockObjectStorePutCall
- func (c *MockObjectStorePutCall) Do(f func(context.Context, string, io.Reader, int64) (objectstore.UUID, error)) *MockObjectStorePutCall
- func (c *MockObjectStorePutCall) DoAndReturn(f func(context.Context, string, io.Reader, int64) (objectstore.UUID, error)) *MockObjectStorePutCall
- func (c *MockObjectStorePutCall) Return(arg0 objectstore.UUID, arg1 error) *MockObjectStorePutCall
- type MockObjectStoreRemoveCall
- func (c *MockObjectStoreRemoveCall) Do(f func(context.Context, string) error) *MockObjectStoreRemoveCall
- func (c *MockObjectStoreRemoveCall) DoAndReturn(f func(context.Context, string) error) *MockObjectStoreRemoveCall
- func (c *MockObjectStoreRemoveCall) Return(arg0 error) *MockObjectStoreRemoveCall
- type MockStorageCloser
- func (m *MockStorageCloser) Add(arg0 context.Context, arg1 io.Reader, arg2 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 context.Context, arg1 string) (binarystorage.Metadata, io.ReadCloser, error)
- type MockStorageCloserAddCall
- func (c *MockStorageCloserAddCall) Do(f func(context.Context, io.Reader, binarystorage.Metadata) error) *MockStorageCloserAddCall
- func (c *MockStorageCloserAddCall) DoAndReturn(f func(context.Context, io.Reader, binarystorage.Metadata) error) *MockStorageCloserAddCall
- func (c *MockStorageCloserAddCall) Return(arg0 error) *MockStorageCloserAddCall
- type MockStorageCloserAllMetadataCall
- func (c *MockStorageCloserAllMetadataCall) Do(f func() ([]binarystorage.Metadata, error)) *MockStorageCloserAllMetadataCall
- func (c *MockStorageCloserAllMetadataCall) DoAndReturn(f func() ([]binarystorage.Metadata, error)) *MockStorageCloserAllMetadataCall
- func (c *MockStorageCloserAllMetadataCall) Return(arg0 []binarystorage.Metadata, arg1 error) *MockStorageCloserAllMetadataCall
- type MockStorageCloserCloseCall
- type MockStorageCloserMetadataCall
- func (c *MockStorageCloserMetadataCall) Do(f func(string) (binarystorage.Metadata, error)) *MockStorageCloserMetadataCall
- func (c *MockStorageCloserMetadataCall) DoAndReturn(f func(string) (binarystorage.Metadata, error)) *MockStorageCloserMetadataCall
- func (c *MockStorageCloserMetadataCall) Return(arg0 binarystorage.Metadata, arg1 error) *MockStorageCloserMetadataCall
- type MockStorageCloserMockRecorder
- func (mr *MockStorageCloserMockRecorder) Add(arg0, arg1, arg2 any) *MockStorageCloserAddCall
- func (mr *MockStorageCloserMockRecorder) AllMetadata() *MockStorageCloserAllMetadataCall
- func (mr *MockStorageCloserMockRecorder) Close() *MockStorageCloserCloseCall
- func (mr *MockStorageCloserMockRecorder) Metadata(arg0 any) *MockStorageCloserMetadataCall
- func (mr *MockStorageCloserMockRecorder) Open(arg0, arg1 any) *MockStorageCloserOpenCall
- type MockStorageCloserOpenCall
- func (c *MockStorageCloserOpenCall) Do(f func(context.Context, string) (binarystorage.Metadata, io.ReadCloser, error)) *MockStorageCloserOpenCall
- func (c *MockStorageCloserOpenCall) DoAndReturn(f func(context.Context, string) (binarystorage.Metadata, io.ReadCloser, error)) *MockStorageCloserOpenCall
- func (c *MockStorageCloserOpenCall) Return(arg0 binarystorage.Metadata, arg1 io.ReadCloser, arg2 error) *MockStorageCloserOpenCall
- type MockToolsFindEntity
- type MockToolsFindEntityFindEntityCall
- func (c *MockToolsFindEntityFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockToolsFindEntityFindEntityCall
- func (c *MockToolsFindEntityFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockToolsFindEntityFindEntityCall
- func (c *MockToolsFindEntityFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockToolsFindEntityFindEntityCall
- type MockToolsFindEntityMockRecorder
- type MockToolsFinder
- type MockToolsFinderFindAgentsCall
- func (c *MockToolsFinderFindAgentsCall) Do(f func(context.Context, common.FindAgentsParams) (tools.List, error)) *MockToolsFinderFindAgentsCall
- func (c *MockToolsFinderFindAgentsCall) DoAndReturn(f func(context.Context, common.FindAgentsParams) (tools.List, error)) *MockToolsFinderFindAgentsCall
- func (c *MockToolsFinderFindAgentsCall) Return(arg0 tools.List, arg1 error) *MockToolsFinderFindAgentsCall
- type MockToolsFinderMockRecorder
- type MockToolsStorageGetter
- type MockToolsStorageGetterMockRecorder
- type MockToolsStorageGetterToolsStorageCall
- func (c *MockToolsStorageGetterToolsStorageCall) Do(f func(objectstore.ObjectStore) (binarystorage.StorageCloser, error)) *MockToolsStorageGetterToolsStorageCall
- func (c *MockToolsStorageGetterToolsStorageCall) DoAndReturn(f func(objectstore.ObjectStore) (binarystorage.StorageCloser, error)) *MockToolsStorageGetterToolsStorageCall
- func (c *MockToolsStorageGetterToolsStorageCall) Return(arg0 binarystorage.StorageCloser, arg1 error) *MockToolsStorageGetterToolsStorageCall
- type MockToolsURLGetter
- type MockToolsURLGetterMockRecorder
- type MockToolsURLGetterToolsURLsCall
- func (c *MockToolsURLGetterToolsURLsCall) Do(f func(context.Context, controller.Config, version.Binary) ([]string, error)) *MockToolsURLGetterToolsURLsCall
- func (c *MockToolsURLGetterToolsURLsCall) DoAndReturn(f func(context.Context, controller.Config, version.Binary) ([]string, error)) *MockToolsURLGetterToolsURLsCall
- func (c *MockToolsURLGetterToolsURLsCall) Return(arg0 []string, arg1 error) *MockToolsURLGetterToolsURLsCall
- type MockUnitStateBackend
- type MockUnitStateBackendApplyOperationCall
- func (c *MockUnitStateBackendApplyOperationCall) Do(f func(state.ModelOperation) error) *MockUnitStateBackendApplyOperationCall
- func (c *MockUnitStateBackendApplyOperationCall) DoAndReturn(f func(state.ModelOperation) error) *MockUnitStateBackendApplyOperationCall
- func (c *MockUnitStateBackendApplyOperationCall) Return(arg0 error) *MockUnitStateBackendApplyOperationCall
- type MockUnitStateBackendMockRecorder
- type MockUnitStateBackendUnitCall
- func (c *MockUnitStateBackendUnitCall) Do(f func(string) (common.UnitStateUnit, error)) *MockUnitStateBackendUnitCall
- func (c *MockUnitStateBackendUnitCall) DoAndReturn(f func(string) (common.UnitStateUnit, error)) *MockUnitStateBackendUnitCall
- func (c *MockUnitStateBackendUnitCall) Return(arg0 common.UnitStateUnit, arg1 error) *MockUnitStateBackendUnitCall
- type MockUnitStateService
- func (m *MockUnitStateService) EXPECT() *MockUnitStateServiceMockRecorder
- func (m *MockUnitStateService) GetState(arg0 context.Context, arg1 string) (unitstate.RetrievedUnitState, error)
- func (m *MockUnitStateService) GetUnitUUIDForName(arg0 context.Context, arg1 string) (string, error)
- func (m *MockUnitStateService) SetState(arg0 context.Context, arg1 unitstate.UnitState) error
- type MockUnitStateServiceGetStateCall
- func (c *MockUnitStateServiceGetStateCall) Do(f func(context.Context, string) (unitstate.RetrievedUnitState, error)) *MockUnitStateServiceGetStateCall
- func (c *MockUnitStateServiceGetStateCall) DoAndReturn(f func(context.Context, string) (unitstate.RetrievedUnitState, error)) *MockUnitStateServiceGetStateCall
- func (c *MockUnitStateServiceGetStateCall) Return(arg0 unitstate.RetrievedUnitState, arg1 error) *MockUnitStateServiceGetStateCall
- type MockUnitStateServiceGetUnitUUIDForNameCall
- func (c *MockUnitStateServiceGetUnitUUIDForNameCall) Do(f func(context.Context, string) (string, error)) *MockUnitStateServiceGetUnitUUIDForNameCall
- func (c *MockUnitStateServiceGetUnitUUIDForNameCall) DoAndReturn(f func(context.Context, string) (string, error)) *MockUnitStateServiceGetUnitUUIDForNameCall
- func (c *MockUnitStateServiceGetUnitUUIDForNameCall) Return(arg0 string, arg1 error) *MockUnitStateServiceGetUnitUUIDForNameCall
- type MockUnitStateServiceMockRecorder
- func (mr *MockUnitStateServiceMockRecorder) GetState(arg0, arg1 any) *MockUnitStateServiceGetStateCall
- func (mr *MockUnitStateServiceMockRecorder) GetUnitUUIDForName(arg0, arg1 any) *MockUnitStateServiceGetUnitUUIDForNameCall
- func (mr *MockUnitStateServiceMockRecorder) SetState(arg0, arg1 any) *MockUnitStateServiceSetStateCall
- type MockUnitStateServiceSetStateCall
- func (c *MockUnitStateServiceSetStateCall) Do(f func(context.Context, unitstate.UnitState) error) *MockUnitStateServiceSetStateCall
- func (c *MockUnitStateServiceSetStateCall) DoAndReturn(f func(context.Context, unitstate.UnitState) error) *MockUnitStateServiceSetStateCall
- func (c *MockUnitStateServiceSetStateCall) Return(arg0 error) *MockUnitStateServiceSetStateCall
- type MockUnitStateUnit
- type MockUnitStateUnitMockRecorder
- type MockUnitStateUnitSetStateOperationCall
- func (c *MockUnitStateUnitSetStateOperationCall) Do(f func(*state.UnitState, state.UnitStateSizeLimits) state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
- func (c *MockUnitStateUnitSetStateOperationCall) DoAndReturn(f func(*state.UnitState, state.UnitStateSizeLimits) state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
- func (c *MockUnitStateUnitSetStateOperationCall) Return(arg0 state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
- type MockUnitStateUnitStateCall
- func (c *MockUnitStateUnitStateCall) Do(f func() (*state.UnitState, error)) *MockUnitStateUnitStateCall
- func (c *MockUnitStateUnitStateCall) DoAndReturn(f func() (*state.UnitState, error)) *MockUnitStateUnitStateCall
- func (c *MockUnitStateUnitStateCall) Return(arg0 *state.UnitState, arg1 error) *MockUnitStateUnitStateCall
- type MockWatchableMachineService
- type MockWatchableMachineServiceMockRecorder
- type MockWatchableMachineServiceWatchMachineRebootCall
- func (c *MockWatchableMachineServiceWatchMachineRebootCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockWatchableMachineServiceWatchMachineRebootCall
- func (c *MockWatchableMachineServiceWatchMachineRebootCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockWatchableMachineServiceWatchMachineRebootCall
- func (c *MockWatchableMachineServiceWatchMachineRebootCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockWatchableMachineServiceWatchMachineRebootCall
- type MockWatcherRegistry
- func (m *MockWatcherRegistry) Count() int
- func (m *MockWatcherRegistry) EXPECT() *MockWatcherRegistryMockRecorder
- func (m *MockWatcherRegistry) Get(arg0 string) (worker.Worker, error)
- func (m *MockWatcherRegistry) Kill()
- func (m *MockWatcherRegistry) Register(arg0 worker.Worker) (string, error)
- func (m *MockWatcherRegistry) RegisterNamed(arg0 string, arg1 worker.Worker) error
- func (m *MockWatcherRegistry) Stop(arg0 string) error
- func (m *MockWatcherRegistry) Wait() error
- type MockWatcherRegistryCountCall
- type MockWatcherRegistryGetCall
- func (c *MockWatcherRegistryGetCall) Do(f func(string) (worker.Worker, error)) *MockWatcherRegistryGetCall
- func (c *MockWatcherRegistryGetCall) DoAndReturn(f func(string) (worker.Worker, error)) *MockWatcherRegistryGetCall
- func (c *MockWatcherRegistryGetCall) Return(arg0 worker.Worker, arg1 error) *MockWatcherRegistryGetCall
- type MockWatcherRegistryKillCall
- type MockWatcherRegistryMockRecorder
- func (mr *MockWatcherRegistryMockRecorder) Count() *MockWatcherRegistryCountCall
- func (mr *MockWatcherRegistryMockRecorder) Get(arg0 any) *MockWatcherRegistryGetCall
- func (mr *MockWatcherRegistryMockRecorder) Kill() *MockWatcherRegistryKillCall
- func (mr *MockWatcherRegistryMockRecorder) Register(arg0 any) *MockWatcherRegistryRegisterCall
- func (mr *MockWatcherRegistryMockRecorder) RegisterNamed(arg0, arg1 any) *MockWatcherRegistryRegisterNamedCall
- func (mr *MockWatcherRegistryMockRecorder) Stop(arg0 any) *MockWatcherRegistryStopCall
- func (mr *MockWatcherRegistryMockRecorder) Wait() *MockWatcherRegistryWaitCall
- type MockWatcherRegistryRegisterCall
- func (c *MockWatcherRegistryRegisterCall) Do(f func(worker.Worker) (string, error)) *MockWatcherRegistryRegisterCall
- func (c *MockWatcherRegistryRegisterCall) DoAndReturn(f func(worker.Worker) (string, error)) *MockWatcherRegistryRegisterCall
- func (c *MockWatcherRegistryRegisterCall) Return(arg0 string, arg1 error) *MockWatcherRegistryRegisterCall
- type MockWatcherRegistryRegisterNamedCall
- func (c *MockWatcherRegistryRegisterNamedCall) Do(f func(string, worker.Worker) error) *MockWatcherRegistryRegisterNamedCall
- func (c *MockWatcherRegistryRegisterNamedCall) DoAndReturn(f func(string, worker.Worker) error) *MockWatcherRegistryRegisterNamedCall
- func (c *MockWatcherRegistryRegisterNamedCall) Return(arg0 error) *MockWatcherRegistryRegisterNamedCall
- type MockWatcherRegistryStopCall
- type MockWatcherRegistryWaitCall
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(arg0 controller.Config) ([]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 MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall ¶
MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall wrap *gomock.Call
func (*MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Do ¶
func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
Do rewrite *gomock.Call.Do
func (*MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) DoAndReturn ¶
func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Return ¶
func (c *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
Return rewrite *gomock.Call.Return
type MockAPIHostPortsForAgentsGetterMockRecorder ¶
type MockAPIHostPortsForAgentsGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIHostPortsForAgentsGetterMockRecorder is the mock recorder for MockAPIHostPortsForAgentsGetter.
func (*MockAPIHostPortsForAgentsGetterMockRecorder) APIHostPortsForAgents ¶
func (mr *MockAPIHostPortsForAgentsGetterMockRecorder) APIHostPortsForAgents(arg0 any) *MockAPIHostPortsForAgentsGetterAPIHostPortsForAgentsCall
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 MockAgentToolerAgentToolsCall ¶
MockAgentToolerAgentToolsCall wrap *gomock.Call
func (*MockAgentToolerAgentToolsCall) Do ¶
func (c *MockAgentToolerAgentToolsCall) Do(f func() (*tools.Tools, error)) *MockAgentToolerAgentToolsCall
Do rewrite *gomock.Call.Do
func (*MockAgentToolerAgentToolsCall) DoAndReturn ¶
func (c *MockAgentToolerAgentToolsCall) DoAndReturn(f func() (*tools.Tools, error)) *MockAgentToolerAgentToolsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentToolerAgentToolsCall) Return ¶
func (c *MockAgentToolerAgentToolsCall) Return(arg0 *tools.Tools, arg1 error) *MockAgentToolerAgentToolsCall
Return rewrite *gomock.Call.Return
type MockAgentToolerMockRecorder ¶
type MockAgentToolerMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentToolerMockRecorder is the mock recorder for MockAgentTooler.
func (*MockAgentToolerMockRecorder) AgentTools ¶
func (mr *MockAgentToolerMockRecorder) AgentTools() *MockAgentToolerAgentToolsCall
AgentTools indicates an expected call of AgentTools.
func (*MockAgentToolerMockRecorder) SetAgentVersion ¶
func (mr *MockAgentToolerMockRecorder) SetAgentVersion(arg0 any) *MockAgentToolerSetAgentVersionCall
SetAgentVersion indicates an expected call of SetAgentVersion.
func (*MockAgentToolerMockRecorder) Tag ¶
func (mr *MockAgentToolerMockRecorder) Tag() *MockAgentToolerTagCall
Tag indicates an expected call of Tag.
type MockAgentToolerSetAgentVersionCall ¶
MockAgentToolerSetAgentVersionCall wrap *gomock.Call
func (*MockAgentToolerSetAgentVersionCall) Do ¶
func (c *MockAgentToolerSetAgentVersionCall) Do(f func(version.Binary) error) *MockAgentToolerSetAgentVersionCall
Do rewrite *gomock.Call.Do
func (*MockAgentToolerSetAgentVersionCall) DoAndReturn ¶
func (c *MockAgentToolerSetAgentVersionCall) DoAndReturn(f func(version.Binary) error) *MockAgentToolerSetAgentVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentToolerSetAgentVersionCall) Return ¶
func (c *MockAgentToolerSetAgentVersionCall) Return(arg0 error) *MockAgentToolerSetAgentVersionCall
Return rewrite *gomock.Call.Return
type MockAgentToolerTagCall ¶
MockAgentToolerTagCall wrap *gomock.Call
func (*MockAgentToolerTagCall) Do ¶
func (c *MockAgentToolerTagCall) Do(f func() names.Tag) *MockAgentToolerTagCall
Do rewrite *gomock.Call.Do
func (*MockAgentToolerTagCall) DoAndReturn ¶
func (c *MockAgentToolerTagCall) DoAndReturn(f func() names.Tag) *MockAgentToolerTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentToolerTagCall) Return ¶
func (c *MockAgentToolerTagCall) Return(arg0 names.Tag) *MockAgentToolerTagCall
Return rewrite *gomock.Call.Return
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 MockAuthorizerAuthControllerCall ¶
MockAuthorizerAuthControllerCall wrap *gomock.Call
func (*MockAuthorizerAuthControllerCall) Do ¶
func (c *MockAuthorizerAuthControllerCall) Do(f func() bool) *MockAuthorizerAuthControllerCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthControllerCall) DoAndReturn ¶
func (c *MockAuthorizerAuthControllerCall) DoAndReturn(f func() bool) *MockAuthorizerAuthControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthControllerCall) Return ¶
func (c *MockAuthorizerAuthControllerCall) Return(arg0 bool) *MockAuthorizerAuthControllerCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthMachineAgentCall ¶
MockAuthorizerAuthMachineAgentCall wrap *gomock.Call
func (*MockAuthorizerAuthMachineAgentCall) Do ¶
func (c *MockAuthorizerAuthMachineAgentCall) Do(f func() bool) *MockAuthorizerAuthMachineAgentCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthMachineAgentCall) DoAndReturn ¶
func (c *MockAuthorizerAuthMachineAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthMachineAgentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthMachineAgentCall) Return ¶
func (c *MockAuthorizerAuthMachineAgentCall) Return(arg0 bool) *MockAuthorizerAuthMachineAgentCall
Return rewrite *gomock.Call.Return
type MockAuthorizerGetAuthTagCall ¶
MockAuthorizerGetAuthTagCall wrap *gomock.Call
func (*MockAuthorizerGetAuthTagCall) Do ¶
func (c *MockAuthorizerGetAuthTagCall) Do(f func() names.Tag) *MockAuthorizerGetAuthTagCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerGetAuthTagCall) DoAndReturn ¶
func (c *MockAuthorizerGetAuthTagCall) DoAndReturn(f func() names.Tag) *MockAuthorizerGetAuthTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerGetAuthTagCall) Return ¶
func (c *MockAuthorizerGetAuthTagCall) Return(arg0 names.Tag) *MockAuthorizerGetAuthTagCall
Return rewrite *gomock.Call.Return
type MockAuthorizerMockRecorder ¶
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
func (*MockAuthorizerMockRecorder) AuthController ¶
func (mr *MockAuthorizerMockRecorder) AuthController() *MockAuthorizerAuthControllerCall
AuthController indicates an expected call of AuthController.
func (*MockAuthorizerMockRecorder) AuthMachineAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *MockAuthorizerAuthMachineAgentCall
AuthMachineAgent indicates an expected call of AuthMachineAgent.
func (*MockAuthorizerMockRecorder) GetAuthTag ¶
func (mr *MockAuthorizerMockRecorder) GetAuthTag() *MockAuthorizerGetAuthTagCall
GetAuthTag indicates an expected call of GetAuthTag.
type MockBlockCommandService ¶
type MockBlockCommandService struct {
// contains filtered or unexported fields
}
MockBlockCommandService is a mock of BlockCommandService interface.
func NewMockBlockCommandService ¶
func NewMockBlockCommandService(ctrl *gomock.Controller) *MockBlockCommandService
NewMockBlockCommandService creates a new mock instance.
func (*MockBlockCommandService) EXPECT ¶
func (m *MockBlockCommandService) EXPECT() *MockBlockCommandServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockCommandService) GetBlockSwitchedOn ¶
func (m *MockBlockCommandService) GetBlockSwitchedOn(arg0 context.Context, arg1 blockcommand.BlockType) (string, error)
GetBlockSwitchedOn mocks base method.
func (*MockBlockCommandService) GetBlocks ¶
func (m *MockBlockCommandService) GetBlocks(arg0 context.Context) ([]blockcommand.Block, error)
GetBlocks mocks base method.
type MockBlockCommandServiceGetBlockSwitchedOnCall ¶
MockBlockCommandServiceGetBlockSwitchedOnCall wrap *gomock.Call
func (*MockBlockCommandServiceGetBlockSwitchedOnCall) Do ¶
func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) Do(f func(context.Context, blockcommand.BlockType) (string, error)) *MockBlockCommandServiceGetBlockSwitchedOnCall
Do rewrite *gomock.Call.Do
func (*MockBlockCommandServiceGetBlockSwitchedOnCall) DoAndReturn ¶
func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) DoAndReturn(f func(context.Context, blockcommand.BlockType) (string, error)) *MockBlockCommandServiceGetBlockSwitchedOnCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBlockCommandServiceGetBlockSwitchedOnCall) Return ¶
func (c *MockBlockCommandServiceGetBlockSwitchedOnCall) Return(arg0 string, arg1 error) *MockBlockCommandServiceGetBlockSwitchedOnCall
Return rewrite *gomock.Call.Return
type MockBlockCommandServiceGetBlocksCall ¶
MockBlockCommandServiceGetBlocksCall wrap *gomock.Call
func (*MockBlockCommandServiceGetBlocksCall) Do ¶
func (c *MockBlockCommandServiceGetBlocksCall) Do(f func(context.Context) ([]blockcommand.Block, error)) *MockBlockCommandServiceGetBlocksCall
Do rewrite *gomock.Call.Do
func (*MockBlockCommandServiceGetBlocksCall) DoAndReturn ¶
func (c *MockBlockCommandServiceGetBlocksCall) DoAndReturn(f func(context.Context) ([]blockcommand.Block, error)) *MockBlockCommandServiceGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBlockCommandServiceGetBlocksCall) Return ¶
func (c *MockBlockCommandServiceGetBlocksCall) Return(arg0 []blockcommand.Block, arg1 error) *MockBlockCommandServiceGetBlocksCall
Return rewrite *gomock.Call.Return
type MockBlockCommandServiceMockRecorder ¶
type MockBlockCommandServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockCommandServiceMockRecorder is the mock recorder for MockBlockCommandService.
func (*MockBlockCommandServiceMockRecorder) GetBlockSwitchedOn ¶
func (mr *MockBlockCommandServiceMockRecorder) GetBlockSwitchedOn(arg0, arg1 any) *MockBlockCommandServiceGetBlockSwitchedOnCall
GetBlockSwitchedOn indicates an expected call of GetBlockSwitchedOn.
func (*MockBlockCommandServiceMockRecorder) GetBlocks ¶
func (mr *MockBlockCommandServiceMockRecorder) GetBlocks(arg0 any) *MockBlockCommandServiceGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
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 envcontext.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 envcontext.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockBootstrapEnviron) Create ¶
func (m *MockBootstrapEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockBootstrapEnviron) Destroy ¶
func (m *MockBootstrapEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
Destroy mocks base method.
func (*MockBootstrapEnviron) DestroyController ¶
func (m *MockBootstrapEnviron) DestroyController(arg0 envcontext.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) 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 MockBootstrapEnvironBootstrapCall ¶
MockBootstrapEnvironBootstrapCall wrap *gomock.Call
func (*MockBootstrapEnvironBootstrapCall) Do ¶
func (c *MockBootstrapEnvironBootstrapCall) Do(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockBootstrapEnvironBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironBootstrapCall) DoAndReturn ¶
func (c *MockBootstrapEnvironBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockBootstrapEnvironBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironBootstrapCall) Return ¶
func (c *MockBootstrapEnvironBootstrapCall) Return(arg0 *environs.BootstrapResult, arg1 error) *MockBootstrapEnvironBootstrapCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironConfigCall ¶
MockBootstrapEnvironConfigCall wrap *gomock.Call
func (*MockBootstrapEnvironConfigCall) Do ¶
func (c *MockBootstrapEnvironConfigCall) Do(f func() *config.Config) *MockBootstrapEnvironConfigCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironConfigCall) DoAndReturn ¶
func (c *MockBootstrapEnvironConfigCall) DoAndReturn(f func() *config.Config) *MockBootstrapEnvironConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironConfigCall) Return ¶
func (c *MockBootstrapEnvironConfigCall) Return(arg0 *config.Config) *MockBootstrapEnvironConfigCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironConstraintsValidatorCall ¶
MockBootstrapEnvironConstraintsValidatorCall wrap *gomock.Call
func (*MockBootstrapEnvironConstraintsValidatorCall) Do ¶
func (c *MockBootstrapEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockBootstrapEnvironConstraintsValidatorCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironConstraintsValidatorCall) DoAndReturn ¶
func (c *MockBootstrapEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockBootstrapEnvironConstraintsValidatorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironConstraintsValidatorCall) Return ¶
func (c *MockBootstrapEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockBootstrapEnvironConstraintsValidatorCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironCreateCall ¶
MockBootstrapEnvironCreateCall wrap *gomock.Call
func (*MockBootstrapEnvironCreateCall) Do ¶
func (c *MockBootstrapEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockBootstrapEnvironCreateCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironCreateCall) DoAndReturn ¶
func (c *MockBootstrapEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockBootstrapEnvironCreateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironCreateCall) Return ¶
func (c *MockBootstrapEnvironCreateCall) Return(arg0 error) *MockBootstrapEnvironCreateCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironDestroyCall ¶
MockBootstrapEnvironDestroyCall wrap *gomock.Call
func (*MockBootstrapEnvironDestroyCall) Do ¶
func (c *MockBootstrapEnvironDestroyCall) Do(f func(envcontext.ProviderCallContext) error) *MockBootstrapEnvironDestroyCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironDestroyCall) DoAndReturn ¶
func (c *MockBootstrapEnvironDestroyCall) DoAndReturn(f func(envcontext.ProviderCallContext) error) *MockBootstrapEnvironDestroyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironDestroyCall) Return ¶
func (c *MockBootstrapEnvironDestroyCall) Return(arg0 error) *MockBootstrapEnvironDestroyCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironDestroyControllerCall ¶
MockBootstrapEnvironDestroyControllerCall wrap *gomock.Call
func (*MockBootstrapEnvironDestroyControllerCall) Do ¶
func (c *MockBootstrapEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockBootstrapEnvironDestroyControllerCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironDestroyControllerCall) DoAndReturn ¶
func (c *MockBootstrapEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockBootstrapEnvironDestroyControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironDestroyControllerCall) Return ¶
func (c *MockBootstrapEnvironDestroyControllerCall) Return(arg0 error) *MockBootstrapEnvironDestroyControllerCall
Return rewrite *gomock.Call.Return
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) *MockBootstrapEnvironBootstrapCall
Bootstrap indicates an expected call of Bootstrap.
func (*MockBootstrapEnvironMockRecorder) Config ¶
func (mr *MockBootstrapEnvironMockRecorder) Config() *MockBootstrapEnvironConfigCall
Config indicates an expected call of Config.
func (*MockBootstrapEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockBootstrapEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockBootstrapEnvironConstraintsValidatorCall
ConstraintsValidator indicates an expected call of ConstraintsValidator.
func (*MockBootstrapEnvironMockRecorder) Create ¶
func (mr *MockBootstrapEnvironMockRecorder) Create(arg0, arg1 any) *MockBootstrapEnvironCreateCall
Create indicates an expected call of Create.
func (*MockBootstrapEnvironMockRecorder) Destroy ¶
func (mr *MockBootstrapEnvironMockRecorder) Destroy(arg0 any) *MockBootstrapEnvironDestroyCall
Destroy indicates an expected call of Destroy.
func (*MockBootstrapEnvironMockRecorder) DestroyController ¶
func (mr *MockBootstrapEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockBootstrapEnvironDestroyControllerCall
DestroyController indicates an expected call of DestroyController.
func (*MockBootstrapEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockBootstrapEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockBootstrapEnvironPrepareForBootstrapCall
PrepareForBootstrap indicates an expected call of PrepareForBootstrap.
func (*MockBootstrapEnvironMockRecorder) SetConfig ¶
func (mr *MockBootstrapEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockBootstrapEnvironSetConfigCall
SetConfig indicates an expected call of SetConfig.
func (*MockBootstrapEnvironMockRecorder) StorageProvider ¶
func (mr *MockBootstrapEnvironMockRecorder) StorageProvider(arg0 any) *MockBootstrapEnvironStorageProviderCall
StorageProvider indicates an expected call of StorageProvider.
func (*MockBootstrapEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockBootstrapEnvironMockRecorder) StorageProviderTypes() *MockBootstrapEnvironStorageProviderTypesCall
StorageProviderTypes indicates an expected call of StorageProviderTypes.
type MockBootstrapEnvironPrepareForBootstrapCall ¶
MockBootstrapEnvironPrepareForBootstrapCall wrap *gomock.Call
func (*MockBootstrapEnvironPrepareForBootstrapCall) Do ¶
func (c *MockBootstrapEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockBootstrapEnvironPrepareForBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironPrepareForBootstrapCall) DoAndReturn ¶
func (c *MockBootstrapEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockBootstrapEnvironPrepareForBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironPrepareForBootstrapCall) Return ¶
func (c *MockBootstrapEnvironPrepareForBootstrapCall) Return(arg0 error) *MockBootstrapEnvironPrepareForBootstrapCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironSetConfigCall ¶
MockBootstrapEnvironSetConfigCall wrap *gomock.Call
func (*MockBootstrapEnvironSetConfigCall) Do ¶
func (c *MockBootstrapEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockBootstrapEnvironSetConfigCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironSetConfigCall) DoAndReturn ¶
func (c *MockBootstrapEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockBootstrapEnvironSetConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironSetConfigCall) Return ¶
func (c *MockBootstrapEnvironSetConfigCall) Return(arg0 error) *MockBootstrapEnvironSetConfigCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironStorageProviderCall ¶
MockBootstrapEnvironStorageProviderCall wrap *gomock.Call
func (*MockBootstrapEnvironStorageProviderCall) Do ¶
func (c *MockBootstrapEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockBootstrapEnvironStorageProviderCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironStorageProviderCall) DoAndReturn ¶
func (c *MockBootstrapEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockBootstrapEnvironStorageProviderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironStorageProviderCall) Return ¶
func (c *MockBootstrapEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockBootstrapEnvironStorageProviderCall
Return rewrite *gomock.Call.Return
type MockBootstrapEnvironStorageProviderTypesCall ¶
MockBootstrapEnvironStorageProviderTypesCall wrap *gomock.Call
func (*MockBootstrapEnvironStorageProviderTypesCall) Do ¶
func (c *MockBootstrapEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockBootstrapEnvironStorageProviderTypesCall
Do rewrite *gomock.Call.Do
func (*MockBootstrapEnvironStorageProviderTypesCall) DoAndReturn ¶
func (c *MockBootstrapEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockBootstrapEnvironStorageProviderTypesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBootstrapEnvironStorageProviderTypesCall) Return ¶
func (c *MockBootstrapEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockBootstrapEnvironStorageProviderTypesCall
Return rewrite *gomock.Call.Return
type MockCloudService ¶
type MockCloudService struct {
// contains filtered or unexported fields
}
MockCloudService is a mock of CloudService interface.
func NewMockCloudService ¶
func NewMockCloudService(ctrl *gomock.Controller) *MockCloudService
NewMockCloudService creates a new mock instance.
func (*MockCloudService) EXPECT ¶
func (m *MockCloudService) EXPECT() *MockCloudServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCloudService) WatchCloud ¶
func (m *MockCloudService) WatchCloud(arg0 context.Context, arg1 string) (watcher.Watcher[struct{}], error)
WatchCloud mocks base method.
type MockCloudServiceCloudCall ¶
MockCloudServiceCloudCall wrap *gomock.Call
func (*MockCloudServiceCloudCall) Do ¶
func (c *MockCloudServiceCloudCall) Do(f func(context.Context, string) (*cloud.Cloud, error)) *MockCloudServiceCloudCall
Do rewrite *gomock.Call.Do
func (*MockCloudServiceCloudCall) DoAndReturn ¶
func (c *MockCloudServiceCloudCall) DoAndReturn(f func(context.Context, string) (*cloud.Cloud, error)) *MockCloudServiceCloudCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCloudServiceCloudCall) Return ¶
func (c *MockCloudServiceCloudCall) Return(arg0 *cloud.Cloud, arg1 error) *MockCloudServiceCloudCall
Return rewrite *gomock.Call.Return
type MockCloudServiceMockRecorder ¶
type MockCloudServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCloudServiceMockRecorder is the mock recorder for MockCloudService.
func (*MockCloudServiceMockRecorder) Cloud ¶
func (mr *MockCloudServiceMockRecorder) Cloud(arg0, arg1 any) *MockCloudServiceCloudCall
Cloud indicates an expected call of Cloud.
func (*MockCloudServiceMockRecorder) WatchCloud ¶
func (mr *MockCloudServiceMockRecorder) WatchCloud(arg0, arg1 any) *MockCloudServiceWatchCloudCall
WatchCloud indicates an expected call of WatchCloud.
type MockCloudServiceWatchCloudCall ¶
MockCloudServiceWatchCloudCall wrap *gomock.Call
func (*MockCloudServiceWatchCloudCall) Do ¶
func (c *MockCloudServiceWatchCloudCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockCloudServiceWatchCloudCall
Do rewrite *gomock.Call.Do
func (*MockCloudServiceWatchCloudCall) DoAndReturn ¶
func (c *MockCloudServiceWatchCloudCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockCloudServiceWatchCloudCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCloudServiceWatchCloudCall) Return ¶
func (c *MockCloudServiceWatchCloudCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockCloudServiceWatchCloudCall
Return rewrite *gomock.Call.Return
type MockControllerConfigService ¶
type MockControllerConfigService struct {
// contains filtered or unexported fields
}
MockControllerConfigService is a mock of ControllerConfigService interface.
func NewMockControllerConfigService ¶
func NewMockControllerConfigService(ctrl *gomock.Controller) *MockControllerConfigService
NewMockControllerConfigService creates a new mock instance.
func (*MockControllerConfigService) ControllerConfig ¶
func (m *MockControllerConfigService) ControllerConfig(arg0 context.Context) (controller.Config, error)
ControllerConfig mocks base method.
func (*MockControllerConfigService) EXPECT ¶
func (m *MockControllerConfigService) EXPECT() *MockControllerConfigServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockControllerConfigServiceControllerConfigCall ¶
MockControllerConfigServiceControllerConfigCall wrap *gomock.Call
func (*MockControllerConfigServiceControllerConfigCall) Do ¶
func (c *MockControllerConfigServiceControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigServiceControllerConfigCall) DoAndReturn ¶
func (c *MockControllerConfigServiceControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigServiceControllerConfigCall) Return ¶
func (c *MockControllerConfigServiceControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigServiceControllerConfigCall
Return rewrite *gomock.Call.Return
type MockControllerConfigServiceMockRecorder ¶
type MockControllerConfigServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerConfigServiceMockRecorder is the mock recorder for MockControllerConfigService.
func (*MockControllerConfigServiceMockRecorder) ControllerConfig ¶
func (mr *MockControllerConfigServiceMockRecorder) ControllerConfig(arg0 any) *MockControllerConfigServiceControllerConfigCall
ControllerConfig indicates an expected call of ControllerConfig.
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(arg0 controller.Config) ([]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) 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.
type MockControllerConfigStateAPIHostPortsForAgentsCall ¶
MockControllerConfigStateAPIHostPortsForAgentsCall wrap *gomock.Call
func (*MockControllerConfigStateAPIHostPortsForAgentsCall) Do ¶
func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerConfigStateAPIHostPortsForAgentsCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigStateAPIHostPortsForAgentsCall) DoAndReturn ¶
func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerConfigStateAPIHostPortsForAgentsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigStateAPIHostPortsForAgentsCall) Return ¶
func (c *MockControllerConfigStateAPIHostPortsForAgentsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockControllerConfigStateAPIHostPortsForAgentsCall
Return rewrite *gomock.Call.Return
type MockControllerConfigStateCompletedMigrationForModelCall ¶
MockControllerConfigStateCompletedMigrationForModelCall wrap *gomock.Call
func (*MockControllerConfigStateCompletedMigrationForModelCall) Do ¶
func (c *MockControllerConfigStateCompletedMigrationForModelCall) Do(f func(string) (state.ModelMigration, error)) *MockControllerConfigStateCompletedMigrationForModelCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigStateCompletedMigrationForModelCall) DoAndReturn ¶
func (c *MockControllerConfigStateCompletedMigrationForModelCall) DoAndReturn(f func(string) (state.ModelMigration, error)) *MockControllerConfigStateCompletedMigrationForModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigStateCompletedMigrationForModelCall) Return ¶
func (c *MockControllerConfigStateCompletedMigrationForModelCall) Return(arg0 state.ModelMigration, arg1 error) *MockControllerConfigStateCompletedMigrationForModelCall
Return rewrite *gomock.Call.Return
type MockControllerConfigStateMockRecorder ¶
type MockControllerConfigStateMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerConfigStateMockRecorder is the mock recorder for MockControllerConfigState.
func (*MockControllerConfigStateMockRecorder) APIHostPortsForAgents ¶
func (mr *MockControllerConfigStateMockRecorder) APIHostPortsForAgents(arg0 any) *MockControllerConfigStateAPIHostPortsForAgentsCall
APIHostPortsForAgents indicates an expected call of APIHostPortsForAgents.
func (*MockControllerConfigStateMockRecorder) CompletedMigrationForModel ¶
func (mr *MockControllerConfigStateMockRecorder) CompletedMigrationForModel(arg0 any) *MockControllerConfigStateCompletedMigrationForModelCall
CompletedMigrationForModel indicates an expected call of CompletedMigrationForModel.
func (*MockControllerConfigStateMockRecorder) ModelExists ¶
func (mr *MockControllerConfigStateMockRecorder) ModelExists(arg0 any) *MockControllerConfigStateModelExistsCall
ModelExists indicates an expected call of ModelExists.
type MockControllerConfigStateModelExistsCall ¶
MockControllerConfigStateModelExistsCall wrap *gomock.Call
func (*MockControllerConfigStateModelExistsCall) Do ¶
func (c *MockControllerConfigStateModelExistsCall) Do(f func(string) (bool, error)) *MockControllerConfigStateModelExistsCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigStateModelExistsCall) DoAndReturn ¶
func (c *MockControllerConfigStateModelExistsCall) DoAndReturn(f func(string) (bool, error)) *MockControllerConfigStateModelExistsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigStateModelExistsCall) Return ¶
func (c *MockControllerConfigStateModelExistsCall) Return(arg0 bool, arg1 error) *MockControllerConfigStateModelExistsCall
Return rewrite *gomock.Call.Return
type MockCredentialService ¶
type MockCredentialService struct {
// contains filtered or unexported fields
}
MockCredentialService is a mock of CredentialService interface.
func NewMockCredentialService ¶
func NewMockCredentialService(ctrl *gomock.Controller) *MockCredentialService
NewMockCredentialService creates a new mock instance.
func (*MockCredentialService) CloudCredential ¶
func (m *MockCredentialService) CloudCredential(arg0 context.Context, arg1 credential.Key) (cloud.Credential, error)
CloudCredential mocks base method.
func (*MockCredentialService) EXPECT ¶
func (m *MockCredentialService) EXPECT() *MockCredentialServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCredentialService) WatchCredential ¶
func (m *MockCredentialService) WatchCredential(arg0 context.Context, arg1 credential.Key) (watcher.Watcher[struct{}], error)
WatchCredential mocks base method.
type MockCredentialServiceCloudCredentialCall ¶
MockCredentialServiceCloudCredentialCall wrap *gomock.Call
func (*MockCredentialServiceCloudCredentialCall) Do ¶
func (c *MockCredentialServiceCloudCredentialCall) Do(f func(context.Context, credential.Key) (cloud.Credential, error)) *MockCredentialServiceCloudCredentialCall
Do rewrite *gomock.Call.Do
func (*MockCredentialServiceCloudCredentialCall) DoAndReturn ¶
func (c *MockCredentialServiceCloudCredentialCall) DoAndReturn(f func(context.Context, credential.Key) (cloud.Credential, error)) *MockCredentialServiceCloudCredentialCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCredentialServiceCloudCredentialCall) Return ¶
func (c *MockCredentialServiceCloudCredentialCall) Return(arg0 cloud.Credential, arg1 error) *MockCredentialServiceCloudCredentialCall
Return rewrite *gomock.Call.Return
type MockCredentialServiceMockRecorder ¶
type MockCredentialServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCredentialServiceMockRecorder is the mock recorder for MockCredentialService.
func (*MockCredentialServiceMockRecorder) CloudCredential ¶
func (mr *MockCredentialServiceMockRecorder) CloudCredential(arg0, arg1 any) *MockCredentialServiceCloudCredentialCall
CloudCredential indicates an expected call of CloudCredential.
func (*MockCredentialServiceMockRecorder) WatchCredential ¶
func (mr *MockCredentialServiceMockRecorder) WatchCredential(arg0, arg1 any) *MockCredentialServiceWatchCredentialCall
WatchCredential indicates an expected call of WatchCredential.
type MockCredentialServiceWatchCredentialCall ¶
MockCredentialServiceWatchCredentialCall wrap *gomock.Call
func (*MockCredentialServiceWatchCredentialCall) Do ¶
func (c *MockCredentialServiceWatchCredentialCall) Do(f func(context.Context, credential.Key) (watcher.Watcher[struct{}], error)) *MockCredentialServiceWatchCredentialCall
Do rewrite *gomock.Call.Do
func (*MockCredentialServiceWatchCredentialCall) DoAndReturn ¶
func (c *MockCredentialServiceWatchCredentialCall) DoAndReturn(f func(context.Context, credential.Key) (watcher.Watcher[struct{}], error)) *MockCredentialServiceWatchCredentialCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCredentialServiceWatchCredentialCall) Return ¶
func (c *MockCredentialServiceWatchCredentialCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockCredentialServiceWatchCredentialCall
Return rewrite *gomock.Call.Return
type MockEnsureDeadMachineService ¶
type MockEnsureDeadMachineService struct {
// contains filtered or unexported fields
}
MockEnsureDeadMachineService is a mock of EnsureDeadMachineService interface.
func NewMockEnsureDeadMachineService ¶
func NewMockEnsureDeadMachineService(ctrl *gomock.Controller) *MockEnsureDeadMachineService
NewMockEnsureDeadMachineService creates a new mock instance.
func (*MockEnsureDeadMachineService) EXPECT ¶
func (m *MockEnsureDeadMachineService) EXPECT() *MockEnsureDeadMachineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnsureDeadMachineService) EnsureDeadMachine ¶
func (m *MockEnsureDeadMachineService) EnsureDeadMachine(arg0 context.Context, arg1 machine.Name) error
EnsureDeadMachine mocks base method.
type MockEnsureDeadMachineServiceEnsureDeadMachineCall ¶
MockEnsureDeadMachineServiceEnsureDeadMachineCall wrap *gomock.Call
func (*MockEnsureDeadMachineServiceEnsureDeadMachineCall) Do ¶
func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) Do(f func(context.Context, machine.Name) error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
Do rewrite *gomock.Call.Do
func (*MockEnsureDeadMachineServiceEnsureDeadMachineCall) DoAndReturn ¶
func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) DoAndReturn(f func(context.Context, machine.Name) error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnsureDeadMachineServiceEnsureDeadMachineCall) Return ¶
func (c *MockEnsureDeadMachineServiceEnsureDeadMachineCall) Return(arg0 error) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
Return rewrite *gomock.Call.Return
type MockEnsureDeadMachineServiceMockRecorder ¶
type MockEnsureDeadMachineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockEnsureDeadMachineServiceMockRecorder is the mock recorder for MockEnsureDeadMachineService.
func (*MockEnsureDeadMachineServiceMockRecorder) EnsureDeadMachine ¶
func (mr *MockEnsureDeadMachineServiceMockRecorder) EnsureDeadMachine(arg0, arg1 any) *MockEnsureDeadMachineServiceEnsureDeadMachineCall
EnsureDeadMachine indicates an expected call of EnsureDeadMachine.
type MockExternalControllerService ¶
type MockExternalControllerService struct {
// contains filtered or unexported fields
}
MockExternalControllerService is a mock of ExternalControllerService interface.
func NewMockExternalControllerService ¶
func NewMockExternalControllerService(ctrl *gomock.Controller) *MockExternalControllerService
NewMockExternalControllerService creates a new mock instance.
func (*MockExternalControllerService) ControllerForModel ¶
func (m *MockExternalControllerService) ControllerForModel(arg0 context.Context, arg1 string) (*crossmodel.ControllerInfo, error)
ControllerForModel mocks base method.
func (*MockExternalControllerService) EXPECT ¶
func (m *MockExternalControllerService) EXPECT() *MockExternalControllerServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExternalControllerService) UpdateExternalController ¶
func (m *MockExternalControllerService) UpdateExternalController(arg0 context.Context, arg1 crossmodel.ControllerInfo) error
UpdateExternalController mocks base method.
type MockExternalControllerServiceControllerForModelCall ¶
MockExternalControllerServiceControllerForModelCall wrap *gomock.Call
func (*MockExternalControllerServiceControllerForModelCall) Do ¶
func (c *MockExternalControllerServiceControllerForModelCall) Do(f func(context.Context, string) (*crossmodel.ControllerInfo, error)) *MockExternalControllerServiceControllerForModelCall
Do rewrite *gomock.Call.Do
func (*MockExternalControllerServiceControllerForModelCall) DoAndReturn ¶
func (c *MockExternalControllerServiceControllerForModelCall) DoAndReturn(f func(context.Context, string) (*crossmodel.ControllerInfo, error)) *MockExternalControllerServiceControllerForModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExternalControllerServiceControllerForModelCall) Return ¶
func (c *MockExternalControllerServiceControllerForModelCall) Return(arg0 *crossmodel.ControllerInfo, arg1 error) *MockExternalControllerServiceControllerForModelCall
Return rewrite *gomock.Call.Return
type MockExternalControllerServiceMockRecorder ¶
type MockExternalControllerServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalControllerServiceMockRecorder is the mock recorder for MockExternalControllerService.
func (*MockExternalControllerServiceMockRecorder) ControllerForModel ¶
func (mr *MockExternalControllerServiceMockRecorder) ControllerForModel(arg0, arg1 any) *MockExternalControllerServiceControllerForModelCall
ControllerForModel indicates an expected call of ControllerForModel.
func (*MockExternalControllerServiceMockRecorder) UpdateExternalController ¶
func (mr *MockExternalControllerServiceMockRecorder) UpdateExternalController(arg0, arg1 any) *MockExternalControllerServiceUpdateExternalControllerCall
UpdateExternalController indicates an expected call of UpdateExternalController.
type MockExternalControllerServiceUpdateExternalControllerCall ¶
MockExternalControllerServiceUpdateExternalControllerCall wrap *gomock.Call
func (*MockExternalControllerServiceUpdateExternalControllerCall) Do ¶
func (c *MockExternalControllerServiceUpdateExternalControllerCall) Do(f func(context.Context, crossmodel.ControllerInfo) error) *MockExternalControllerServiceUpdateExternalControllerCall
Do rewrite *gomock.Call.Do
func (*MockExternalControllerServiceUpdateExternalControllerCall) DoAndReturn ¶
func (c *MockExternalControllerServiceUpdateExternalControllerCall) DoAndReturn(f func(context.Context, crossmodel.ControllerInfo) error) *MockExternalControllerServiceUpdateExternalControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExternalControllerServiceUpdateExternalControllerCall) Return ¶
func (c *MockExternalControllerServiceUpdateExternalControllerCall) Return(arg0 error) *MockExternalControllerServiceUpdateExternalControllerCall
Return rewrite *gomock.Call.Return
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 MockLeadershipMachineApplicationNamesCall ¶
MockLeadershipMachineApplicationNamesCall wrap *gomock.Call
func (*MockLeadershipMachineApplicationNamesCall) Do ¶
func (c *MockLeadershipMachineApplicationNamesCall) Do(f func() ([]string, error)) *MockLeadershipMachineApplicationNamesCall
Do rewrite *gomock.Call.Do
func (*MockLeadershipMachineApplicationNamesCall) DoAndReturn ¶
func (c *MockLeadershipMachineApplicationNamesCall) DoAndReturn(f func() ([]string, error)) *MockLeadershipMachineApplicationNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLeadershipMachineApplicationNamesCall) Return ¶
func (c *MockLeadershipMachineApplicationNamesCall) Return(arg0 []string, arg1 error) *MockLeadershipMachineApplicationNamesCall
Return rewrite *gomock.Call.Return
type MockLeadershipMachineMockRecorder ¶
type MockLeadershipMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockLeadershipMachineMockRecorder is the mock recorder for MockLeadershipMachine.
func (*MockLeadershipMachineMockRecorder) ApplicationNames ¶
func (mr *MockLeadershipMachineMockRecorder) ApplicationNames() *MockLeadershipMachineApplicationNamesCall
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 MockLeadershipPinningBackendMachineCall ¶
MockLeadershipPinningBackendMachineCall wrap *gomock.Call
func (*MockLeadershipPinningBackendMachineCall) Do ¶
func (c *MockLeadershipPinningBackendMachineCall) Do(f func(string) (common.LeadershipMachine, error)) *MockLeadershipPinningBackendMachineCall
Do rewrite *gomock.Call.Do
func (*MockLeadershipPinningBackendMachineCall) DoAndReturn ¶
func (c *MockLeadershipPinningBackendMachineCall) DoAndReturn(f func(string) (common.LeadershipMachine, error)) *MockLeadershipPinningBackendMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLeadershipPinningBackendMachineCall) Return ¶
func (c *MockLeadershipPinningBackendMachineCall) Return(arg0 common.LeadershipMachine, arg1 error) *MockLeadershipPinningBackendMachineCall
Return rewrite *gomock.Call.Return
type MockLeadershipPinningBackendMockRecorder ¶
type MockLeadershipPinningBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockLeadershipPinningBackendMockRecorder is the mock recorder for MockLeadershipPinningBackend.
func (*MockLeadershipPinningBackendMockRecorder) Machine ¶
func (mr *MockLeadershipPinningBackendMockRecorder) Machine(arg0 any) *MockLeadershipPinningBackendMachineCall
Machine indicates an expected call of Machine.
type MockMachineRebootService ¶
type MockMachineRebootService struct {
// contains filtered or unexported fields
}
MockMachineRebootService is a mock of MachineRebootService interface.
func NewMockMachineRebootService ¶
func NewMockMachineRebootService(ctrl *gomock.Controller) *MockMachineRebootService
NewMockMachineRebootService creates a new mock instance.
func (*MockMachineRebootService) ClearMachineReboot ¶
func (m *MockMachineRebootService) ClearMachineReboot(arg0 context.Context, arg1 string) error
ClearMachineReboot mocks base method.
func (*MockMachineRebootService) EXPECT ¶
func (m *MockMachineRebootService) EXPECT() *MockMachineRebootServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMachineRebootService) GetMachineUUID ¶
func (m *MockMachineRebootService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
GetMachineUUID mocks base method.
func (*MockMachineRebootService) IsMachineRebootRequired ¶
func (m *MockMachineRebootService) IsMachineRebootRequired(arg0 context.Context, arg1 string) (bool, error)
IsMachineRebootRequired mocks base method.
func (*MockMachineRebootService) RequireMachineReboot ¶
func (m *MockMachineRebootService) RequireMachineReboot(arg0 context.Context, arg1 string) error
RequireMachineReboot mocks base method.
func (*MockMachineRebootService) ShouldRebootOrShutdown ¶
func (m *MockMachineRebootService) ShouldRebootOrShutdown(arg0 context.Context, arg1 string) (machine.RebootAction, error)
ShouldRebootOrShutdown mocks base method.
type MockMachineRebootServiceClearMachineRebootCall ¶
MockMachineRebootServiceClearMachineRebootCall wrap *gomock.Call
func (*MockMachineRebootServiceClearMachineRebootCall) Do ¶
func (c *MockMachineRebootServiceClearMachineRebootCall) Do(f func(context.Context, string) error) *MockMachineRebootServiceClearMachineRebootCall
Do rewrite *gomock.Call.Do
func (*MockMachineRebootServiceClearMachineRebootCall) DoAndReturn ¶
func (c *MockMachineRebootServiceClearMachineRebootCall) DoAndReturn(f func(context.Context, string) error) *MockMachineRebootServiceClearMachineRebootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineRebootServiceClearMachineRebootCall) Return ¶
func (c *MockMachineRebootServiceClearMachineRebootCall) Return(arg0 error) *MockMachineRebootServiceClearMachineRebootCall
Return rewrite *gomock.Call.Return
type MockMachineRebootServiceGetMachineUUIDCall ¶
MockMachineRebootServiceGetMachineUUIDCall wrap *gomock.Call
func (*MockMachineRebootServiceGetMachineUUIDCall) Do ¶
func (c *MockMachineRebootServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineRebootServiceGetMachineUUIDCall
Do rewrite *gomock.Call.Do
func (*MockMachineRebootServiceGetMachineUUIDCall) DoAndReturn ¶
func (c *MockMachineRebootServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineRebootServiceGetMachineUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineRebootServiceGetMachineUUIDCall) Return ¶
func (c *MockMachineRebootServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineRebootServiceGetMachineUUIDCall
Return rewrite *gomock.Call.Return
type MockMachineRebootServiceIsMachineRebootRequiredCall ¶
MockMachineRebootServiceIsMachineRebootRequiredCall wrap *gomock.Call
func (*MockMachineRebootServiceIsMachineRebootRequiredCall) Do ¶
func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) Do(f func(context.Context, string) (bool, error)) *MockMachineRebootServiceIsMachineRebootRequiredCall
Do rewrite *gomock.Call.Do
func (*MockMachineRebootServiceIsMachineRebootRequiredCall) DoAndReturn ¶
func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) DoAndReturn(f func(context.Context, string) (bool, error)) *MockMachineRebootServiceIsMachineRebootRequiredCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineRebootServiceIsMachineRebootRequiredCall) Return ¶
func (c *MockMachineRebootServiceIsMachineRebootRequiredCall) Return(arg0 bool, arg1 error) *MockMachineRebootServiceIsMachineRebootRequiredCall
Return rewrite *gomock.Call.Return
type MockMachineRebootServiceMockRecorder ¶
type MockMachineRebootServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineRebootServiceMockRecorder is the mock recorder for MockMachineRebootService.
func (*MockMachineRebootServiceMockRecorder) ClearMachineReboot ¶
func (mr *MockMachineRebootServiceMockRecorder) ClearMachineReboot(arg0, arg1 any) *MockMachineRebootServiceClearMachineRebootCall
ClearMachineReboot indicates an expected call of ClearMachineReboot.
func (*MockMachineRebootServiceMockRecorder) GetMachineUUID ¶
func (mr *MockMachineRebootServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineRebootServiceGetMachineUUIDCall
GetMachineUUID indicates an expected call of GetMachineUUID.
func (*MockMachineRebootServiceMockRecorder) IsMachineRebootRequired ¶
func (mr *MockMachineRebootServiceMockRecorder) IsMachineRebootRequired(arg0, arg1 any) *MockMachineRebootServiceIsMachineRebootRequiredCall
IsMachineRebootRequired indicates an expected call of IsMachineRebootRequired.
func (*MockMachineRebootServiceMockRecorder) RequireMachineReboot ¶
func (mr *MockMachineRebootServiceMockRecorder) RequireMachineReboot(arg0, arg1 any) *MockMachineRebootServiceRequireMachineRebootCall
RequireMachineReboot indicates an expected call of RequireMachineReboot.
func (*MockMachineRebootServiceMockRecorder) ShouldRebootOrShutdown ¶
func (mr *MockMachineRebootServiceMockRecorder) ShouldRebootOrShutdown(arg0, arg1 any) *MockMachineRebootServiceShouldRebootOrShutdownCall
ShouldRebootOrShutdown indicates an expected call of ShouldRebootOrShutdown.
type MockMachineRebootServiceRequireMachineRebootCall ¶
MockMachineRebootServiceRequireMachineRebootCall wrap *gomock.Call
func (*MockMachineRebootServiceRequireMachineRebootCall) Do ¶
func (c *MockMachineRebootServiceRequireMachineRebootCall) Do(f func(context.Context, string) error) *MockMachineRebootServiceRequireMachineRebootCall
Do rewrite *gomock.Call.Do
func (*MockMachineRebootServiceRequireMachineRebootCall) DoAndReturn ¶
func (c *MockMachineRebootServiceRequireMachineRebootCall) DoAndReturn(f func(context.Context, string) error) *MockMachineRebootServiceRequireMachineRebootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineRebootServiceRequireMachineRebootCall) Return ¶
func (c *MockMachineRebootServiceRequireMachineRebootCall) Return(arg0 error) *MockMachineRebootServiceRequireMachineRebootCall
Return rewrite *gomock.Call.Return
type MockMachineRebootServiceShouldRebootOrShutdownCall ¶
MockMachineRebootServiceShouldRebootOrShutdownCall wrap *gomock.Call
func (*MockMachineRebootServiceShouldRebootOrShutdownCall) Do ¶
func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) Do(f func(context.Context, string) (machine.RebootAction, error)) *MockMachineRebootServiceShouldRebootOrShutdownCall
Do rewrite *gomock.Call.Do
func (*MockMachineRebootServiceShouldRebootOrShutdownCall) DoAndReturn ¶
func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) DoAndReturn(f func(context.Context, string) (machine.RebootAction, error)) *MockMachineRebootServiceShouldRebootOrShutdownCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineRebootServiceShouldRebootOrShutdownCall) Return ¶
func (c *MockMachineRebootServiceShouldRebootOrShutdownCall) Return(arg0 machine.RebootAction, arg1 error) *MockMachineRebootServiceShouldRebootOrShutdownCall
Return rewrite *gomock.Call.Return
type MockMachineService ¶
type MockMachineService struct {
// contains filtered or unexported fields
}
MockMachineService is a mock of MachineService interface.
func NewMockMachineService ¶
func NewMockMachineService(ctrl *gomock.Controller) *MockMachineService
NewMockMachineService creates a new mock instance.
func (*MockMachineService) EXPECT ¶
func (m *MockMachineService) EXPECT() *MockMachineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMachineService) EnsureDeadMachine ¶
EnsureDeadMachine mocks base method.
func (*MockMachineService) GetMachineUUID ¶
func (m *MockMachineService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
GetMachineUUID mocks base method.
func (*MockMachineService) HardwareCharacteristics ¶
func (m *MockMachineService) HardwareCharacteristics(arg0 context.Context, arg1 string) (*instance.HardwareCharacteristics, error)
HardwareCharacteristics mocks base method.
func (*MockMachineService) InstanceID ¶
InstanceID mocks base method.
func (*MockMachineService) InstanceIDAndName ¶
func (m *MockMachineService) InstanceIDAndName(arg0 context.Context, arg1 string) (instance.Id, string, error)
InstanceIDAndName mocks base method.
type MockMachineServiceEnsureDeadMachineCall ¶
MockMachineServiceEnsureDeadMachineCall wrap *gomock.Call
func (*MockMachineServiceEnsureDeadMachineCall) Do ¶
func (c *MockMachineServiceEnsureDeadMachineCall) Do(f func(context.Context, machine.Name) error) *MockMachineServiceEnsureDeadMachineCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceEnsureDeadMachineCall) DoAndReturn ¶
func (c *MockMachineServiceEnsureDeadMachineCall) DoAndReturn(f func(context.Context, machine.Name) error) *MockMachineServiceEnsureDeadMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceEnsureDeadMachineCall) Return ¶
func (c *MockMachineServiceEnsureDeadMachineCall) Return(arg0 error) *MockMachineServiceEnsureDeadMachineCall
Return rewrite *gomock.Call.Return
type MockMachineServiceGetMachineUUIDCall ¶
MockMachineServiceGetMachineUUIDCall wrap *gomock.Call
func (*MockMachineServiceGetMachineUUIDCall) Do ¶
func (c *MockMachineServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceGetMachineUUIDCall) DoAndReturn ¶
func (c *MockMachineServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceGetMachineUUIDCall) Return ¶
func (c *MockMachineServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineServiceGetMachineUUIDCall
Return rewrite *gomock.Call.Return
type MockMachineServiceHardwareCharacteristicsCall ¶
MockMachineServiceHardwareCharacteristicsCall wrap *gomock.Call
func (*MockMachineServiceHardwareCharacteristicsCall) Do ¶
func (c *MockMachineServiceHardwareCharacteristicsCall) Do(f func(context.Context, string) (*instance.HardwareCharacteristics, error)) *MockMachineServiceHardwareCharacteristicsCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceHardwareCharacteristicsCall) DoAndReturn ¶
func (c *MockMachineServiceHardwareCharacteristicsCall) DoAndReturn(f func(context.Context, string) (*instance.HardwareCharacteristics, error)) *MockMachineServiceHardwareCharacteristicsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceHardwareCharacteristicsCall) Return ¶
func (c *MockMachineServiceHardwareCharacteristicsCall) Return(arg0 *instance.HardwareCharacteristics, arg1 error) *MockMachineServiceHardwareCharacteristicsCall
Return rewrite *gomock.Call.Return
type MockMachineServiceInstanceIDAndNameCall ¶
MockMachineServiceInstanceIDAndNameCall wrap *gomock.Call
func (*MockMachineServiceInstanceIDAndNameCall) Do ¶
func (c *MockMachineServiceInstanceIDAndNameCall) Do(f func(context.Context, string) (instance.Id, string, error)) *MockMachineServiceInstanceIDAndNameCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceInstanceIDAndNameCall) DoAndReturn ¶
func (c *MockMachineServiceInstanceIDAndNameCall) DoAndReturn(f func(context.Context, string) (instance.Id, string, error)) *MockMachineServiceInstanceIDAndNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceInstanceIDAndNameCall) Return ¶
func (c *MockMachineServiceInstanceIDAndNameCall) Return(arg0 instance.Id, arg1 string, arg2 error) *MockMachineServiceInstanceIDAndNameCall
Return rewrite *gomock.Call.Return
type MockMachineServiceInstanceIDCall ¶
MockMachineServiceInstanceIDCall wrap *gomock.Call
func (*MockMachineServiceInstanceIDCall) Do ¶
func (c *MockMachineServiceInstanceIDCall) Do(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceInstanceIDCall) DoAndReturn ¶
func (c *MockMachineServiceInstanceIDCall) DoAndReturn(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceInstanceIDCall) Return ¶
func (c *MockMachineServiceInstanceIDCall) Return(arg0 instance.Id, arg1 error) *MockMachineServiceInstanceIDCall
Return rewrite *gomock.Call.Return
type MockMachineServiceMockRecorder ¶
type MockMachineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineServiceMockRecorder is the mock recorder for MockMachineService.
func (*MockMachineServiceMockRecorder) EnsureDeadMachine ¶
func (mr *MockMachineServiceMockRecorder) EnsureDeadMachine(arg0, arg1 any) *MockMachineServiceEnsureDeadMachineCall
EnsureDeadMachine indicates an expected call of EnsureDeadMachine.
func (*MockMachineServiceMockRecorder) GetMachineUUID ¶
func (mr *MockMachineServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineServiceGetMachineUUIDCall
GetMachineUUID indicates an expected call of GetMachineUUID.
func (*MockMachineServiceMockRecorder) HardwareCharacteristics ¶
func (mr *MockMachineServiceMockRecorder) HardwareCharacteristics(arg0, arg1 any) *MockMachineServiceHardwareCharacteristicsCall
HardwareCharacteristics indicates an expected call of HardwareCharacteristics.
func (*MockMachineServiceMockRecorder) InstanceID ¶
func (mr *MockMachineServiceMockRecorder) InstanceID(arg0, arg1 any) *MockMachineServiceInstanceIDCall
InstanceID indicates an expected call of InstanceID.
func (*MockMachineServiceMockRecorder) InstanceIDAndName ¶
func (mr *MockMachineServiceMockRecorder) InstanceIDAndName(arg0, arg1 any) *MockMachineServiceInstanceIDAndNameCall
InstanceIDAndName indicates an expected call of InstanceIDAndName.
type MockModelAgentService ¶
type MockModelAgentService struct {
// contains filtered or unexported fields
}
MockModelAgentService is a mock of ModelAgentService interface.
func NewMockModelAgentService ¶
func NewMockModelAgentService(ctrl *gomock.Controller) *MockModelAgentService
NewMockModelAgentService creates a new mock instance.
func (*MockModelAgentService) EXPECT ¶
func (m *MockModelAgentService) EXPECT() *MockModelAgentServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelAgentService) GetMachineTargetAgentVersion ¶
func (m *MockModelAgentService) GetMachineTargetAgentVersion(arg0 context.Context, arg1 machine.Name) (version.Number, error)
GetMachineTargetAgentVersion mocks base method.
func (*MockModelAgentService) GetModelTargetAgentVersion ¶
func (m *MockModelAgentService) GetModelTargetAgentVersion(arg0 context.Context) (version.Number, error)
GetModelTargetAgentVersion mocks base method.
func (*MockModelAgentService) GetUnitTargetAgentVersion ¶
func (m *MockModelAgentService) GetUnitTargetAgentVersion(arg0 context.Context, arg1 string) (version.Number, error)
GetUnitTargetAgentVersion mocks base method.
type MockModelAgentServiceGetMachineTargetAgentVersionCall ¶
MockModelAgentServiceGetMachineTargetAgentVersionCall wrap *gomock.Call
func (*MockModelAgentServiceGetMachineTargetAgentVersionCall) Do ¶
func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) Do(f func(context.Context, machine.Name) (version.Number, error)) *MockModelAgentServiceGetMachineTargetAgentVersionCall
Do rewrite *gomock.Call.Do
func (*MockModelAgentServiceGetMachineTargetAgentVersionCall) DoAndReturn ¶
func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) DoAndReturn(f func(context.Context, machine.Name) (version.Number, error)) *MockModelAgentServiceGetMachineTargetAgentVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelAgentServiceGetMachineTargetAgentVersionCall) Return ¶
func (c *MockModelAgentServiceGetMachineTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetMachineTargetAgentVersionCall
Return rewrite *gomock.Call.Return
type MockModelAgentServiceGetModelTargetAgentVersionCall ¶
MockModelAgentServiceGetModelTargetAgentVersionCall wrap *gomock.Call
func (*MockModelAgentServiceGetModelTargetAgentVersionCall) Do ¶
func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) Do(f func(context.Context) (version.Number, error)) *MockModelAgentServiceGetModelTargetAgentVersionCall
Do rewrite *gomock.Call.Do
func (*MockModelAgentServiceGetModelTargetAgentVersionCall) DoAndReturn ¶
func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) DoAndReturn(f func(context.Context) (version.Number, error)) *MockModelAgentServiceGetModelTargetAgentVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelAgentServiceGetModelTargetAgentVersionCall) Return ¶
func (c *MockModelAgentServiceGetModelTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetModelTargetAgentVersionCall
Return rewrite *gomock.Call.Return
type MockModelAgentServiceGetUnitTargetAgentVersionCall ¶
MockModelAgentServiceGetUnitTargetAgentVersionCall wrap *gomock.Call
func (*MockModelAgentServiceGetUnitTargetAgentVersionCall) Do ¶
func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) Do(f func(context.Context, string) (version.Number, error)) *MockModelAgentServiceGetUnitTargetAgentVersionCall
Do rewrite *gomock.Call.Do
func (*MockModelAgentServiceGetUnitTargetAgentVersionCall) DoAndReturn ¶
func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) DoAndReturn(f func(context.Context, string) (version.Number, error)) *MockModelAgentServiceGetUnitTargetAgentVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelAgentServiceGetUnitTargetAgentVersionCall) Return ¶
func (c *MockModelAgentServiceGetUnitTargetAgentVersionCall) Return(arg0 version.Number, arg1 error) *MockModelAgentServiceGetUnitTargetAgentVersionCall
Return rewrite *gomock.Call.Return
type MockModelAgentServiceMockRecorder ¶
type MockModelAgentServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockModelAgentServiceMockRecorder is the mock recorder for MockModelAgentService.
func (*MockModelAgentServiceMockRecorder) GetMachineTargetAgentVersion ¶
func (mr *MockModelAgentServiceMockRecorder) GetMachineTargetAgentVersion(arg0, arg1 any) *MockModelAgentServiceGetMachineTargetAgentVersionCall
GetMachineTargetAgentVersion indicates an expected call of GetMachineTargetAgentVersion.
func (*MockModelAgentServiceMockRecorder) GetModelTargetAgentVersion ¶
func (mr *MockModelAgentServiceMockRecorder) GetModelTargetAgentVersion(arg0 any) *MockModelAgentServiceGetModelTargetAgentVersionCall
GetModelTargetAgentVersion indicates an expected call of GetModelTargetAgentVersion.
func (*MockModelAgentServiceMockRecorder) GetUnitTargetAgentVersion ¶
func (mr *MockModelAgentServiceMockRecorder) GetUnitTargetAgentVersion(arg0, arg1 any) *MockModelAgentServiceGetUnitTargetAgentVersionCall
GetUnitTargetAgentVersion indicates an expected call of GetUnitTargetAgentVersion.
type MockModelConfigService ¶
type MockModelConfigService struct {
// contains filtered or unexported fields
}
MockModelConfigService is a mock of ModelConfigService interface.
func NewMockModelConfigService ¶
func NewMockModelConfigService(ctrl *gomock.Controller) *MockModelConfigService
NewMockModelConfigService creates a new mock instance.
func (*MockModelConfigService) EXPECT ¶
func (m *MockModelConfigService) EXPECT() *MockModelConfigServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelConfigService) ModelConfig ¶
ModelConfig mocks base method.
type MockModelConfigServiceMockRecorder ¶
type MockModelConfigServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockModelConfigServiceMockRecorder is the mock recorder for MockModelConfigService.
func (*MockModelConfigServiceMockRecorder) ModelConfig ¶
func (mr *MockModelConfigServiceMockRecorder) ModelConfig(arg0 any) *MockModelConfigServiceModelConfigCall
ModelConfig indicates an expected call of ModelConfig.
func (*MockModelConfigServiceMockRecorder) Watch ¶
func (mr *MockModelConfigServiceMockRecorder) Watch() *MockModelConfigServiceWatchCall
Watch indicates an expected call of Watch.
type MockModelConfigServiceModelConfigCall ¶
MockModelConfigServiceModelConfigCall wrap *gomock.Call
func (*MockModelConfigServiceModelConfigCall) Do ¶
func (c *MockModelConfigServiceModelConfigCall) Do(f func(context.Context) (*config.Config, error)) *MockModelConfigServiceModelConfigCall
Do rewrite *gomock.Call.Do
func (*MockModelConfigServiceModelConfigCall) DoAndReturn ¶
func (c *MockModelConfigServiceModelConfigCall) DoAndReturn(f func(context.Context) (*config.Config, error)) *MockModelConfigServiceModelConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelConfigServiceModelConfigCall) Return ¶
func (c *MockModelConfigServiceModelConfigCall) Return(arg0 *config.Config, arg1 error) *MockModelConfigServiceModelConfigCall
Return rewrite *gomock.Call.Return
type MockModelConfigServiceWatchCall ¶
MockModelConfigServiceWatchCall wrap *gomock.Call
func (*MockModelConfigServiceWatchCall) Do ¶
func (c *MockModelConfigServiceWatchCall) Do(f func() (watcher.Watcher[[]string], error)) *MockModelConfigServiceWatchCall
Do rewrite *gomock.Call.Do
func (*MockModelConfigServiceWatchCall) DoAndReturn ¶
func (c *MockModelConfigServiceWatchCall) DoAndReturn(f func() (watcher.Watcher[[]string], error)) *MockModelConfigServiceWatchCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelConfigServiceWatchCall) Return ¶
func (c *MockModelConfigServiceWatchCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockModelConfigServiceWatchCall
Return rewrite *gomock.Call.Return
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 MockModelOperationBuildCall ¶
MockModelOperationBuildCall wrap *gomock.Call
func (*MockModelOperationBuildCall) Do ¶
func (c *MockModelOperationBuildCall) Do(f func(int) ([]txn.Op, error)) *MockModelOperationBuildCall
Do rewrite *gomock.Call.Do
func (*MockModelOperationBuildCall) DoAndReturn ¶
func (c *MockModelOperationBuildCall) DoAndReturn(f func(int) ([]txn.Op, error)) *MockModelOperationBuildCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelOperationBuildCall) Return ¶
func (c *MockModelOperationBuildCall) Return(arg0 []txn.Op, arg1 error) *MockModelOperationBuildCall
Return rewrite *gomock.Call.Return
type MockModelOperationDoneCall ¶
MockModelOperationDoneCall wrap *gomock.Call
func (*MockModelOperationDoneCall) Do ¶
func (c *MockModelOperationDoneCall) Do(f func(error) error) *MockModelOperationDoneCall
Do rewrite *gomock.Call.Do
func (*MockModelOperationDoneCall) DoAndReturn ¶
func (c *MockModelOperationDoneCall) DoAndReturn(f func(error) error) *MockModelOperationDoneCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelOperationDoneCall) Return ¶
func (c *MockModelOperationDoneCall) Return(arg0 error) *MockModelOperationDoneCall
Return rewrite *gomock.Call.Return
type MockModelOperationMockRecorder ¶
type MockModelOperationMockRecorder struct {
// contains filtered or unexported fields
}
MockModelOperationMockRecorder is the mock recorder for MockModelOperation.
func (*MockModelOperationMockRecorder) Build ¶
func (mr *MockModelOperationMockRecorder) Build(arg0 any) *MockModelOperationBuildCall
Build indicates an expected call of Build.
func (*MockModelOperationMockRecorder) Done ¶
func (mr *MockModelOperationMockRecorder) Done(arg0 any) *MockModelOperationDoneCall
Done indicates an expected call of Done.
type MockObjectStore ¶
type MockObjectStore struct {
// contains filtered or unexported fields
}
MockObjectStore is a mock of ObjectStore interface.
func NewMockObjectStore ¶
func NewMockObjectStore(ctrl *gomock.Controller) *MockObjectStore
NewMockObjectStore creates a new mock instance.
func (*MockObjectStore) EXPECT ¶
func (m *MockObjectStore) EXPECT() *MockObjectStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjectStore) Get ¶
func (m *MockObjectStore) Get(arg0 context.Context, arg1 string) (io.ReadCloser, int64, error)
Get mocks base method.
func (*MockObjectStore) GetBySHA256Prefix ¶
func (m *MockObjectStore) GetBySHA256Prefix(arg0 context.Context, arg1 string) (io.ReadCloser, int64, error)
GetBySHA256Prefix mocks base method.
func (*MockObjectStore) Put ¶
func (m *MockObjectStore) Put(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 int64) (objectstore.UUID, error)
Put mocks base method.
func (*MockObjectStore) PutAndCheckHash ¶
func (m *MockObjectStore) PutAndCheckHash(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 int64, arg4 string) (objectstore.UUID, error)
PutAndCheckHash mocks base method.
type MockObjectStoreGetBySHA256PrefixCall ¶
MockObjectStoreGetBySHA256PrefixCall wrap *gomock.Call
func (*MockObjectStoreGetBySHA256PrefixCall) Do ¶
func (c *MockObjectStoreGetBySHA256PrefixCall) Do(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetBySHA256PrefixCall
Do rewrite *gomock.Call.Do
func (*MockObjectStoreGetBySHA256PrefixCall) DoAndReturn ¶
func (c *MockObjectStoreGetBySHA256PrefixCall) DoAndReturn(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetBySHA256PrefixCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockObjectStoreGetBySHA256PrefixCall) Return ¶
func (c *MockObjectStoreGetBySHA256PrefixCall) Return(arg0 io.ReadCloser, arg1 int64, arg2 error) *MockObjectStoreGetBySHA256PrefixCall
Return rewrite *gomock.Call.Return
type MockObjectStoreGetCall ¶
MockObjectStoreGetCall wrap *gomock.Call
func (*MockObjectStoreGetCall) Do ¶
func (c *MockObjectStoreGetCall) Do(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetCall
Do rewrite *gomock.Call.Do
func (*MockObjectStoreGetCall) DoAndReturn ¶
func (c *MockObjectStoreGetCall) DoAndReturn(f func(context.Context, string) (io.ReadCloser, int64, error)) *MockObjectStoreGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockObjectStoreGetCall) Return ¶
func (c *MockObjectStoreGetCall) Return(arg0 io.ReadCloser, arg1 int64, arg2 error) *MockObjectStoreGetCall
Return rewrite *gomock.Call.Return
type MockObjectStoreMockRecorder ¶
type MockObjectStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectStoreMockRecorder is the mock recorder for MockObjectStore.
func (*MockObjectStoreMockRecorder) Get ¶
func (mr *MockObjectStoreMockRecorder) Get(arg0, arg1 any) *MockObjectStoreGetCall
Get indicates an expected call of Get.
func (*MockObjectStoreMockRecorder) GetBySHA256Prefix ¶
func (mr *MockObjectStoreMockRecorder) GetBySHA256Prefix(arg0, arg1 any) *MockObjectStoreGetBySHA256PrefixCall
GetBySHA256Prefix indicates an expected call of GetBySHA256Prefix.
func (*MockObjectStoreMockRecorder) Put ¶
func (mr *MockObjectStoreMockRecorder) Put(arg0, arg1, arg2, arg3 any) *MockObjectStorePutCall
Put indicates an expected call of Put.
func (*MockObjectStoreMockRecorder) PutAndCheckHash ¶
func (mr *MockObjectStoreMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3, arg4 any) *MockObjectStorePutAndCheckHashCall
PutAndCheckHash indicates an expected call of PutAndCheckHash.
func (*MockObjectStoreMockRecorder) Remove ¶
func (mr *MockObjectStoreMockRecorder) Remove(arg0, arg1 any) *MockObjectStoreRemoveCall
Remove indicates an expected call of Remove.
type MockObjectStorePutAndCheckHashCall ¶
MockObjectStorePutAndCheckHashCall wrap *gomock.Call
func (*MockObjectStorePutAndCheckHashCall) Do ¶
func (c *MockObjectStorePutAndCheckHashCall) Do(f func(context.Context, string, io.Reader, int64, string) (objectstore.UUID, error)) *MockObjectStorePutAndCheckHashCall
Do rewrite *gomock.Call.Do
func (*MockObjectStorePutAndCheckHashCall) DoAndReturn ¶
func (c *MockObjectStorePutAndCheckHashCall) DoAndReturn(f func(context.Context, string, io.Reader, int64, string) (objectstore.UUID, error)) *MockObjectStorePutAndCheckHashCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockObjectStorePutAndCheckHashCall) Return ¶
func (c *MockObjectStorePutAndCheckHashCall) Return(arg0 objectstore.UUID, arg1 error) *MockObjectStorePutAndCheckHashCall
Return rewrite *gomock.Call.Return
type MockObjectStorePutCall ¶
MockObjectStorePutCall wrap *gomock.Call
func (*MockObjectStorePutCall) Do ¶
func (c *MockObjectStorePutCall) Do(f func(context.Context, string, io.Reader, int64) (objectstore.UUID, error)) *MockObjectStorePutCall
Do rewrite *gomock.Call.Do
func (*MockObjectStorePutCall) DoAndReturn ¶
func (c *MockObjectStorePutCall) DoAndReturn(f func(context.Context, string, io.Reader, int64) (objectstore.UUID, error)) *MockObjectStorePutCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockObjectStorePutCall) Return ¶
func (c *MockObjectStorePutCall) Return(arg0 objectstore.UUID, arg1 error) *MockObjectStorePutCall
Return rewrite *gomock.Call.Return
type MockObjectStoreRemoveCall ¶
MockObjectStoreRemoveCall wrap *gomock.Call
func (*MockObjectStoreRemoveCall) Do ¶
func (c *MockObjectStoreRemoveCall) Do(f func(context.Context, string) error) *MockObjectStoreRemoveCall
Do rewrite *gomock.Call.Do
func (*MockObjectStoreRemoveCall) DoAndReturn ¶
func (c *MockObjectStoreRemoveCall) DoAndReturn(f func(context.Context, string) error) *MockObjectStoreRemoveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockObjectStoreRemoveCall) Return ¶
func (c *MockObjectStoreRemoveCall) Return(arg0 error) *MockObjectStoreRemoveCall
Return rewrite *gomock.Call.Return
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 context.Context, arg1 io.Reader, arg2 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 context.Context, arg1 string) (binarystorage.Metadata, io.ReadCloser, error)
Open mocks base method.
type MockStorageCloserAddCall ¶
MockStorageCloserAddCall wrap *gomock.Call
func (*MockStorageCloserAddCall) Do ¶
func (c *MockStorageCloserAddCall) Do(f func(context.Context, io.Reader, binarystorage.Metadata) error) *MockStorageCloserAddCall
Do rewrite *gomock.Call.Do
func (*MockStorageCloserAddCall) DoAndReturn ¶
func (c *MockStorageCloserAddCall) DoAndReturn(f func(context.Context, io.Reader, binarystorage.Metadata) error) *MockStorageCloserAddCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageCloserAddCall) Return ¶
func (c *MockStorageCloserAddCall) Return(arg0 error) *MockStorageCloserAddCall
Return rewrite *gomock.Call.Return
type MockStorageCloserAllMetadataCall ¶
MockStorageCloserAllMetadataCall wrap *gomock.Call
func (*MockStorageCloserAllMetadataCall) Do ¶
func (c *MockStorageCloserAllMetadataCall) Do(f func() ([]binarystorage.Metadata, error)) *MockStorageCloserAllMetadataCall
Do rewrite *gomock.Call.Do
func (*MockStorageCloserAllMetadataCall) DoAndReturn ¶
func (c *MockStorageCloserAllMetadataCall) DoAndReturn(f func() ([]binarystorage.Metadata, error)) *MockStorageCloserAllMetadataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageCloserAllMetadataCall) Return ¶
func (c *MockStorageCloserAllMetadataCall) Return(arg0 []binarystorage.Metadata, arg1 error) *MockStorageCloserAllMetadataCall
Return rewrite *gomock.Call.Return
type MockStorageCloserCloseCall ¶
MockStorageCloserCloseCall wrap *gomock.Call
func (*MockStorageCloserCloseCall) Do ¶
func (c *MockStorageCloserCloseCall) Do(f func() error) *MockStorageCloserCloseCall
Do rewrite *gomock.Call.Do
func (*MockStorageCloserCloseCall) DoAndReturn ¶
func (c *MockStorageCloserCloseCall) DoAndReturn(f func() error) *MockStorageCloserCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageCloserCloseCall) Return ¶
func (c *MockStorageCloserCloseCall) Return(arg0 error) *MockStorageCloserCloseCall
Return rewrite *gomock.Call.Return
type MockStorageCloserMetadataCall ¶
MockStorageCloserMetadataCall wrap *gomock.Call
func (*MockStorageCloserMetadataCall) Do ¶
func (c *MockStorageCloserMetadataCall) Do(f func(string) (binarystorage.Metadata, error)) *MockStorageCloserMetadataCall
Do rewrite *gomock.Call.Do
func (*MockStorageCloserMetadataCall) DoAndReturn ¶
func (c *MockStorageCloserMetadataCall) DoAndReturn(f func(string) (binarystorage.Metadata, error)) *MockStorageCloserMetadataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageCloserMetadataCall) Return ¶
func (c *MockStorageCloserMetadataCall) Return(arg0 binarystorage.Metadata, arg1 error) *MockStorageCloserMetadataCall
Return rewrite *gomock.Call.Return
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, arg2 any) *MockStorageCloserAddCall
Add indicates an expected call of Add.
func (*MockStorageCloserMockRecorder) AllMetadata ¶
func (mr *MockStorageCloserMockRecorder) AllMetadata() *MockStorageCloserAllMetadataCall
AllMetadata indicates an expected call of AllMetadata.
func (*MockStorageCloserMockRecorder) Close ¶
func (mr *MockStorageCloserMockRecorder) Close() *MockStorageCloserCloseCall
Close indicates an expected call of Close.
func (*MockStorageCloserMockRecorder) Metadata ¶
func (mr *MockStorageCloserMockRecorder) Metadata(arg0 any) *MockStorageCloserMetadataCall
Metadata indicates an expected call of Metadata.
func (*MockStorageCloserMockRecorder) Open ¶
func (mr *MockStorageCloserMockRecorder) Open(arg0, arg1 any) *MockStorageCloserOpenCall
Open indicates an expected call of Open.
type MockStorageCloserOpenCall ¶
MockStorageCloserOpenCall wrap *gomock.Call
func (*MockStorageCloserOpenCall) Do ¶
func (c *MockStorageCloserOpenCall) Do(f func(context.Context, string) (binarystorage.Metadata, io.ReadCloser, error)) *MockStorageCloserOpenCall
Do rewrite *gomock.Call.Do
func (*MockStorageCloserOpenCall) DoAndReturn ¶
func (c *MockStorageCloserOpenCall) DoAndReturn(f func(context.Context, string) (binarystorage.Metadata, io.ReadCloser, error)) *MockStorageCloserOpenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageCloserOpenCall) Return ¶
func (c *MockStorageCloserOpenCall) Return(arg0 binarystorage.Metadata, arg1 io.ReadCloser, arg2 error) *MockStorageCloserOpenCall
Return rewrite *gomock.Call.Return
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 MockToolsFindEntityFindEntityCall ¶
MockToolsFindEntityFindEntityCall wrap *gomock.Call
func (*MockToolsFindEntityFindEntityCall) Do ¶
func (c *MockToolsFindEntityFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockToolsFindEntityFindEntityCall
Do rewrite *gomock.Call.Do
func (*MockToolsFindEntityFindEntityCall) DoAndReturn ¶
func (c *MockToolsFindEntityFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockToolsFindEntityFindEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockToolsFindEntityFindEntityCall) Return ¶
func (c *MockToolsFindEntityFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockToolsFindEntityFindEntityCall
Return rewrite *gomock.Call.Return
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) *MockToolsFindEntityFindEntityCall
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 context.Context, arg1 common.FindAgentsParams) (tools.List, error)
FindAgents mocks base method.
type MockToolsFinderFindAgentsCall ¶
MockToolsFinderFindAgentsCall wrap *gomock.Call
func (*MockToolsFinderFindAgentsCall) Do ¶
func (c *MockToolsFinderFindAgentsCall) Do(f func(context.Context, common.FindAgentsParams) (tools.List, error)) *MockToolsFinderFindAgentsCall
Do rewrite *gomock.Call.Do
func (*MockToolsFinderFindAgentsCall) DoAndReturn ¶
func (c *MockToolsFinderFindAgentsCall) DoAndReturn(f func(context.Context, common.FindAgentsParams) (tools.List, error)) *MockToolsFinderFindAgentsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockToolsFinderFindAgentsCall) Return ¶
func (c *MockToolsFinderFindAgentsCall) Return(arg0 tools.List, arg1 error) *MockToolsFinderFindAgentsCall
Return rewrite *gomock.Call.Return
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, arg1 any) *MockToolsFinderFindAgentsCall
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(arg0 objectstore.ObjectStore) (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(arg0 any) *MockToolsStorageGetterToolsStorageCall
ToolsStorage indicates an expected call of ToolsStorage.
type MockToolsStorageGetterToolsStorageCall ¶
MockToolsStorageGetterToolsStorageCall wrap *gomock.Call
func (*MockToolsStorageGetterToolsStorageCall) Do ¶
func (c *MockToolsStorageGetterToolsStorageCall) Do(f func(objectstore.ObjectStore) (binarystorage.StorageCloser, error)) *MockToolsStorageGetterToolsStorageCall
Do rewrite *gomock.Call.Do
func (*MockToolsStorageGetterToolsStorageCall) DoAndReturn ¶
func (c *MockToolsStorageGetterToolsStorageCall) DoAndReturn(f func(objectstore.ObjectStore) (binarystorage.StorageCloser, error)) *MockToolsStorageGetterToolsStorageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockToolsStorageGetterToolsStorageCall) Return ¶
func (c *MockToolsStorageGetterToolsStorageCall) Return(arg0 binarystorage.StorageCloser, arg1 error) *MockToolsStorageGetterToolsStorageCall
Return rewrite *gomock.Call.Return
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.
func (*MockToolsURLGetterMockRecorder) ToolsURLs ¶
func (mr *MockToolsURLGetterMockRecorder) ToolsURLs(arg0, arg1, arg2 any) *MockToolsURLGetterToolsURLsCall
ToolsURLs indicates an expected call of ToolsURLs.
type MockToolsURLGetterToolsURLsCall ¶
MockToolsURLGetterToolsURLsCall wrap *gomock.Call
func (*MockToolsURLGetterToolsURLsCall) Do ¶
func (c *MockToolsURLGetterToolsURLsCall) Do(f func(context.Context, controller.Config, version.Binary) ([]string, error)) *MockToolsURLGetterToolsURLsCall
Do rewrite *gomock.Call.Do
func (*MockToolsURLGetterToolsURLsCall) DoAndReturn ¶
func (c *MockToolsURLGetterToolsURLsCall) DoAndReturn(f func(context.Context, controller.Config, version.Binary) ([]string, error)) *MockToolsURLGetterToolsURLsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockToolsURLGetterToolsURLsCall) Return ¶
func (c *MockToolsURLGetterToolsURLsCall) Return(arg0 []string, arg1 error) *MockToolsURLGetterToolsURLsCall
Return rewrite *gomock.Call.Return
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) 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 MockUnitStateBackendApplyOperationCall ¶
MockUnitStateBackendApplyOperationCall wrap *gomock.Call
func (*MockUnitStateBackendApplyOperationCall) Do ¶
func (c *MockUnitStateBackendApplyOperationCall) Do(f func(state.ModelOperation) error) *MockUnitStateBackendApplyOperationCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateBackendApplyOperationCall) DoAndReturn ¶
func (c *MockUnitStateBackendApplyOperationCall) DoAndReturn(f func(state.ModelOperation) error) *MockUnitStateBackendApplyOperationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateBackendApplyOperationCall) Return ¶
func (c *MockUnitStateBackendApplyOperationCall) Return(arg0 error) *MockUnitStateBackendApplyOperationCall
Return rewrite *gomock.Call.Return
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) *MockUnitStateBackendApplyOperationCall
ApplyOperation indicates an expected call of ApplyOperation.
func (*MockUnitStateBackendMockRecorder) Unit ¶
func (mr *MockUnitStateBackendMockRecorder) Unit(arg0 any) *MockUnitStateBackendUnitCall
Unit indicates an expected call of Unit.
type MockUnitStateBackendUnitCall ¶
MockUnitStateBackendUnitCall wrap *gomock.Call
func (*MockUnitStateBackendUnitCall) Do ¶
func (c *MockUnitStateBackendUnitCall) Do(f func(string) (common.UnitStateUnit, error)) *MockUnitStateBackendUnitCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateBackendUnitCall) DoAndReturn ¶
func (c *MockUnitStateBackendUnitCall) DoAndReturn(f func(string) (common.UnitStateUnit, error)) *MockUnitStateBackendUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateBackendUnitCall) Return ¶
func (c *MockUnitStateBackendUnitCall) Return(arg0 common.UnitStateUnit, arg1 error) *MockUnitStateBackendUnitCall
Return rewrite *gomock.Call.Return
type MockUnitStateService ¶
type MockUnitStateService struct {
// contains filtered or unexported fields
}
MockUnitStateService is a mock of UnitStateService interface.
func NewMockUnitStateService ¶
func NewMockUnitStateService(ctrl *gomock.Controller) *MockUnitStateService
NewMockUnitStateService creates a new mock instance.
func (*MockUnitStateService) EXPECT ¶
func (m *MockUnitStateService) EXPECT() *MockUnitStateServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnitStateService) GetState ¶
func (m *MockUnitStateService) GetState(arg0 context.Context, arg1 string) (unitstate.RetrievedUnitState, error)
GetState mocks base method.
func (*MockUnitStateService) GetUnitUUIDForName ¶
func (m *MockUnitStateService) GetUnitUUIDForName(arg0 context.Context, arg1 string) (string, error)
GetUnitUUIDForName mocks base method.
type MockUnitStateServiceGetStateCall ¶
MockUnitStateServiceGetStateCall wrap *gomock.Call
func (*MockUnitStateServiceGetStateCall) Do ¶
func (c *MockUnitStateServiceGetStateCall) Do(f func(context.Context, string) (unitstate.RetrievedUnitState, error)) *MockUnitStateServiceGetStateCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateServiceGetStateCall) DoAndReturn ¶
func (c *MockUnitStateServiceGetStateCall) DoAndReturn(f func(context.Context, string) (unitstate.RetrievedUnitState, error)) *MockUnitStateServiceGetStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateServiceGetStateCall) Return ¶
func (c *MockUnitStateServiceGetStateCall) Return(arg0 unitstate.RetrievedUnitState, arg1 error) *MockUnitStateServiceGetStateCall
Return rewrite *gomock.Call.Return
type MockUnitStateServiceGetUnitUUIDForNameCall ¶
MockUnitStateServiceGetUnitUUIDForNameCall wrap *gomock.Call
func (*MockUnitStateServiceGetUnitUUIDForNameCall) Do ¶
func (c *MockUnitStateServiceGetUnitUUIDForNameCall) Do(f func(context.Context, string) (string, error)) *MockUnitStateServiceGetUnitUUIDForNameCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateServiceGetUnitUUIDForNameCall) DoAndReturn ¶
func (c *MockUnitStateServiceGetUnitUUIDForNameCall) DoAndReturn(f func(context.Context, string) (string, error)) *MockUnitStateServiceGetUnitUUIDForNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateServiceGetUnitUUIDForNameCall) Return ¶
func (c *MockUnitStateServiceGetUnitUUIDForNameCall) Return(arg0 string, arg1 error) *MockUnitStateServiceGetUnitUUIDForNameCall
Return rewrite *gomock.Call.Return
type MockUnitStateServiceMockRecorder ¶
type MockUnitStateServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitStateServiceMockRecorder is the mock recorder for MockUnitStateService.
func (*MockUnitStateServiceMockRecorder) GetState ¶
func (mr *MockUnitStateServiceMockRecorder) GetState(arg0, arg1 any) *MockUnitStateServiceGetStateCall
GetState indicates an expected call of GetState.
func (*MockUnitStateServiceMockRecorder) GetUnitUUIDForName ¶
func (mr *MockUnitStateServiceMockRecorder) GetUnitUUIDForName(arg0, arg1 any) *MockUnitStateServiceGetUnitUUIDForNameCall
GetUnitUUIDForName indicates an expected call of GetUnitUUIDForName.
func (*MockUnitStateServiceMockRecorder) SetState ¶
func (mr *MockUnitStateServiceMockRecorder) SetState(arg0, arg1 any) *MockUnitStateServiceSetStateCall
SetState indicates an expected call of SetState.
type MockUnitStateServiceSetStateCall ¶
MockUnitStateServiceSetStateCall wrap *gomock.Call
func (*MockUnitStateServiceSetStateCall) Do ¶
func (c *MockUnitStateServiceSetStateCall) Do(f func(context.Context, unitstate.UnitState) error) *MockUnitStateServiceSetStateCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateServiceSetStateCall) DoAndReturn ¶
func (c *MockUnitStateServiceSetStateCall) DoAndReturn(f func(context.Context, unitstate.UnitState) error) *MockUnitStateServiceSetStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateServiceSetStateCall) Return ¶
func (c *MockUnitStateServiceSetStateCall) Return(arg0 error) *MockUnitStateServiceSetStateCall
Return rewrite *gomock.Call.Return
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) *MockUnitStateUnitSetStateOperationCall
SetStateOperation indicates an expected call of SetStateOperation.
func (*MockUnitStateUnitMockRecorder) State ¶
func (mr *MockUnitStateUnitMockRecorder) State() *MockUnitStateUnitStateCall
State indicates an expected call of State.
type MockUnitStateUnitSetStateOperationCall ¶
MockUnitStateUnitSetStateOperationCall wrap *gomock.Call
func (*MockUnitStateUnitSetStateOperationCall) Do ¶
func (c *MockUnitStateUnitSetStateOperationCall) Do(f func(*state.UnitState, state.UnitStateSizeLimits) state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateUnitSetStateOperationCall) DoAndReturn ¶
func (c *MockUnitStateUnitSetStateOperationCall) DoAndReturn(f func(*state.UnitState, state.UnitStateSizeLimits) state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateUnitSetStateOperationCall) Return ¶
func (c *MockUnitStateUnitSetStateOperationCall) Return(arg0 state.ModelOperation) *MockUnitStateUnitSetStateOperationCall
Return rewrite *gomock.Call.Return
type MockUnitStateUnitStateCall ¶
MockUnitStateUnitStateCall wrap *gomock.Call
func (*MockUnitStateUnitStateCall) Do ¶
func (c *MockUnitStateUnitStateCall) Do(f func() (*state.UnitState, error)) *MockUnitStateUnitStateCall
Do rewrite *gomock.Call.Do
func (*MockUnitStateUnitStateCall) DoAndReturn ¶
func (c *MockUnitStateUnitStateCall) DoAndReturn(f func() (*state.UnitState, error)) *MockUnitStateUnitStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitStateUnitStateCall) Return ¶
func (c *MockUnitStateUnitStateCall) Return(arg0 *state.UnitState, arg1 error) *MockUnitStateUnitStateCall
Return rewrite *gomock.Call.Return
type MockWatchableMachineService ¶
type MockWatchableMachineService struct {
// contains filtered or unexported fields
}
MockWatchableMachineService is a mock of WatchableMachineService interface.
func NewMockWatchableMachineService ¶
func NewMockWatchableMachineService(ctrl *gomock.Controller) *MockWatchableMachineService
NewMockWatchableMachineService creates a new mock instance.
func (*MockWatchableMachineService) EXPECT ¶
func (m *MockWatchableMachineService) EXPECT() *MockWatchableMachineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatchableMachineService) WatchMachineReboot ¶
func (m *MockWatchableMachineService) WatchMachineReboot(arg0 context.Context, arg1 string) (watcher.Watcher[struct{}], error)
WatchMachineReboot mocks base method.
type MockWatchableMachineServiceMockRecorder ¶
type MockWatchableMachineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockWatchableMachineServiceMockRecorder is the mock recorder for MockWatchableMachineService.
func (*MockWatchableMachineServiceMockRecorder) WatchMachineReboot ¶
func (mr *MockWatchableMachineServiceMockRecorder) WatchMachineReboot(arg0, arg1 any) *MockWatchableMachineServiceWatchMachineRebootCall
WatchMachineReboot indicates an expected call of WatchMachineReboot.
type MockWatchableMachineServiceWatchMachineRebootCall ¶
MockWatchableMachineServiceWatchMachineRebootCall wrap *gomock.Call
func (*MockWatchableMachineServiceWatchMachineRebootCall) Do ¶
func (c *MockWatchableMachineServiceWatchMachineRebootCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockWatchableMachineServiceWatchMachineRebootCall
Do rewrite *gomock.Call.Do
func (*MockWatchableMachineServiceWatchMachineRebootCall) DoAndReturn ¶
func (c *MockWatchableMachineServiceWatchMachineRebootCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockWatchableMachineServiceWatchMachineRebootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatchableMachineServiceWatchMachineRebootCall) Return ¶
func (c *MockWatchableMachineServiceWatchMachineRebootCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockWatchableMachineServiceWatchMachineRebootCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistry ¶
type MockWatcherRegistry struct {
// contains filtered or unexported fields
}
MockWatcherRegistry is a mock of WatcherRegistry interface.
func NewMockWatcherRegistry ¶
func NewMockWatcherRegistry(ctrl *gomock.Controller) *MockWatcherRegistry
NewMockWatcherRegistry creates a new mock instance.
func (*MockWatcherRegistry) Count ¶
func (m *MockWatcherRegistry) Count() int
Count mocks base method.
func (*MockWatcherRegistry) EXPECT ¶
func (m *MockWatcherRegistry) EXPECT() *MockWatcherRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatcherRegistry) Get ¶
func (m *MockWatcherRegistry) Get(arg0 string) (worker.Worker, error)
Get mocks base method.
func (*MockWatcherRegistry) Register ¶
func (m *MockWatcherRegistry) Register(arg0 worker.Worker) (string, error)
Register mocks base method.
func (*MockWatcherRegistry) RegisterNamed ¶
func (m *MockWatcherRegistry) RegisterNamed(arg0 string, arg1 worker.Worker) error
RegisterNamed mocks base method.
func (*MockWatcherRegistry) Stop ¶
func (m *MockWatcherRegistry) Stop(arg0 string) error
Stop mocks base method.
func (*MockWatcherRegistry) Wait ¶
func (m *MockWatcherRegistry) Wait() error
Wait mocks base method.
type MockWatcherRegistryCountCall ¶
MockWatcherRegistryCountCall wrap *gomock.Call
func (*MockWatcherRegistryCountCall) Do ¶
func (c *MockWatcherRegistryCountCall) Do(f func() int) *MockWatcherRegistryCountCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryCountCall) DoAndReturn ¶
func (c *MockWatcherRegistryCountCall) DoAndReturn(f func() int) *MockWatcherRegistryCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryCountCall) Return ¶
func (c *MockWatcherRegistryCountCall) Return(arg0 int) *MockWatcherRegistryCountCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryGetCall ¶
MockWatcherRegistryGetCall wrap *gomock.Call
func (*MockWatcherRegistryGetCall) Do ¶
func (c *MockWatcherRegistryGetCall) Do(f func(string) (worker.Worker, error)) *MockWatcherRegistryGetCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryGetCall) DoAndReturn ¶
func (c *MockWatcherRegistryGetCall) DoAndReturn(f func(string) (worker.Worker, error)) *MockWatcherRegistryGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryGetCall) Return ¶
func (c *MockWatcherRegistryGetCall) Return(arg0 worker.Worker, arg1 error) *MockWatcherRegistryGetCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryKillCall ¶
MockWatcherRegistryKillCall wrap *gomock.Call
func (*MockWatcherRegistryKillCall) Do ¶
func (c *MockWatcherRegistryKillCall) Do(f func()) *MockWatcherRegistryKillCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryKillCall) DoAndReturn ¶
func (c *MockWatcherRegistryKillCall) DoAndReturn(f func()) *MockWatcherRegistryKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryKillCall) Return ¶
func (c *MockWatcherRegistryKillCall) Return() *MockWatcherRegistryKillCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryMockRecorder ¶
type MockWatcherRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockWatcherRegistryMockRecorder is the mock recorder for MockWatcherRegistry.
func (*MockWatcherRegistryMockRecorder) Count ¶
func (mr *MockWatcherRegistryMockRecorder) Count() *MockWatcherRegistryCountCall
Count indicates an expected call of Count.
func (*MockWatcherRegistryMockRecorder) Get ¶
func (mr *MockWatcherRegistryMockRecorder) Get(arg0 any) *MockWatcherRegistryGetCall
Get indicates an expected call of Get.
func (*MockWatcherRegistryMockRecorder) Kill ¶
func (mr *MockWatcherRegistryMockRecorder) Kill() *MockWatcherRegistryKillCall
Kill indicates an expected call of Kill.
func (*MockWatcherRegistryMockRecorder) Register ¶
func (mr *MockWatcherRegistryMockRecorder) Register(arg0 any) *MockWatcherRegistryRegisterCall
Register indicates an expected call of Register.
func (*MockWatcherRegistryMockRecorder) RegisterNamed ¶
func (mr *MockWatcherRegistryMockRecorder) RegisterNamed(arg0, arg1 any) *MockWatcherRegistryRegisterNamedCall
RegisterNamed indicates an expected call of RegisterNamed.
func (*MockWatcherRegistryMockRecorder) Stop ¶
func (mr *MockWatcherRegistryMockRecorder) Stop(arg0 any) *MockWatcherRegistryStopCall
Stop indicates an expected call of Stop.
func (*MockWatcherRegistryMockRecorder) Wait ¶
func (mr *MockWatcherRegistryMockRecorder) Wait() *MockWatcherRegistryWaitCall
Wait indicates an expected call of Wait.
type MockWatcherRegistryRegisterCall ¶
MockWatcherRegistryRegisterCall wrap *gomock.Call
func (*MockWatcherRegistryRegisterCall) Do ¶
func (c *MockWatcherRegistryRegisterCall) Do(f func(worker.Worker) (string, error)) *MockWatcherRegistryRegisterCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryRegisterCall) DoAndReturn ¶
func (c *MockWatcherRegistryRegisterCall) DoAndReturn(f func(worker.Worker) (string, error)) *MockWatcherRegistryRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryRegisterCall) Return ¶
func (c *MockWatcherRegistryRegisterCall) Return(arg0 string, arg1 error) *MockWatcherRegistryRegisterCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryRegisterNamedCall ¶
MockWatcherRegistryRegisterNamedCall wrap *gomock.Call
func (*MockWatcherRegistryRegisterNamedCall) Do ¶
func (c *MockWatcherRegistryRegisterNamedCall) Do(f func(string, worker.Worker) error) *MockWatcherRegistryRegisterNamedCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryRegisterNamedCall) DoAndReturn ¶
func (c *MockWatcherRegistryRegisterNamedCall) DoAndReturn(f func(string, worker.Worker) error) *MockWatcherRegistryRegisterNamedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryRegisterNamedCall) Return ¶
func (c *MockWatcherRegistryRegisterNamedCall) Return(arg0 error) *MockWatcherRegistryRegisterNamedCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryStopCall ¶
MockWatcherRegistryStopCall wrap *gomock.Call
func (*MockWatcherRegistryStopCall) Do ¶
func (c *MockWatcherRegistryStopCall) Do(f func(string) error) *MockWatcherRegistryStopCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryStopCall) DoAndReturn ¶
func (c *MockWatcherRegistryStopCall) DoAndReturn(f func(string) error) *MockWatcherRegistryStopCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryStopCall) Return ¶
func (c *MockWatcherRegistryStopCall) Return(arg0 error) *MockWatcherRegistryStopCall
Return rewrite *gomock.Call.Return
type MockWatcherRegistryWaitCall ¶
MockWatcherRegistryWaitCall wrap *gomock.Call
func (*MockWatcherRegistryWaitCall) Do ¶
func (c *MockWatcherRegistryWaitCall) Do(f func() error) *MockWatcherRegistryWaitCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRegistryWaitCall) DoAndReturn ¶
func (c *MockWatcherRegistryWaitCall) DoAndReturn(f func() error) *MockWatcherRegistryWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRegistryWaitCall) Return ¶
func (c *MockWatcherRegistryWaitCall) Return(arg0 error) *MockWatcherRegistryWaitCall
Return rewrite *gomock.Call.Return