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.
Index ¶
- type MockApplicationService
- type MockApplicationServiceGetApplicationLifeCall
- func (c *MockApplicationServiceGetApplicationLifeCall) Do(f func(context.Context, string) (life.Value, error)) *MockApplicationServiceGetApplicationLifeCall
- func (c *MockApplicationServiceGetApplicationLifeCall) DoAndReturn(f func(context.Context, string) (life.Value, error)) *MockApplicationServiceGetApplicationLifeCall
- func (c *MockApplicationServiceGetApplicationLifeCall) Return(arg0 life.Value, arg1 error) *MockApplicationServiceGetApplicationLifeCall
- type MockApplicationServiceMockRecorder
- type MockBackend
- func (m *MockBackend) AllLocalRelatedModels() ([]string, error)
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) Export(arg0 map[string]string, arg1 objectstore.ObjectStore) (description.Model, error)
- func (m *MockBackend) ExportPartial(arg0 state.ExportConfig, arg1 objectstore.ObjectStore) (description.Model, error)
- func (m *MockBackend) LatestMigration() (state.ModelMigration, error)
- func (m *MockBackend) RemoveExportingModelDocs() error
- func (m *MockBackend) WatchForMigration() state.NotifyWatcher
- type MockBackendAllLocalRelatedModelsCall
- func (c *MockBackendAllLocalRelatedModelsCall) Do(f func() ([]string, error)) *MockBackendAllLocalRelatedModelsCall
- func (c *MockBackendAllLocalRelatedModelsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllLocalRelatedModelsCall
- func (c *MockBackendAllLocalRelatedModelsCall) Return(arg0 []string, arg1 error) *MockBackendAllLocalRelatedModelsCall
- type MockBackendExportCall
- func (c *MockBackendExportCall) Do(f func(map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportCall
- func (c *MockBackendExportCall) DoAndReturn(f func(map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportCall
- func (c *MockBackendExportCall) Return(arg0 description.Model, arg1 error) *MockBackendExportCall
- type MockBackendExportPartialCall
- func (c *MockBackendExportPartialCall) Do(f func(state.ExportConfig, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportPartialCall
- func (c *MockBackendExportPartialCall) DoAndReturn(f func(state.ExportConfig, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportPartialCall
- func (c *MockBackendExportPartialCall) Return(arg0 description.Model, arg1 error) *MockBackendExportPartialCall
- type MockBackendLatestMigrationCall
- func (c *MockBackendLatestMigrationCall) Do(f func() (state.ModelMigration, error)) *MockBackendLatestMigrationCall
- func (c *MockBackendLatestMigrationCall) DoAndReturn(f func() (state.ModelMigration, error)) *MockBackendLatestMigrationCall
- func (c *MockBackendLatestMigrationCall) Return(arg0 state.ModelMigration, arg1 error) *MockBackendLatestMigrationCall
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) AllLocalRelatedModels() *MockBackendAllLocalRelatedModelsCall
- func (mr *MockBackendMockRecorder) Export(arg0, arg1 any) *MockBackendExportCall
- func (mr *MockBackendMockRecorder) ExportPartial(arg0, arg1 any) *MockBackendExportPartialCall
- func (mr *MockBackendMockRecorder) LatestMigration() *MockBackendLatestMigrationCall
- func (mr *MockBackendMockRecorder) RemoveExportingModelDocs() *MockBackendRemoveExportingModelDocsCall
- func (mr *MockBackendMockRecorder) WatchForMigration() *MockBackendWatchForMigrationCall
- type MockBackendRemoveExportingModelDocsCall
- func (c *MockBackendRemoveExportingModelDocsCall) Do(f func() error) *MockBackendRemoveExportingModelDocsCall
- func (c *MockBackendRemoveExportingModelDocsCall) DoAndReturn(f func() error) *MockBackendRemoveExportingModelDocsCall
- func (c *MockBackendRemoveExportingModelDocsCall) Return(arg0 error) *MockBackendRemoveExportingModelDocsCall
- type MockBackendWatchForMigrationCall
- func (c *MockBackendWatchForMigrationCall) Do(f func() state.NotifyWatcher) *MockBackendWatchForMigrationCall
- func (c *MockBackendWatchForMigrationCall) DoAndReturn(f func() state.NotifyWatcher) *MockBackendWatchForMigrationCall
- func (c *MockBackendWatchForMigrationCall) Return(arg0 state.NotifyWatcher) *MockBackendWatchForMigrationCall
- 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 MockControllerState
- type MockControllerStateAPIHostPortsForClientsCall
- func (c *MockControllerStateAPIHostPortsForClientsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerStateAPIHostPortsForClientsCall
- func (c *MockControllerStateAPIHostPortsForClientsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerStateAPIHostPortsForClientsCall
- func (c *MockControllerStateAPIHostPortsForClientsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockControllerStateAPIHostPortsForClientsCall
- type MockControllerStateMockRecorder
- type MockModelAgentService
- 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 MockModelAgentServiceMockRecorder
- 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 MockModelExporter
- type MockModelExporterExportModelCall
- type MockModelExporterMockRecorder
- type MockModelInfoService
- type MockModelInfoServiceGetModelInfoCall
- func (c *MockModelInfoServiceGetModelInfoCall) Do(f func(context.Context) (model.ReadOnlyModel, error)) *MockModelInfoServiceGetModelInfoCall
- func (c *MockModelInfoServiceGetModelInfoCall) DoAndReturn(f func(context.Context) (model.ReadOnlyModel, error)) *MockModelInfoServiceGetModelInfoCall
- func (c *MockModelInfoServiceGetModelInfoCall) Return(arg0 model.ReadOnlyModel, arg1 error) *MockModelInfoServiceGetModelInfoCall
- type MockModelInfoServiceMockRecorder
- type MockModelMigration
- func (m *MockModelMigration) Attempt() int
- func (m *MockModelMigration) EXPECT() *MockModelMigrationMockRecorder
- func (m *MockModelMigration) EndTime() time.Time
- func (m *MockModelMigration) Id() string
- func (m *MockModelMigration) InitiatedBy() string
- func (m *MockModelMigration) MinionReports() (*state.MinionReports, error)
- func (m *MockModelMigration) ModelUUID() string
- func (m *MockModelMigration) Phase() (migration.Phase, error)
- func (m *MockModelMigration) PhaseChangedTime() time.Time
- func (m *MockModelMigration) Refresh() error
- func (m *MockModelMigration) SetPhase(arg0 migration.Phase) error
- func (m *MockModelMigration) SetStatusMessage(arg0 string) error
- func (m *MockModelMigration) StartTime() time.Time
- func (m *MockModelMigration) StatusMessage() string
- func (m *MockModelMigration) SubmitMinionReport(arg0 names.Tag, arg1 migration.Phase, arg2 bool) error
- func (m *MockModelMigration) SuccessTime() time.Time
- func (m *MockModelMigration) TargetInfo() (*migration.TargetInfo, error)
- func (m *MockModelMigration) WatchMinionReports() (state.NotifyWatcher, error)
- type MockModelMigrationAttemptCall
- type MockModelMigrationEndTimeCall
- type MockModelMigrationIdCall
- type MockModelMigrationInitiatedByCall
- func (c *MockModelMigrationInitiatedByCall) Do(f func() string) *MockModelMigrationInitiatedByCall
- func (c *MockModelMigrationInitiatedByCall) DoAndReturn(f func() string) *MockModelMigrationInitiatedByCall
- func (c *MockModelMigrationInitiatedByCall) Return(arg0 string) *MockModelMigrationInitiatedByCall
- type MockModelMigrationMinionReportsCall
- func (c *MockModelMigrationMinionReportsCall) Do(f func() (*state.MinionReports, error)) *MockModelMigrationMinionReportsCall
- func (c *MockModelMigrationMinionReportsCall) DoAndReturn(f func() (*state.MinionReports, error)) *MockModelMigrationMinionReportsCall
- func (c *MockModelMigrationMinionReportsCall) Return(arg0 *state.MinionReports, arg1 error) *MockModelMigrationMinionReportsCall
- type MockModelMigrationMockRecorder
- func (mr *MockModelMigrationMockRecorder) Attempt() *MockModelMigrationAttemptCall
- func (mr *MockModelMigrationMockRecorder) EndTime() *MockModelMigrationEndTimeCall
- func (mr *MockModelMigrationMockRecorder) Id() *MockModelMigrationIdCall
- func (mr *MockModelMigrationMockRecorder) InitiatedBy() *MockModelMigrationInitiatedByCall
- func (mr *MockModelMigrationMockRecorder) MinionReports() *MockModelMigrationMinionReportsCall
- func (mr *MockModelMigrationMockRecorder) ModelUUID() *MockModelMigrationModelUUIDCall
- func (mr *MockModelMigrationMockRecorder) Phase() *MockModelMigrationPhaseCall
- func (mr *MockModelMigrationMockRecorder) PhaseChangedTime() *MockModelMigrationPhaseChangedTimeCall
- func (mr *MockModelMigrationMockRecorder) Refresh() *MockModelMigrationRefreshCall
- func (mr *MockModelMigrationMockRecorder) SetPhase(arg0 any) *MockModelMigrationSetPhaseCall
- func (mr *MockModelMigrationMockRecorder) SetStatusMessage(arg0 any) *MockModelMigrationSetStatusMessageCall
- func (mr *MockModelMigrationMockRecorder) StartTime() *MockModelMigrationStartTimeCall
- func (mr *MockModelMigrationMockRecorder) StatusMessage() *MockModelMigrationStatusMessageCall
- func (mr *MockModelMigrationMockRecorder) SubmitMinionReport(arg0, arg1, arg2 any) *MockModelMigrationSubmitMinionReportCall
- func (mr *MockModelMigrationMockRecorder) SuccessTime() *MockModelMigrationSuccessTimeCall
- func (mr *MockModelMigrationMockRecorder) TargetInfo() *MockModelMigrationTargetInfoCall
- func (mr *MockModelMigrationMockRecorder) WatchMinionReports() *MockModelMigrationWatchMinionReportsCall
- type MockModelMigrationModelUUIDCall
- type MockModelMigrationPhaseCall
- func (c *MockModelMigrationPhaseCall) Do(f func() (migration.Phase, error)) *MockModelMigrationPhaseCall
- func (c *MockModelMigrationPhaseCall) DoAndReturn(f func() (migration.Phase, error)) *MockModelMigrationPhaseCall
- func (c *MockModelMigrationPhaseCall) Return(arg0 migration.Phase, arg1 error) *MockModelMigrationPhaseCall
- type MockModelMigrationPhaseChangedTimeCall
- func (c *MockModelMigrationPhaseChangedTimeCall) Do(f func() time.Time) *MockModelMigrationPhaseChangedTimeCall
- func (c *MockModelMigrationPhaseChangedTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationPhaseChangedTimeCall
- func (c *MockModelMigrationPhaseChangedTimeCall) Return(arg0 time.Time) *MockModelMigrationPhaseChangedTimeCall
- type MockModelMigrationRefreshCall
- type MockModelMigrationSetPhaseCall
- func (c *MockModelMigrationSetPhaseCall) Do(f func(migration.Phase) error) *MockModelMigrationSetPhaseCall
- func (c *MockModelMigrationSetPhaseCall) DoAndReturn(f func(migration.Phase) error) *MockModelMigrationSetPhaseCall
- func (c *MockModelMigrationSetPhaseCall) Return(arg0 error) *MockModelMigrationSetPhaseCall
- type MockModelMigrationSetStatusMessageCall
- func (c *MockModelMigrationSetStatusMessageCall) Do(f func(string) error) *MockModelMigrationSetStatusMessageCall
- func (c *MockModelMigrationSetStatusMessageCall) DoAndReturn(f func(string) error) *MockModelMigrationSetStatusMessageCall
- func (c *MockModelMigrationSetStatusMessageCall) Return(arg0 error) *MockModelMigrationSetStatusMessageCall
- type MockModelMigrationStartTimeCall
- func (c *MockModelMigrationStartTimeCall) Do(f func() time.Time) *MockModelMigrationStartTimeCall
- func (c *MockModelMigrationStartTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationStartTimeCall
- func (c *MockModelMigrationStartTimeCall) Return(arg0 time.Time) *MockModelMigrationStartTimeCall
- type MockModelMigrationStatusMessageCall
- func (c *MockModelMigrationStatusMessageCall) Do(f func() string) *MockModelMigrationStatusMessageCall
- func (c *MockModelMigrationStatusMessageCall) DoAndReturn(f func() string) *MockModelMigrationStatusMessageCall
- func (c *MockModelMigrationStatusMessageCall) Return(arg0 string) *MockModelMigrationStatusMessageCall
- type MockModelMigrationSubmitMinionReportCall
- func (c *MockModelMigrationSubmitMinionReportCall) Do(f func(names.Tag, migration.Phase, bool) error) *MockModelMigrationSubmitMinionReportCall
- func (c *MockModelMigrationSubmitMinionReportCall) DoAndReturn(f func(names.Tag, migration.Phase, bool) error) *MockModelMigrationSubmitMinionReportCall
- func (c *MockModelMigrationSubmitMinionReportCall) Return(arg0 error) *MockModelMigrationSubmitMinionReportCall
- type MockModelMigrationSuccessTimeCall
- func (c *MockModelMigrationSuccessTimeCall) Do(f func() time.Time) *MockModelMigrationSuccessTimeCall
- func (c *MockModelMigrationSuccessTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationSuccessTimeCall
- func (c *MockModelMigrationSuccessTimeCall) Return(arg0 time.Time) *MockModelMigrationSuccessTimeCall
- type MockModelMigrationTargetInfoCall
- func (c *MockModelMigrationTargetInfoCall) Do(f func() (*migration.TargetInfo, error)) *MockModelMigrationTargetInfoCall
- func (c *MockModelMigrationTargetInfoCall) DoAndReturn(f func() (*migration.TargetInfo, error)) *MockModelMigrationTargetInfoCall
- func (c *MockModelMigrationTargetInfoCall) Return(arg0 *migration.TargetInfo, arg1 error) *MockModelMigrationTargetInfoCall
- type MockModelMigrationWatchMinionReportsCall
- func (c *MockModelMigrationWatchMinionReportsCall) Do(f func() (state.NotifyWatcher, error)) *MockModelMigrationWatchMinionReportsCall
- func (c *MockModelMigrationWatchMinionReportsCall) DoAndReturn(f func() (state.NotifyWatcher, error)) *MockModelMigrationWatchMinionReportsCall
- func (c *MockModelMigrationWatchMinionReportsCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockModelMigrationWatchMinionReportsCall
- type MockModelService
- type MockModelServiceControllerModelCall
- func (c *MockModelServiceControllerModelCall) Do(f func(context.Context) (model.Model, error)) *MockModelServiceControllerModelCall
- func (c *MockModelServiceControllerModelCall) DoAndReturn(f func(context.Context) (model.Model, error)) *MockModelServiceControllerModelCall
- func (c *MockModelServiceControllerModelCall) Return(arg0 model.Model, arg1 error) *MockModelServiceControllerModelCall
- type MockModelServiceMockRecorder
- type MockNotifyWatcher
- type MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) Do(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) DoAndReturn(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) Return(arg0 <-chan struct{}) *MockNotifyWatcherChangesCall
- type MockNotifyWatcherErrCall
- type MockNotifyWatcherKillCall
- type MockNotifyWatcherMockRecorder
- func (mr *MockNotifyWatcherMockRecorder) Changes() *MockNotifyWatcherChangesCall
- func (mr *MockNotifyWatcherMockRecorder) Err() *MockNotifyWatcherErrCall
- func (mr *MockNotifyWatcherMockRecorder) Kill() *MockNotifyWatcherKillCall
- func (mr *MockNotifyWatcherMockRecorder) Stop() *MockNotifyWatcherStopCall
- func (mr *MockNotifyWatcherMockRecorder) Wait() *MockNotifyWatcherWaitCall
- type MockNotifyWatcherStopCall
- type MockNotifyWatcherWaitCall
- 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 MockPrecheckBackend
- func (m *MockPrecheckBackend) AllApplications() ([]migration.PrecheckApplication, error)
- func (m *MockPrecheckBackend) AllMachines() ([]migration.PrecheckMachine, error)
- func (m *MockPrecheckBackend) AllMachinesCount() (int, error)
- func (m *MockPrecheckBackend) AllModelUUIDs() ([]string, error)
- func (m *MockPrecheckBackend) AllRelations() ([]migration.PrecheckRelation, error)
- func (m *MockPrecheckBackend) ControllerBackend() (migration.PrecheckBackend, error)
- func (m *MockPrecheckBackend) EXPECT() *MockPrecheckBackendMockRecorder
- func (m *MockPrecheckBackend) IsMigrationActive(arg0 string) (bool, error)
- func (m *MockPrecheckBackend) MachineCountForBase(arg0 ...state.Base) (map[string]int, error)
- func (m *MockPrecheckBackend) Model() (migration.PrecheckModel, error)
- func (m *MockPrecheckBackend) MongoCurrentStatus() (*replicaset.Status, error)
- func (m *MockPrecheckBackend) NeedsCleanup() (bool, error)
- type MockPrecheckBackendAllApplicationsCall
- func (c *MockPrecheckBackendAllApplicationsCall) Do(f func() ([]migration.PrecheckApplication, error)) *MockPrecheckBackendAllApplicationsCall
- func (c *MockPrecheckBackendAllApplicationsCall) DoAndReturn(f func() ([]migration.PrecheckApplication, error)) *MockPrecheckBackendAllApplicationsCall
- func (c *MockPrecheckBackendAllApplicationsCall) Return(arg0 []migration.PrecheckApplication, arg1 error) *MockPrecheckBackendAllApplicationsCall
- type MockPrecheckBackendAllMachinesCall
- func (c *MockPrecheckBackendAllMachinesCall) Do(f func() ([]migration.PrecheckMachine, error)) *MockPrecheckBackendAllMachinesCall
- func (c *MockPrecheckBackendAllMachinesCall) DoAndReturn(f func() ([]migration.PrecheckMachine, error)) *MockPrecheckBackendAllMachinesCall
- func (c *MockPrecheckBackendAllMachinesCall) Return(arg0 []migration.PrecheckMachine, arg1 error) *MockPrecheckBackendAllMachinesCall
- type MockPrecheckBackendAllMachinesCountCall
- func (c *MockPrecheckBackendAllMachinesCountCall) Do(f func() (int, error)) *MockPrecheckBackendAllMachinesCountCall
- func (c *MockPrecheckBackendAllMachinesCountCall) DoAndReturn(f func() (int, error)) *MockPrecheckBackendAllMachinesCountCall
- func (c *MockPrecheckBackendAllMachinesCountCall) Return(arg0 int, arg1 error) *MockPrecheckBackendAllMachinesCountCall
- type MockPrecheckBackendAllModelUUIDsCall
- func (c *MockPrecheckBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockPrecheckBackendAllModelUUIDsCall
- func (c *MockPrecheckBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockPrecheckBackendAllModelUUIDsCall
- func (c *MockPrecheckBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockPrecheckBackendAllModelUUIDsCall
- type MockPrecheckBackendAllRelationsCall
- func (c *MockPrecheckBackendAllRelationsCall) Do(f func() ([]migration.PrecheckRelation, error)) *MockPrecheckBackendAllRelationsCall
- func (c *MockPrecheckBackendAllRelationsCall) DoAndReturn(f func() ([]migration.PrecheckRelation, error)) *MockPrecheckBackendAllRelationsCall
- func (c *MockPrecheckBackendAllRelationsCall) Return(arg0 []migration.PrecheckRelation, arg1 error) *MockPrecheckBackendAllRelationsCall
- type MockPrecheckBackendControllerBackendCall
- func (c *MockPrecheckBackendControllerBackendCall) Do(f func() (migration.PrecheckBackend, error)) *MockPrecheckBackendControllerBackendCall
- func (c *MockPrecheckBackendControllerBackendCall) DoAndReturn(f func() (migration.PrecheckBackend, error)) *MockPrecheckBackendControllerBackendCall
- func (c *MockPrecheckBackendControllerBackendCall) Return(arg0 migration.PrecheckBackend, arg1 error) *MockPrecheckBackendControllerBackendCall
- type MockPrecheckBackendIsMigrationActiveCall
- func (c *MockPrecheckBackendIsMigrationActiveCall) Do(f func(string) (bool, error)) *MockPrecheckBackendIsMigrationActiveCall
- func (c *MockPrecheckBackendIsMigrationActiveCall) DoAndReturn(f func(string) (bool, error)) *MockPrecheckBackendIsMigrationActiveCall
- func (c *MockPrecheckBackendIsMigrationActiveCall) Return(arg0 bool, arg1 error) *MockPrecheckBackendIsMigrationActiveCall
- type MockPrecheckBackendMachineCountForBaseCall
- func (c *MockPrecheckBackendMachineCountForBaseCall) Do(f func(...state.Base) (map[string]int, error)) *MockPrecheckBackendMachineCountForBaseCall
- func (c *MockPrecheckBackendMachineCountForBaseCall) DoAndReturn(f func(...state.Base) (map[string]int, error)) *MockPrecheckBackendMachineCountForBaseCall
- func (c *MockPrecheckBackendMachineCountForBaseCall) Return(arg0 map[string]int, arg1 error) *MockPrecheckBackendMachineCountForBaseCall
- type MockPrecheckBackendMockRecorder
- func (mr *MockPrecheckBackendMockRecorder) AllApplications() *MockPrecheckBackendAllApplicationsCall
- func (mr *MockPrecheckBackendMockRecorder) AllMachines() *MockPrecheckBackendAllMachinesCall
- func (mr *MockPrecheckBackendMockRecorder) AllMachinesCount() *MockPrecheckBackendAllMachinesCountCall
- func (mr *MockPrecheckBackendMockRecorder) AllModelUUIDs() *MockPrecheckBackendAllModelUUIDsCall
- func (mr *MockPrecheckBackendMockRecorder) AllRelations() *MockPrecheckBackendAllRelationsCall
- func (mr *MockPrecheckBackendMockRecorder) ControllerBackend() *MockPrecheckBackendControllerBackendCall
- func (mr *MockPrecheckBackendMockRecorder) IsMigrationActive(arg0 any) *MockPrecheckBackendIsMigrationActiveCall
- func (mr *MockPrecheckBackendMockRecorder) MachineCountForBase(arg0 ...any) *MockPrecheckBackendMachineCountForBaseCall
- func (mr *MockPrecheckBackendMockRecorder) Model() *MockPrecheckBackendModelCall
- func (mr *MockPrecheckBackendMockRecorder) MongoCurrentStatus() *MockPrecheckBackendMongoCurrentStatusCall
- func (mr *MockPrecheckBackendMockRecorder) NeedsCleanup() *MockPrecheckBackendNeedsCleanupCall
- type MockPrecheckBackendModelCall
- func (c *MockPrecheckBackendModelCall) Do(f func() (migration.PrecheckModel, error)) *MockPrecheckBackendModelCall
- func (c *MockPrecheckBackendModelCall) DoAndReturn(f func() (migration.PrecheckModel, error)) *MockPrecheckBackendModelCall
- func (c *MockPrecheckBackendModelCall) Return(arg0 migration.PrecheckModel, arg1 error) *MockPrecheckBackendModelCall
- type MockPrecheckBackendMongoCurrentStatusCall
- func (c *MockPrecheckBackendMongoCurrentStatusCall) Do(f func() (*replicaset.Status, error)) *MockPrecheckBackendMongoCurrentStatusCall
- func (c *MockPrecheckBackendMongoCurrentStatusCall) DoAndReturn(f func() (*replicaset.Status, error)) *MockPrecheckBackendMongoCurrentStatusCall
- func (c *MockPrecheckBackendMongoCurrentStatusCall) Return(arg0 *replicaset.Status, arg1 error) *MockPrecheckBackendMongoCurrentStatusCall
- type MockPrecheckBackendNeedsCleanupCall
- func (c *MockPrecheckBackendNeedsCleanupCall) Do(f func() (bool, error)) *MockPrecheckBackendNeedsCleanupCall
- func (c *MockPrecheckBackendNeedsCleanupCall) DoAndReturn(f func() (bool, error)) *MockPrecheckBackendNeedsCleanupCall
- func (c *MockPrecheckBackendNeedsCleanupCall) Return(arg0 bool, arg1 error) *MockPrecheckBackendNeedsCleanupCall
- type MockUpgradeService
- type MockUpgradeServiceIsUpgradingCall
- func (c *MockUpgradeServiceIsUpgradingCall) Do(f func(context.Context) (bool, error)) *MockUpgradeServiceIsUpgradingCall
- func (c *MockUpgradeServiceIsUpgradingCall) DoAndReturn(f func(context.Context) (bool, error)) *MockUpgradeServiceIsUpgradingCall
- func (c *MockUpgradeServiceIsUpgradingCall) Return(arg0 bool, arg1 error) *MockUpgradeServiceIsUpgradingCall
- type MockUpgradeServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplicationService ¶
type MockApplicationService struct {
// contains filtered or unexported fields
}
MockApplicationService is a mock of ApplicationService interface.
func NewMockApplicationService ¶
func NewMockApplicationService(ctrl *gomock.Controller) *MockApplicationService
NewMockApplicationService creates a new mock instance.
func (*MockApplicationService) EXPECT ¶
func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApplicationService) GetApplicationLife ¶
func (m *MockApplicationService) GetApplicationLife(arg0 context.Context, arg1 string) (life.Value, error)
GetApplicationLife mocks base method.
type MockApplicationServiceGetApplicationLifeCall ¶
MockApplicationServiceGetApplicationLifeCall wrap *gomock.Call
func (*MockApplicationServiceGetApplicationLifeCall) Do ¶
func (c *MockApplicationServiceGetApplicationLifeCall) Do(f func(context.Context, string) (life.Value, error)) *MockApplicationServiceGetApplicationLifeCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceGetApplicationLifeCall) DoAndReturn ¶
func (c *MockApplicationServiceGetApplicationLifeCall) DoAndReturn(f func(context.Context, string) (life.Value, error)) *MockApplicationServiceGetApplicationLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceGetApplicationLifeCall) Return ¶
func (c *MockApplicationServiceGetApplicationLifeCall) Return(arg0 life.Value, arg1 error) *MockApplicationServiceGetApplicationLifeCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceMockRecorder ¶
type MockApplicationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationServiceMockRecorder is the mock recorder for MockApplicationService.
func (*MockApplicationServiceMockRecorder) GetApplicationLife ¶
func (mr *MockApplicationServiceMockRecorder) GetApplicationLife(arg0, arg1 any) *MockApplicationServiceGetApplicationLifeCall
GetApplicationLife indicates an expected call of GetApplicationLife.
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) AllLocalRelatedModels ¶
func (m *MockBackend) AllLocalRelatedModels() ([]string, error)
AllLocalRelatedModels mocks base method.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) Export ¶
func (m *MockBackend) Export(arg0 map[string]string, arg1 objectstore.ObjectStore) (description.Model, error)
Export mocks base method.
func (*MockBackend) ExportPartial ¶
func (m *MockBackend) ExportPartial(arg0 state.ExportConfig, arg1 objectstore.ObjectStore) (description.Model, error)
ExportPartial mocks base method.
func (*MockBackend) LatestMigration ¶
func (m *MockBackend) LatestMigration() (state.ModelMigration, error)
LatestMigration mocks base method.
func (*MockBackend) RemoveExportingModelDocs ¶
func (m *MockBackend) RemoveExportingModelDocs() error
RemoveExportingModelDocs mocks base method.
func (*MockBackend) WatchForMigration ¶
func (m *MockBackend) WatchForMigration() state.NotifyWatcher
WatchForMigration mocks base method.
type MockBackendAllLocalRelatedModelsCall ¶
MockBackendAllLocalRelatedModelsCall wrap *gomock.Call
func (*MockBackendAllLocalRelatedModelsCall) Do ¶
func (c *MockBackendAllLocalRelatedModelsCall) Do(f func() ([]string, error)) *MockBackendAllLocalRelatedModelsCall
Do rewrite *gomock.Call.Do
func (*MockBackendAllLocalRelatedModelsCall) DoAndReturn ¶
func (c *MockBackendAllLocalRelatedModelsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllLocalRelatedModelsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAllLocalRelatedModelsCall) Return ¶
func (c *MockBackendAllLocalRelatedModelsCall) Return(arg0 []string, arg1 error) *MockBackendAllLocalRelatedModelsCall
Return rewrite *gomock.Call.Return
type MockBackendExportCall ¶
MockBackendExportCall wrap *gomock.Call
func (*MockBackendExportCall) Do ¶
func (c *MockBackendExportCall) Do(f func(map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportCall
Do rewrite *gomock.Call.Do
func (*MockBackendExportCall) DoAndReturn ¶
func (c *MockBackendExportCall) DoAndReturn(f func(map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendExportCall) Return ¶
func (c *MockBackendExportCall) Return(arg0 description.Model, arg1 error) *MockBackendExportCall
Return rewrite *gomock.Call.Return
type MockBackendExportPartialCall ¶
MockBackendExportPartialCall wrap *gomock.Call
func (*MockBackendExportPartialCall) Do ¶
func (c *MockBackendExportPartialCall) Do(f func(state.ExportConfig, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportPartialCall
Do rewrite *gomock.Call.Do
func (*MockBackendExportPartialCall) DoAndReturn ¶
func (c *MockBackendExportPartialCall) DoAndReturn(f func(state.ExportConfig, objectstore.ObjectStore) (description.Model, error)) *MockBackendExportPartialCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendExportPartialCall) Return ¶
func (c *MockBackendExportPartialCall) Return(arg0 description.Model, arg1 error) *MockBackendExportPartialCall
Return rewrite *gomock.Call.Return
type MockBackendLatestMigrationCall ¶
MockBackendLatestMigrationCall wrap *gomock.Call
func (*MockBackendLatestMigrationCall) Do ¶
func (c *MockBackendLatestMigrationCall) Do(f func() (state.ModelMigration, error)) *MockBackendLatestMigrationCall
Do rewrite *gomock.Call.Do
func (*MockBackendLatestMigrationCall) DoAndReturn ¶
func (c *MockBackendLatestMigrationCall) DoAndReturn(f func() (state.ModelMigration, error)) *MockBackendLatestMigrationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendLatestMigrationCall) Return ¶
func (c *MockBackendLatestMigrationCall) Return(arg0 state.ModelMigration, arg1 error) *MockBackendLatestMigrationCall
Return rewrite *gomock.Call.Return
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) AllLocalRelatedModels ¶
func (mr *MockBackendMockRecorder) AllLocalRelatedModels() *MockBackendAllLocalRelatedModelsCall
AllLocalRelatedModels indicates an expected call of AllLocalRelatedModels.
func (*MockBackendMockRecorder) Export ¶
func (mr *MockBackendMockRecorder) Export(arg0, arg1 any) *MockBackendExportCall
Export indicates an expected call of Export.
func (*MockBackendMockRecorder) ExportPartial ¶
func (mr *MockBackendMockRecorder) ExportPartial(arg0, arg1 any) *MockBackendExportPartialCall
ExportPartial indicates an expected call of ExportPartial.
func (*MockBackendMockRecorder) LatestMigration ¶
func (mr *MockBackendMockRecorder) LatestMigration() *MockBackendLatestMigrationCall
LatestMigration indicates an expected call of LatestMigration.
func (*MockBackendMockRecorder) RemoveExportingModelDocs ¶
func (mr *MockBackendMockRecorder) RemoveExportingModelDocs() *MockBackendRemoveExportingModelDocsCall
RemoveExportingModelDocs indicates an expected call of RemoveExportingModelDocs.
func (*MockBackendMockRecorder) WatchForMigration ¶
func (mr *MockBackendMockRecorder) WatchForMigration() *MockBackendWatchForMigrationCall
WatchForMigration indicates an expected call of WatchForMigration.
type MockBackendRemoveExportingModelDocsCall ¶
MockBackendRemoveExportingModelDocsCall wrap *gomock.Call
func (*MockBackendRemoveExportingModelDocsCall) Do ¶
func (c *MockBackendRemoveExportingModelDocsCall) Do(f func() error) *MockBackendRemoveExportingModelDocsCall
Do rewrite *gomock.Call.Do
func (*MockBackendRemoveExportingModelDocsCall) DoAndReturn ¶
func (c *MockBackendRemoveExportingModelDocsCall) DoAndReturn(f func() error) *MockBackendRemoveExportingModelDocsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendRemoveExportingModelDocsCall) Return ¶
func (c *MockBackendRemoveExportingModelDocsCall) Return(arg0 error) *MockBackendRemoveExportingModelDocsCall
Return rewrite *gomock.Call.Return
type MockBackendWatchForMigrationCall ¶
MockBackendWatchForMigrationCall wrap *gomock.Call
func (*MockBackendWatchForMigrationCall) Do ¶
func (c *MockBackendWatchForMigrationCall) Do(f func() state.NotifyWatcher) *MockBackendWatchForMigrationCall
Do rewrite *gomock.Call.Do
func (*MockBackendWatchForMigrationCall) DoAndReturn ¶
func (c *MockBackendWatchForMigrationCall) DoAndReturn(f func() state.NotifyWatcher) *MockBackendWatchForMigrationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendWatchForMigrationCall) Return ¶
func (c *MockBackendWatchForMigrationCall) Return(arg0 state.NotifyWatcher) *MockBackendWatchForMigrationCall
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 MockControllerState ¶
type MockControllerState struct {
// contains filtered or unexported fields
}
MockControllerState is a mock of ControllerState interface.
func NewMockControllerState ¶
func NewMockControllerState(ctrl *gomock.Controller) *MockControllerState
NewMockControllerState creates a new mock instance.
func (*MockControllerState) APIHostPortsForClients ¶
func (m *MockControllerState) APIHostPortsForClients(arg0 controller.Config) ([]network.SpaceHostPorts, error)
APIHostPortsForClients mocks base method.
func (*MockControllerState) EXPECT ¶
func (m *MockControllerState) EXPECT() *MockControllerStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockControllerStateAPIHostPortsForClientsCall ¶
MockControllerStateAPIHostPortsForClientsCall wrap *gomock.Call
func (*MockControllerStateAPIHostPortsForClientsCall) Do ¶
func (c *MockControllerStateAPIHostPortsForClientsCall) Do(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerStateAPIHostPortsForClientsCall
Do rewrite *gomock.Call.Do
func (*MockControllerStateAPIHostPortsForClientsCall) DoAndReturn ¶
func (c *MockControllerStateAPIHostPortsForClientsCall) DoAndReturn(f func(controller.Config) ([]network.SpaceHostPorts, error)) *MockControllerStateAPIHostPortsForClientsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerStateAPIHostPortsForClientsCall) Return ¶
func (c *MockControllerStateAPIHostPortsForClientsCall) Return(arg0 []network.SpaceHostPorts, arg1 error) *MockControllerStateAPIHostPortsForClientsCall
Return rewrite *gomock.Call.Return
type MockControllerStateMockRecorder ¶
type MockControllerStateMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerStateMockRecorder is the mock recorder for MockControllerState.
func (*MockControllerStateMockRecorder) APIHostPortsForClients ¶
func (mr *MockControllerStateMockRecorder) APIHostPortsForClients(arg0 any) *MockControllerStateAPIHostPortsForClientsCall
APIHostPortsForClients indicates an expected call of APIHostPortsForClients.
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) GetModelTargetAgentVersion ¶
func (m *MockModelAgentService) GetModelTargetAgentVersion(arg0 context.Context) (version.Number, error)
GetModelTargetAgentVersion mocks base method.
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 MockModelAgentServiceMockRecorder ¶
type MockModelAgentServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockModelAgentServiceMockRecorder is the mock recorder for MockModelAgentService.
func (*MockModelAgentServiceMockRecorder) GetModelTargetAgentVersion ¶
func (mr *MockModelAgentServiceMockRecorder) GetModelTargetAgentVersion(arg0 any) *MockModelAgentServiceGetModelTargetAgentVersionCall
GetModelTargetAgentVersion indicates an expected call of GetModelTargetAgentVersion.
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.
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 MockModelExporter ¶
type MockModelExporter struct {
// contains filtered or unexported fields
}
MockModelExporter is a mock of ModelExporter interface.
func NewMockModelExporter ¶
func NewMockModelExporter(ctrl *gomock.Controller) *MockModelExporter
NewMockModelExporter creates a new mock instance.
func (*MockModelExporter) EXPECT ¶
func (m *MockModelExporter) EXPECT() *MockModelExporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelExporter) ExportModel ¶
func (m *MockModelExporter) ExportModel(arg0 context.Context, arg1 map[string]string, arg2 objectstore.ObjectStore) (description.Model, error)
ExportModel mocks base method.
type MockModelExporterExportModelCall ¶
MockModelExporterExportModelCall wrap *gomock.Call
func (*MockModelExporterExportModelCall) Do ¶
func (c *MockModelExporterExportModelCall) Do(f func(context.Context, map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockModelExporterExportModelCall
Do rewrite *gomock.Call.Do
func (*MockModelExporterExportModelCall) DoAndReturn ¶
func (c *MockModelExporterExportModelCall) DoAndReturn(f func(context.Context, map[string]string, objectstore.ObjectStore) (description.Model, error)) *MockModelExporterExportModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelExporterExportModelCall) Return ¶
func (c *MockModelExporterExportModelCall) Return(arg0 description.Model, arg1 error) *MockModelExporterExportModelCall
Return rewrite *gomock.Call.Return
type MockModelExporterMockRecorder ¶
type MockModelExporterMockRecorder struct {
// contains filtered or unexported fields
}
MockModelExporterMockRecorder is the mock recorder for MockModelExporter.
func (*MockModelExporterMockRecorder) ExportModel ¶
func (mr *MockModelExporterMockRecorder) ExportModel(arg0, arg1, arg2 any) *MockModelExporterExportModelCall
ExportModel indicates an expected call of ExportModel.
type MockModelInfoService ¶
type MockModelInfoService struct {
// contains filtered or unexported fields
}
MockModelInfoService is a mock of ModelInfoService interface.
func NewMockModelInfoService ¶
func NewMockModelInfoService(ctrl *gomock.Controller) *MockModelInfoService
NewMockModelInfoService creates a new mock instance.
func (*MockModelInfoService) EXPECT ¶
func (m *MockModelInfoService) EXPECT() *MockModelInfoServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelInfoService) GetModelInfo ¶
func (m *MockModelInfoService) GetModelInfo(arg0 context.Context) (model.ReadOnlyModel, error)
GetModelInfo mocks base method.
type MockModelInfoServiceGetModelInfoCall ¶
MockModelInfoServiceGetModelInfoCall wrap *gomock.Call
func (*MockModelInfoServiceGetModelInfoCall) Do ¶
func (c *MockModelInfoServiceGetModelInfoCall) Do(f func(context.Context) (model.ReadOnlyModel, error)) *MockModelInfoServiceGetModelInfoCall
Do rewrite *gomock.Call.Do
func (*MockModelInfoServiceGetModelInfoCall) DoAndReturn ¶
func (c *MockModelInfoServiceGetModelInfoCall) DoAndReturn(f func(context.Context) (model.ReadOnlyModel, error)) *MockModelInfoServiceGetModelInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelInfoServiceGetModelInfoCall) Return ¶
func (c *MockModelInfoServiceGetModelInfoCall) Return(arg0 model.ReadOnlyModel, arg1 error) *MockModelInfoServiceGetModelInfoCall
Return rewrite *gomock.Call.Return
type MockModelInfoServiceMockRecorder ¶
type MockModelInfoServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockModelInfoServiceMockRecorder is the mock recorder for MockModelInfoService.
func (*MockModelInfoServiceMockRecorder) GetModelInfo ¶
func (mr *MockModelInfoServiceMockRecorder) GetModelInfo(arg0 any) *MockModelInfoServiceGetModelInfoCall
GetModelInfo indicates an expected call of GetModelInfo.
type MockModelMigration ¶
type MockModelMigration struct {
// contains filtered or unexported fields
}
MockModelMigration is a mock of ModelMigration interface.
func NewMockModelMigration ¶
func NewMockModelMigration(ctrl *gomock.Controller) *MockModelMigration
NewMockModelMigration creates a new mock instance.
func (*MockModelMigration) Attempt ¶
func (m *MockModelMigration) Attempt() int
Attempt mocks base method.
func (*MockModelMigration) EXPECT ¶
func (m *MockModelMigration) EXPECT() *MockModelMigrationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelMigration) EndTime ¶
func (m *MockModelMigration) EndTime() time.Time
EndTime mocks base method.
func (*MockModelMigration) InitiatedBy ¶
func (m *MockModelMigration) InitiatedBy() string
InitiatedBy mocks base method.
func (*MockModelMigration) MinionReports ¶
func (m *MockModelMigration) MinionReports() (*state.MinionReports, error)
MinionReports mocks base method.
func (*MockModelMigration) ModelUUID ¶
func (m *MockModelMigration) ModelUUID() string
ModelUUID mocks base method.
func (*MockModelMigration) Phase ¶
func (m *MockModelMigration) Phase() (migration.Phase, error)
Phase mocks base method.
func (*MockModelMigration) PhaseChangedTime ¶
func (m *MockModelMigration) PhaseChangedTime() time.Time
PhaseChangedTime mocks base method.
func (*MockModelMigration) Refresh ¶
func (m *MockModelMigration) Refresh() error
Refresh mocks base method.
func (*MockModelMigration) SetPhase ¶
func (m *MockModelMigration) SetPhase(arg0 migration.Phase) error
SetPhase mocks base method.
func (*MockModelMigration) SetStatusMessage ¶
func (m *MockModelMigration) SetStatusMessage(arg0 string) error
SetStatusMessage mocks base method.
func (*MockModelMigration) StartTime ¶
func (m *MockModelMigration) StartTime() time.Time
StartTime mocks base method.
func (*MockModelMigration) StatusMessage ¶
func (m *MockModelMigration) StatusMessage() string
StatusMessage mocks base method.
func (*MockModelMigration) SubmitMinionReport ¶
func (m *MockModelMigration) SubmitMinionReport(arg0 names.Tag, arg1 migration.Phase, arg2 bool) error
SubmitMinionReport mocks base method.
func (*MockModelMigration) SuccessTime ¶
func (m *MockModelMigration) SuccessTime() time.Time
SuccessTime mocks base method.
func (*MockModelMigration) TargetInfo ¶
func (m *MockModelMigration) TargetInfo() (*migration.TargetInfo, error)
TargetInfo mocks base method.
func (*MockModelMigration) WatchMinionReports ¶
func (m *MockModelMigration) WatchMinionReports() (state.NotifyWatcher, error)
WatchMinionReports mocks base method.
type MockModelMigrationAttemptCall ¶
MockModelMigrationAttemptCall wrap *gomock.Call
func (*MockModelMigrationAttemptCall) Do ¶
func (c *MockModelMigrationAttemptCall) Do(f func() int) *MockModelMigrationAttemptCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationAttemptCall) DoAndReturn ¶
func (c *MockModelMigrationAttemptCall) DoAndReturn(f func() int) *MockModelMigrationAttemptCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationAttemptCall) Return ¶
func (c *MockModelMigrationAttemptCall) Return(arg0 int) *MockModelMigrationAttemptCall
Return rewrite *gomock.Call.Return
type MockModelMigrationEndTimeCall ¶
MockModelMigrationEndTimeCall wrap *gomock.Call
func (*MockModelMigrationEndTimeCall) Do ¶
func (c *MockModelMigrationEndTimeCall) Do(f func() time.Time) *MockModelMigrationEndTimeCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationEndTimeCall) DoAndReturn ¶
func (c *MockModelMigrationEndTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationEndTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationEndTimeCall) Return ¶
func (c *MockModelMigrationEndTimeCall) Return(arg0 time.Time) *MockModelMigrationEndTimeCall
Return rewrite *gomock.Call.Return
type MockModelMigrationIdCall ¶
MockModelMigrationIdCall wrap *gomock.Call
func (*MockModelMigrationIdCall) Do ¶
func (c *MockModelMigrationIdCall) Do(f func() string) *MockModelMigrationIdCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationIdCall) DoAndReturn ¶
func (c *MockModelMigrationIdCall) DoAndReturn(f func() string) *MockModelMigrationIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationIdCall) Return ¶
func (c *MockModelMigrationIdCall) Return(arg0 string) *MockModelMigrationIdCall
Return rewrite *gomock.Call.Return
type MockModelMigrationInitiatedByCall ¶
MockModelMigrationInitiatedByCall wrap *gomock.Call
func (*MockModelMigrationInitiatedByCall) Do ¶
func (c *MockModelMigrationInitiatedByCall) Do(f func() string) *MockModelMigrationInitiatedByCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationInitiatedByCall) DoAndReturn ¶
func (c *MockModelMigrationInitiatedByCall) DoAndReturn(f func() string) *MockModelMigrationInitiatedByCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationInitiatedByCall) Return ¶
func (c *MockModelMigrationInitiatedByCall) Return(arg0 string) *MockModelMigrationInitiatedByCall
Return rewrite *gomock.Call.Return
type MockModelMigrationMinionReportsCall ¶
MockModelMigrationMinionReportsCall wrap *gomock.Call
func (*MockModelMigrationMinionReportsCall) Do ¶
func (c *MockModelMigrationMinionReportsCall) Do(f func() (*state.MinionReports, error)) *MockModelMigrationMinionReportsCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationMinionReportsCall) DoAndReturn ¶
func (c *MockModelMigrationMinionReportsCall) DoAndReturn(f func() (*state.MinionReports, error)) *MockModelMigrationMinionReportsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationMinionReportsCall) Return ¶
func (c *MockModelMigrationMinionReportsCall) Return(arg0 *state.MinionReports, arg1 error) *MockModelMigrationMinionReportsCall
Return rewrite *gomock.Call.Return
type MockModelMigrationMockRecorder ¶
type MockModelMigrationMockRecorder struct {
// contains filtered or unexported fields
}
MockModelMigrationMockRecorder is the mock recorder for MockModelMigration.
func (*MockModelMigrationMockRecorder) Attempt ¶
func (mr *MockModelMigrationMockRecorder) Attempt() *MockModelMigrationAttemptCall
Attempt indicates an expected call of Attempt.
func (*MockModelMigrationMockRecorder) EndTime ¶
func (mr *MockModelMigrationMockRecorder) EndTime() *MockModelMigrationEndTimeCall
EndTime indicates an expected call of EndTime.
func (*MockModelMigrationMockRecorder) Id ¶
func (mr *MockModelMigrationMockRecorder) Id() *MockModelMigrationIdCall
Id indicates an expected call of Id.
func (*MockModelMigrationMockRecorder) InitiatedBy ¶
func (mr *MockModelMigrationMockRecorder) InitiatedBy() *MockModelMigrationInitiatedByCall
InitiatedBy indicates an expected call of InitiatedBy.
func (*MockModelMigrationMockRecorder) MinionReports ¶
func (mr *MockModelMigrationMockRecorder) MinionReports() *MockModelMigrationMinionReportsCall
MinionReports indicates an expected call of MinionReports.
func (*MockModelMigrationMockRecorder) ModelUUID ¶
func (mr *MockModelMigrationMockRecorder) ModelUUID() *MockModelMigrationModelUUIDCall
ModelUUID indicates an expected call of ModelUUID.
func (*MockModelMigrationMockRecorder) Phase ¶
func (mr *MockModelMigrationMockRecorder) Phase() *MockModelMigrationPhaseCall
Phase indicates an expected call of Phase.
func (*MockModelMigrationMockRecorder) PhaseChangedTime ¶
func (mr *MockModelMigrationMockRecorder) PhaseChangedTime() *MockModelMigrationPhaseChangedTimeCall
PhaseChangedTime indicates an expected call of PhaseChangedTime.
func (*MockModelMigrationMockRecorder) Refresh ¶
func (mr *MockModelMigrationMockRecorder) Refresh() *MockModelMigrationRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockModelMigrationMockRecorder) SetPhase ¶
func (mr *MockModelMigrationMockRecorder) SetPhase(arg0 any) *MockModelMigrationSetPhaseCall
SetPhase indicates an expected call of SetPhase.
func (*MockModelMigrationMockRecorder) SetStatusMessage ¶
func (mr *MockModelMigrationMockRecorder) SetStatusMessage(arg0 any) *MockModelMigrationSetStatusMessageCall
SetStatusMessage indicates an expected call of SetStatusMessage.
func (*MockModelMigrationMockRecorder) StartTime ¶
func (mr *MockModelMigrationMockRecorder) StartTime() *MockModelMigrationStartTimeCall
StartTime indicates an expected call of StartTime.
func (*MockModelMigrationMockRecorder) StatusMessage ¶
func (mr *MockModelMigrationMockRecorder) StatusMessage() *MockModelMigrationStatusMessageCall
StatusMessage indicates an expected call of StatusMessage.
func (*MockModelMigrationMockRecorder) SubmitMinionReport ¶
func (mr *MockModelMigrationMockRecorder) SubmitMinionReport(arg0, arg1, arg2 any) *MockModelMigrationSubmitMinionReportCall
SubmitMinionReport indicates an expected call of SubmitMinionReport.
func (*MockModelMigrationMockRecorder) SuccessTime ¶
func (mr *MockModelMigrationMockRecorder) SuccessTime() *MockModelMigrationSuccessTimeCall
SuccessTime indicates an expected call of SuccessTime.
func (*MockModelMigrationMockRecorder) TargetInfo ¶
func (mr *MockModelMigrationMockRecorder) TargetInfo() *MockModelMigrationTargetInfoCall
TargetInfo indicates an expected call of TargetInfo.
func (*MockModelMigrationMockRecorder) WatchMinionReports ¶
func (mr *MockModelMigrationMockRecorder) WatchMinionReports() *MockModelMigrationWatchMinionReportsCall
WatchMinionReports indicates an expected call of WatchMinionReports.
type MockModelMigrationModelUUIDCall ¶
MockModelMigrationModelUUIDCall wrap *gomock.Call
func (*MockModelMigrationModelUUIDCall) Do ¶
func (c *MockModelMigrationModelUUIDCall) Do(f func() string) *MockModelMigrationModelUUIDCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationModelUUIDCall) DoAndReturn ¶
func (c *MockModelMigrationModelUUIDCall) DoAndReturn(f func() string) *MockModelMigrationModelUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationModelUUIDCall) Return ¶
func (c *MockModelMigrationModelUUIDCall) Return(arg0 string) *MockModelMigrationModelUUIDCall
Return rewrite *gomock.Call.Return
type MockModelMigrationPhaseCall ¶
MockModelMigrationPhaseCall wrap *gomock.Call
func (*MockModelMigrationPhaseCall) Do ¶
func (c *MockModelMigrationPhaseCall) Do(f func() (migration.Phase, error)) *MockModelMigrationPhaseCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationPhaseCall) DoAndReturn ¶
func (c *MockModelMigrationPhaseCall) DoAndReturn(f func() (migration.Phase, error)) *MockModelMigrationPhaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationPhaseCall) Return ¶
func (c *MockModelMigrationPhaseCall) Return(arg0 migration.Phase, arg1 error) *MockModelMigrationPhaseCall
Return rewrite *gomock.Call.Return
type MockModelMigrationPhaseChangedTimeCall ¶
MockModelMigrationPhaseChangedTimeCall wrap *gomock.Call
func (*MockModelMigrationPhaseChangedTimeCall) Do ¶
func (c *MockModelMigrationPhaseChangedTimeCall) Do(f func() time.Time) *MockModelMigrationPhaseChangedTimeCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationPhaseChangedTimeCall) DoAndReturn ¶
func (c *MockModelMigrationPhaseChangedTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationPhaseChangedTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationPhaseChangedTimeCall) Return ¶
func (c *MockModelMigrationPhaseChangedTimeCall) Return(arg0 time.Time) *MockModelMigrationPhaseChangedTimeCall
Return rewrite *gomock.Call.Return
type MockModelMigrationRefreshCall ¶
MockModelMigrationRefreshCall wrap *gomock.Call
func (*MockModelMigrationRefreshCall) Do ¶
func (c *MockModelMigrationRefreshCall) Do(f func() error) *MockModelMigrationRefreshCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationRefreshCall) DoAndReturn ¶
func (c *MockModelMigrationRefreshCall) DoAndReturn(f func() error) *MockModelMigrationRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationRefreshCall) Return ¶
func (c *MockModelMigrationRefreshCall) Return(arg0 error) *MockModelMigrationRefreshCall
Return rewrite *gomock.Call.Return
type MockModelMigrationSetPhaseCall ¶
MockModelMigrationSetPhaseCall wrap *gomock.Call
func (*MockModelMigrationSetPhaseCall) Do ¶
func (c *MockModelMigrationSetPhaseCall) Do(f func(migration.Phase) error) *MockModelMigrationSetPhaseCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationSetPhaseCall) DoAndReturn ¶
func (c *MockModelMigrationSetPhaseCall) DoAndReturn(f func(migration.Phase) error) *MockModelMigrationSetPhaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationSetPhaseCall) Return ¶
func (c *MockModelMigrationSetPhaseCall) Return(arg0 error) *MockModelMigrationSetPhaseCall
Return rewrite *gomock.Call.Return
type MockModelMigrationSetStatusMessageCall ¶
MockModelMigrationSetStatusMessageCall wrap *gomock.Call
func (*MockModelMigrationSetStatusMessageCall) Do ¶
func (c *MockModelMigrationSetStatusMessageCall) Do(f func(string) error) *MockModelMigrationSetStatusMessageCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationSetStatusMessageCall) DoAndReturn ¶
func (c *MockModelMigrationSetStatusMessageCall) DoAndReturn(f func(string) error) *MockModelMigrationSetStatusMessageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationSetStatusMessageCall) Return ¶
func (c *MockModelMigrationSetStatusMessageCall) Return(arg0 error) *MockModelMigrationSetStatusMessageCall
Return rewrite *gomock.Call.Return
type MockModelMigrationStartTimeCall ¶
MockModelMigrationStartTimeCall wrap *gomock.Call
func (*MockModelMigrationStartTimeCall) Do ¶
func (c *MockModelMigrationStartTimeCall) Do(f func() time.Time) *MockModelMigrationStartTimeCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationStartTimeCall) DoAndReturn ¶
func (c *MockModelMigrationStartTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationStartTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationStartTimeCall) Return ¶
func (c *MockModelMigrationStartTimeCall) Return(arg0 time.Time) *MockModelMigrationStartTimeCall
Return rewrite *gomock.Call.Return
type MockModelMigrationStatusMessageCall ¶
MockModelMigrationStatusMessageCall wrap *gomock.Call
func (*MockModelMigrationStatusMessageCall) Do ¶
func (c *MockModelMigrationStatusMessageCall) Do(f func() string) *MockModelMigrationStatusMessageCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationStatusMessageCall) DoAndReturn ¶
func (c *MockModelMigrationStatusMessageCall) DoAndReturn(f func() string) *MockModelMigrationStatusMessageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationStatusMessageCall) Return ¶
func (c *MockModelMigrationStatusMessageCall) Return(arg0 string) *MockModelMigrationStatusMessageCall
Return rewrite *gomock.Call.Return
type MockModelMigrationSubmitMinionReportCall ¶
MockModelMigrationSubmitMinionReportCall wrap *gomock.Call
func (*MockModelMigrationSubmitMinionReportCall) Do ¶
func (c *MockModelMigrationSubmitMinionReportCall) Do(f func(names.Tag, migration.Phase, bool) error) *MockModelMigrationSubmitMinionReportCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationSubmitMinionReportCall) DoAndReturn ¶
func (c *MockModelMigrationSubmitMinionReportCall) DoAndReturn(f func(names.Tag, migration.Phase, bool) error) *MockModelMigrationSubmitMinionReportCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationSubmitMinionReportCall) Return ¶
func (c *MockModelMigrationSubmitMinionReportCall) Return(arg0 error) *MockModelMigrationSubmitMinionReportCall
Return rewrite *gomock.Call.Return
type MockModelMigrationSuccessTimeCall ¶
MockModelMigrationSuccessTimeCall wrap *gomock.Call
func (*MockModelMigrationSuccessTimeCall) Do ¶
func (c *MockModelMigrationSuccessTimeCall) Do(f func() time.Time) *MockModelMigrationSuccessTimeCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationSuccessTimeCall) DoAndReturn ¶
func (c *MockModelMigrationSuccessTimeCall) DoAndReturn(f func() time.Time) *MockModelMigrationSuccessTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationSuccessTimeCall) Return ¶
func (c *MockModelMigrationSuccessTimeCall) Return(arg0 time.Time) *MockModelMigrationSuccessTimeCall
Return rewrite *gomock.Call.Return
type MockModelMigrationTargetInfoCall ¶
MockModelMigrationTargetInfoCall wrap *gomock.Call
func (*MockModelMigrationTargetInfoCall) Do ¶
func (c *MockModelMigrationTargetInfoCall) Do(f func() (*migration.TargetInfo, error)) *MockModelMigrationTargetInfoCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationTargetInfoCall) DoAndReturn ¶
func (c *MockModelMigrationTargetInfoCall) DoAndReturn(f func() (*migration.TargetInfo, error)) *MockModelMigrationTargetInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationTargetInfoCall) Return ¶
func (c *MockModelMigrationTargetInfoCall) Return(arg0 *migration.TargetInfo, arg1 error) *MockModelMigrationTargetInfoCall
Return rewrite *gomock.Call.Return
type MockModelMigrationWatchMinionReportsCall ¶
MockModelMigrationWatchMinionReportsCall wrap *gomock.Call
func (*MockModelMigrationWatchMinionReportsCall) Do ¶
func (c *MockModelMigrationWatchMinionReportsCall) Do(f func() (state.NotifyWatcher, error)) *MockModelMigrationWatchMinionReportsCall
Do rewrite *gomock.Call.Do
func (*MockModelMigrationWatchMinionReportsCall) DoAndReturn ¶
func (c *MockModelMigrationWatchMinionReportsCall) DoAndReturn(f func() (state.NotifyWatcher, error)) *MockModelMigrationWatchMinionReportsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelMigrationWatchMinionReportsCall) Return ¶
func (c *MockModelMigrationWatchMinionReportsCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockModelMigrationWatchMinionReportsCall
Return rewrite *gomock.Call.Return
type MockModelService ¶
type MockModelService struct {
// contains filtered or unexported fields
}
MockModelService is a mock of ModelService interface.
func NewMockModelService ¶
func NewMockModelService(ctrl *gomock.Controller) *MockModelService
NewMockModelService creates a new mock instance.
func (*MockModelService) ControllerModel ¶
ControllerModel mocks base method.
func (*MockModelService) EXPECT ¶
func (m *MockModelService) EXPECT() *MockModelServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockModelServiceControllerModelCall ¶
MockModelServiceControllerModelCall wrap *gomock.Call
func (*MockModelServiceControllerModelCall) Do ¶
func (c *MockModelServiceControllerModelCall) Do(f func(context.Context) (model.Model, error)) *MockModelServiceControllerModelCall
Do rewrite *gomock.Call.Do
func (*MockModelServiceControllerModelCall) DoAndReturn ¶
func (c *MockModelServiceControllerModelCall) DoAndReturn(f func(context.Context) (model.Model, error)) *MockModelServiceControllerModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelServiceControllerModelCall) Return ¶
func (c *MockModelServiceControllerModelCall) Return(arg0 model.Model, arg1 error) *MockModelServiceControllerModelCall
Return rewrite *gomock.Call.Return
type MockModelServiceMockRecorder ¶
type MockModelServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockModelServiceMockRecorder is the mock recorder for MockModelService.
func (*MockModelServiceMockRecorder) ControllerModel ¶
func (mr *MockModelServiceMockRecorder) ControllerModel(arg0 any) *MockModelServiceControllerModelCall
ControllerModel indicates an expected call of ControllerModel.
type MockNotifyWatcher ¶
type MockNotifyWatcher struct {
// contains filtered or unexported fields
}
MockNotifyWatcher is a mock of NotifyWatcher interface.
func NewMockNotifyWatcher ¶
func NewMockNotifyWatcher(ctrl *gomock.Controller) *MockNotifyWatcher
NewMockNotifyWatcher creates a new mock instance.
func (*MockNotifyWatcher) Changes ¶
func (m *MockNotifyWatcher) Changes() <-chan struct{}
Changes mocks base method.
func (*MockNotifyWatcher) EXPECT ¶
func (m *MockNotifyWatcher) EXPECT() *MockNotifyWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNotifyWatcherChangesCall ¶
MockNotifyWatcherChangesCall wrap *gomock.Call
func (*MockNotifyWatcherChangesCall) Do ¶
func (c *MockNotifyWatcherChangesCall) Do(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherChangesCall) DoAndReturn ¶
func (c *MockNotifyWatcherChangesCall) DoAndReturn(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherChangesCall) Return ¶
func (c *MockNotifyWatcherChangesCall) Return(arg0 <-chan struct{}) *MockNotifyWatcherChangesCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherErrCall ¶
MockNotifyWatcherErrCall wrap *gomock.Call
func (*MockNotifyWatcherErrCall) Do ¶
func (c *MockNotifyWatcherErrCall) Do(f func() error) *MockNotifyWatcherErrCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherErrCall) DoAndReturn ¶
func (c *MockNotifyWatcherErrCall) DoAndReturn(f func() error) *MockNotifyWatcherErrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherErrCall) Return ¶
func (c *MockNotifyWatcherErrCall) Return(arg0 error) *MockNotifyWatcherErrCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherKillCall ¶
MockNotifyWatcherKillCall wrap *gomock.Call
func (*MockNotifyWatcherKillCall) Do ¶
func (c *MockNotifyWatcherKillCall) Do(f func()) *MockNotifyWatcherKillCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherKillCall) DoAndReturn ¶
func (c *MockNotifyWatcherKillCall) DoAndReturn(f func()) *MockNotifyWatcherKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherKillCall) Return ¶
func (c *MockNotifyWatcherKillCall) Return() *MockNotifyWatcherKillCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherMockRecorder ¶
type MockNotifyWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher.
func (*MockNotifyWatcherMockRecorder) Changes ¶
func (mr *MockNotifyWatcherMockRecorder) Changes() *MockNotifyWatcherChangesCall
Changes indicates an expected call of Changes.
func (*MockNotifyWatcherMockRecorder) Err ¶
func (mr *MockNotifyWatcherMockRecorder) Err() *MockNotifyWatcherErrCall
Err indicates an expected call of Err.
func (*MockNotifyWatcherMockRecorder) Kill ¶
func (mr *MockNotifyWatcherMockRecorder) Kill() *MockNotifyWatcherKillCall
Kill indicates an expected call of Kill.
func (*MockNotifyWatcherMockRecorder) Stop ¶
func (mr *MockNotifyWatcherMockRecorder) Stop() *MockNotifyWatcherStopCall
Stop indicates an expected call of Stop.
func (*MockNotifyWatcherMockRecorder) Wait ¶
func (mr *MockNotifyWatcherMockRecorder) Wait() *MockNotifyWatcherWaitCall
Wait indicates an expected call of Wait.
type MockNotifyWatcherStopCall ¶
MockNotifyWatcherStopCall wrap *gomock.Call
func (*MockNotifyWatcherStopCall) Do ¶
func (c *MockNotifyWatcherStopCall) Do(f func() error) *MockNotifyWatcherStopCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherStopCall) DoAndReturn ¶
func (c *MockNotifyWatcherStopCall) DoAndReturn(f func() error) *MockNotifyWatcherStopCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherStopCall) Return ¶
func (c *MockNotifyWatcherStopCall) Return(arg0 error) *MockNotifyWatcherStopCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherWaitCall ¶
MockNotifyWatcherWaitCall wrap *gomock.Call
func (*MockNotifyWatcherWaitCall) Do ¶
func (c *MockNotifyWatcherWaitCall) Do(f func() error) *MockNotifyWatcherWaitCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherWaitCall) DoAndReturn ¶
func (c *MockNotifyWatcherWaitCall) DoAndReturn(f func() error) *MockNotifyWatcherWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherWaitCall) Return ¶
func (c *MockNotifyWatcherWaitCall) Return(arg0 error) *MockNotifyWatcherWaitCall
Return rewrite *gomock.Call.Return
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 MockPrecheckBackend ¶
type MockPrecheckBackend struct {
// contains filtered or unexported fields
}
MockPrecheckBackend is a mock of PrecheckBackend interface.
func NewMockPrecheckBackend ¶
func NewMockPrecheckBackend(ctrl *gomock.Controller) *MockPrecheckBackend
NewMockPrecheckBackend creates a new mock instance.
func (*MockPrecheckBackend) AllApplications ¶
func (m *MockPrecheckBackend) AllApplications() ([]migration.PrecheckApplication, error)
AllApplications mocks base method.
func (*MockPrecheckBackend) AllMachines ¶
func (m *MockPrecheckBackend) AllMachines() ([]migration.PrecheckMachine, error)
AllMachines mocks base method.
func (*MockPrecheckBackend) AllMachinesCount ¶
func (m *MockPrecheckBackend) AllMachinesCount() (int, error)
AllMachinesCount mocks base method.
func (*MockPrecheckBackend) AllModelUUIDs ¶
func (m *MockPrecheckBackend) AllModelUUIDs() ([]string, error)
AllModelUUIDs mocks base method.
func (*MockPrecheckBackend) AllRelations ¶
func (m *MockPrecheckBackend) AllRelations() ([]migration.PrecheckRelation, error)
AllRelations mocks base method.
func (*MockPrecheckBackend) ControllerBackend ¶
func (m *MockPrecheckBackend) ControllerBackend() (migration.PrecheckBackend, error)
ControllerBackend mocks base method.
func (*MockPrecheckBackend) EXPECT ¶
func (m *MockPrecheckBackend) EXPECT() *MockPrecheckBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrecheckBackend) IsMigrationActive ¶
func (m *MockPrecheckBackend) IsMigrationActive(arg0 string) (bool, error)
IsMigrationActive mocks base method.
func (*MockPrecheckBackend) MachineCountForBase ¶
MachineCountForBase mocks base method.
func (*MockPrecheckBackend) Model ¶
func (m *MockPrecheckBackend) Model() (migration.PrecheckModel, error)
Model mocks base method.
func (*MockPrecheckBackend) MongoCurrentStatus ¶
func (m *MockPrecheckBackend) MongoCurrentStatus() (*replicaset.Status, error)
MongoCurrentStatus mocks base method.
func (*MockPrecheckBackend) NeedsCleanup ¶
func (m *MockPrecheckBackend) NeedsCleanup() (bool, error)
NeedsCleanup mocks base method.
type MockPrecheckBackendAllApplicationsCall ¶
MockPrecheckBackendAllApplicationsCall wrap *gomock.Call
func (*MockPrecheckBackendAllApplicationsCall) Do ¶
func (c *MockPrecheckBackendAllApplicationsCall) Do(f func() ([]migration.PrecheckApplication, error)) *MockPrecheckBackendAllApplicationsCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendAllApplicationsCall) DoAndReturn ¶
func (c *MockPrecheckBackendAllApplicationsCall) DoAndReturn(f func() ([]migration.PrecheckApplication, error)) *MockPrecheckBackendAllApplicationsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendAllApplicationsCall) Return ¶
func (c *MockPrecheckBackendAllApplicationsCall) Return(arg0 []migration.PrecheckApplication, arg1 error) *MockPrecheckBackendAllApplicationsCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendAllMachinesCall ¶
MockPrecheckBackendAllMachinesCall wrap *gomock.Call
func (*MockPrecheckBackendAllMachinesCall) Do ¶
func (c *MockPrecheckBackendAllMachinesCall) Do(f func() ([]migration.PrecheckMachine, error)) *MockPrecheckBackendAllMachinesCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendAllMachinesCall) DoAndReturn ¶
func (c *MockPrecheckBackendAllMachinesCall) DoAndReturn(f func() ([]migration.PrecheckMachine, error)) *MockPrecheckBackendAllMachinesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendAllMachinesCall) Return ¶
func (c *MockPrecheckBackendAllMachinesCall) Return(arg0 []migration.PrecheckMachine, arg1 error) *MockPrecheckBackendAllMachinesCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendAllMachinesCountCall ¶
MockPrecheckBackendAllMachinesCountCall wrap *gomock.Call
func (*MockPrecheckBackendAllMachinesCountCall) Do ¶
func (c *MockPrecheckBackendAllMachinesCountCall) Do(f func() (int, error)) *MockPrecheckBackendAllMachinesCountCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendAllMachinesCountCall) DoAndReturn ¶
func (c *MockPrecheckBackendAllMachinesCountCall) DoAndReturn(f func() (int, error)) *MockPrecheckBackendAllMachinesCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendAllMachinesCountCall) Return ¶
func (c *MockPrecheckBackendAllMachinesCountCall) Return(arg0 int, arg1 error) *MockPrecheckBackendAllMachinesCountCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendAllModelUUIDsCall ¶
MockPrecheckBackendAllModelUUIDsCall wrap *gomock.Call
func (*MockPrecheckBackendAllModelUUIDsCall) Do ¶
func (c *MockPrecheckBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockPrecheckBackendAllModelUUIDsCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendAllModelUUIDsCall) DoAndReturn ¶
func (c *MockPrecheckBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockPrecheckBackendAllModelUUIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendAllModelUUIDsCall) Return ¶
func (c *MockPrecheckBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockPrecheckBackendAllModelUUIDsCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendAllRelationsCall ¶
MockPrecheckBackendAllRelationsCall wrap *gomock.Call
func (*MockPrecheckBackendAllRelationsCall) Do ¶
func (c *MockPrecheckBackendAllRelationsCall) Do(f func() ([]migration.PrecheckRelation, error)) *MockPrecheckBackendAllRelationsCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendAllRelationsCall) DoAndReturn ¶
func (c *MockPrecheckBackendAllRelationsCall) DoAndReturn(f func() ([]migration.PrecheckRelation, error)) *MockPrecheckBackendAllRelationsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendAllRelationsCall) Return ¶
func (c *MockPrecheckBackendAllRelationsCall) Return(arg0 []migration.PrecheckRelation, arg1 error) *MockPrecheckBackendAllRelationsCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendControllerBackendCall ¶
MockPrecheckBackendControllerBackendCall wrap *gomock.Call
func (*MockPrecheckBackendControllerBackendCall) Do ¶
func (c *MockPrecheckBackendControllerBackendCall) Do(f func() (migration.PrecheckBackend, error)) *MockPrecheckBackendControllerBackendCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendControllerBackendCall) DoAndReturn ¶
func (c *MockPrecheckBackendControllerBackendCall) DoAndReturn(f func() (migration.PrecheckBackend, error)) *MockPrecheckBackendControllerBackendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendControllerBackendCall) Return ¶
func (c *MockPrecheckBackendControllerBackendCall) Return(arg0 migration.PrecheckBackend, arg1 error) *MockPrecheckBackendControllerBackendCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendIsMigrationActiveCall ¶
MockPrecheckBackendIsMigrationActiveCall wrap *gomock.Call
func (*MockPrecheckBackendIsMigrationActiveCall) Do ¶
func (c *MockPrecheckBackendIsMigrationActiveCall) Do(f func(string) (bool, error)) *MockPrecheckBackendIsMigrationActiveCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendIsMigrationActiveCall) DoAndReturn ¶
func (c *MockPrecheckBackendIsMigrationActiveCall) DoAndReturn(f func(string) (bool, error)) *MockPrecheckBackendIsMigrationActiveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendIsMigrationActiveCall) Return ¶
func (c *MockPrecheckBackendIsMigrationActiveCall) Return(arg0 bool, arg1 error) *MockPrecheckBackendIsMigrationActiveCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendMachineCountForBaseCall ¶
MockPrecheckBackendMachineCountForBaseCall wrap *gomock.Call
func (*MockPrecheckBackendMachineCountForBaseCall) Do ¶
func (c *MockPrecheckBackendMachineCountForBaseCall) Do(f func(...state.Base) (map[string]int, error)) *MockPrecheckBackendMachineCountForBaseCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendMachineCountForBaseCall) DoAndReturn ¶
func (c *MockPrecheckBackendMachineCountForBaseCall) DoAndReturn(f func(...state.Base) (map[string]int, error)) *MockPrecheckBackendMachineCountForBaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendMachineCountForBaseCall) Return ¶
func (c *MockPrecheckBackendMachineCountForBaseCall) Return(arg0 map[string]int, arg1 error) *MockPrecheckBackendMachineCountForBaseCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendMockRecorder ¶
type MockPrecheckBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockPrecheckBackendMockRecorder is the mock recorder for MockPrecheckBackend.
func (*MockPrecheckBackendMockRecorder) AllApplications ¶
func (mr *MockPrecheckBackendMockRecorder) AllApplications() *MockPrecheckBackendAllApplicationsCall
AllApplications indicates an expected call of AllApplications.
func (*MockPrecheckBackendMockRecorder) AllMachines ¶
func (mr *MockPrecheckBackendMockRecorder) AllMachines() *MockPrecheckBackendAllMachinesCall
AllMachines indicates an expected call of AllMachines.
func (*MockPrecheckBackendMockRecorder) AllMachinesCount ¶
func (mr *MockPrecheckBackendMockRecorder) AllMachinesCount() *MockPrecheckBackendAllMachinesCountCall
AllMachinesCount indicates an expected call of AllMachinesCount.
func (*MockPrecheckBackendMockRecorder) AllModelUUIDs ¶
func (mr *MockPrecheckBackendMockRecorder) AllModelUUIDs() *MockPrecheckBackendAllModelUUIDsCall
AllModelUUIDs indicates an expected call of AllModelUUIDs.
func (*MockPrecheckBackendMockRecorder) AllRelations ¶
func (mr *MockPrecheckBackendMockRecorder) AllRelations() *MockPrecheckBackendAllRelationsCall
AllRelations indicates an expected call of AllRelations.
func (*MockPrecheckBackendMockRecorder) ControllerBackend ¶
func (mr *MockPrecheckBackendMockRecorder) ControllerBackend() *MockPrecheckBackendControllerBackendCall
ControllerBackend indicates an expected call of ControllerBackend.
func (*MockPrecheckBackendMockRecorder) IsMigrationActive ¶
func (mr *MockPrecheckBackendMockRecorder) IsMigrationActive(arg0 any) *MockPrecheckBackendIsMigrationActiveCall
IsMigrationActive indicates an expected call of IsMigrationActive.
func (*MockPrecheckBackendMockRecorder) MachineCountForBase ¶
func (mr *MockPrecheckBackendMockRecorder) MachineCountForBase(arg0 ...any) *MockPrecheckBackendMachineCountForBaseCall
MachineCountForBase indicates an expected call of MachineCountForBase.
func (*MockPrecheckBackendMockRecorder) Model ¶
func (mr *MockPrecheckBackendMockRecorder) Model() *MockPrecheckBackendModelCall
Model indicates an expected call of Model.
func (*MockPrecheckBackendMockRecorder) MongoCurrentStatus ¶
func (mr *MockPrecheckBackendMockRecorder) MongoCurrentStatus() *MockPrecheckBackendMongoCurrentStatusCall
MongoCurrentStatus indicates an expected call of MongoCurrentStatus.
func (*MockPrecheckBackendMockRecorder) NeedsCleanup ¶
func (mr *MockPrecheckBackendMockRecorder) NeedsCleanup() *MockPrecheckBackendNeedsCleanupCall
NeedsCleanup indicates an expected call of NeedsCleanup.
type MockPrecheckBackendModelCall ¶
MockPrecheckBackendModelCall wrap *gomock.Call
func (*MockPrecheckBackendModelCall) Do ¶
func (c *MockPrecheckBackendModelCall) Do(f func() (migration.PrecheckModel, error)) *MockPrecheckBackendModelCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendModelCall) DoAndReturn ¶
func (c *MockPrecheckBackendModelCall) DoAndReturn(f func() (migration.PrecheckModel, error)) *MockPrecheckBackendModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendModelCall) Return ¶
func (c *MockPrecheckBackendModelCall) Return(arg0 migration.PrecheckModel, arg1 error) *MockPrecheckBackendModelCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendMongoCurrentStatusCall ¶
MockPrecheckBackendMongoCurrentStatusCall wrap *gomock.Call
func (*MockPrecheckBackendMongoCurrentStatusCall) Do ¶
func (c *MockPrecheckBackendMongoCurrentStatusCall) Do(f func() (*replicaset.Status, error)) *MockPrecheckBackendMongoCurrentStatusCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendMongoCurrentStatusCall) DoAndReturn ¶
func (c *MockPrecheckBackendMongoCurrentStatusCall) DoAndReturn(f func() (*replicaset.Status, error)) *MockPrecheckBackendMongoCurrentStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendMongoCurrentStatusCall) Return ¶
func (c *MockPrecheckBackendMongoCurrentStatusCall) Return(arg0 *replicaset.Status, arg1 error) *MockPrecheckBackendMongoCurrentStatusCall
Return rewrite *gomock.Call.Return
type MockPrecheckBackendNeedsCleanupCall ¶
MockPrecheckBackendNeedsCleanupCall wrap *gomock.Call
func (*MockPrecheckBackendNeedsCleanupCall) Do ¶
func (c *MockPrecheckBackendNeedsCleanupCall) Do(f func() (bool, error)) *MockPrecheckBackendNeedsCleanupCall
Do rewrite *gomock.Call.Do
func (*MockPrecheckBackendNeedsCleanupCall) DoAndReturn ¶
func (c *MockPrecheckBackendNeedsCleanupCall) DoAndReturn(f func() (bool, error)) *MockPrecheckBackendNeedsCleanupCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrecheckBackendNeedsCleanupCall) Return ¶
func (c *MockPrecheckBackendNeedsCleanupCall) Return(arg0 bool, arg1 error) *MockPrecheckBackendNeedsCleanupCall
Return rewrite *gomock.Call.Return
type MockUpgradeService ¶
type MockUpgradeService struct {
// contains filtered or unexported fields
}
MockUpgradeService is a mock of UpgradeService interface.
func NewMockUpgradeService ¶
func NewMockUpgradeService(ctrl *gomock.Controller) *MockUpgradeService
NewMockUpgradeService creates a new mock instance.
func (*MockUpgradeService) EXPECT ¶
func (m *MockUpgradeService) EXPECT() *MockUpgradeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpgradeService) IsUpgrading ¶
func (m *MockUpgradeService) IsUpgrading(arg0 context.Context) (bool, error)
IsUpgrading mocks base method.
type MockUpgradeServiceIsUpgradingCall ¶
MockUpgradeServiceIsUpgradingCall wrap *gomock.Call
func (*MockUpgradeServiceIsUpgradingCall) Do ¶
func (c *MockUpgradeServiceIsUpgradingCall) Do(f func(context.Context) (bool, error)) *MockUpgradeServiceIsUpgradingCall
Do rewrite *gomock.Call.Do
func (*MockUpgradeServiceIsUpgradingCall) DoAndReturn ¶
func (c *MockUpgradeServiceIsUpgradingCall) DoAndReturn(f func(context.Context) (bool, error)) *MockUpgradeServiceIsUpgradingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUpgradeServiceIsUpgradingCall) Return ¶
func (c *MockUpgradeServiceIsUpgradingCall) Return(arg0 bool, arg1 error) *MockUpgradeServiceIsUpgradingCall
Return rewrite *gomock.Call.Return
type MockUpgradeServiceMockRecorder ¶
type MockUpgradeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUpgradeServiceMockRecorder is the mock recorder for MockUpgradeService.
func (*MockUpgradeServiceMockRecorder) IsUpgrading ¶
func (mr *MockUpgradeServiceMockRecorder) IsUpgrading(arg0 any) *MockUpgradeServiceIsUpgradingCall
IsUpgrading indicates an expected call of IsUpgrading.