mocks

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

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

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

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *MockBackend) AgentVersion() (version.Number, error)

AgentVersion mocks base method.

func (*MockBackend) AllLocalRelatedModels

func (m *MockBackend) AllLocalRelatedModels() ([]string, error)

AllLocalRelatedModels mocks base method.

func (*MockBackend) ControllerConfig

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

ControllerConfig 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) (description.Model, error)

Export mocks base method.

func (*MockBackend) LatestMigration

func (m *MockBackend) LatestMigration() (state.ModelMigration, error)

LatestMigration mocks base method.

func (*MockBackend) ModelName

func (m *MockBackend) ModelName() (string, error)

ModelName mocks base method.

func (*MockBackend) ModelOwner

func (m *MockBackend) ModelOwner() (names.UserTag, error)

ModelOwner mocks base method.

func (*MockBackend) ModelUUID

func (m *MockBackend) ModelUUID() string

ModelUUID 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 MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AgentVersion

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

AgentVersion indicates an expected call of AgentVersion.

func (*MockBackendMockRecorder) AllLocalRelatedModels

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

AllLocalRelatedModels indicates an expected call of AllLocalRelatedModels.

func (*MockBackendMockRecorder) ControllerConfig

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

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockBackendMockRecorder) Export

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

Export indicates an expected call of Export.

func (*MockBackendMockRecorder) LatestMigration

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

LatestMigration indicates an expected call of LatestMigration.

func (*MockBackendMockRecorder) ModelName

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

ModelName indicates an expected call of ModelName.

func (*MockBackendMockRecorder) ModelOwner

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

ModelOwner indicates an expected call of ModelOwner.

func (*MockBackendMockRecorder) ModelUUID

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

ModelUUID indicates an expected call of ModelUUID.

func (*MockBackendMockRecorder) RemoveExportingModelDocs

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

RemoveExportingModelDocs indicates an expected call of RemoveExportingModelDocs.

func (*MockBackendMockRecorder) WatchForMigration

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

WatchForMigration indicates an expected call of WatchForMigration.

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() ([]network.SpaceHostPorts, error)

APIHostPortsForClients mocks base method.

func (*MockControllerState) EXPECT

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

type MockControllerStateMockRecorder

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

MockControllerStateMockRecorder is the mock recorder for MockControllerState.

func (*MockControllerStateMockRecorder) APIHostPortsForClients

func (mr *MockControllerStateMockRecorder) APIHostPortsForClients() *gomock.Call

APIHostPortsForClients indicates an expected call of APIHostPortsForClients.

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

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

func (m *MockModelMigration) Id() string

Id 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) ModelUserAccess

func (m *MockModelMigration) ModelUserAccess(arg0 names.Tag) permission.Access

ModelUserAccess 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 MockModelMigrationMockRecorder

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

MockModelMigrationMockRecorder is the mock recorder for MockModelMigration.

func (*MockModelMigrationMockRecorder) Attempt

Attempt indicates an expected call of Attempt.

func (*MockModelMigrationMockRecorder) EndTime

EndTime indicates an expected call of EndTime.

func (*MockModelMigrationMockRecorder) Id

Id indicates an expected call of Id.

func (*MockModelMigrationMockRecorder) InitiatedBy

func (mr *MockModelMigrationMockRecorder) InitiatedBy() *gomock.Call

InitiatedBy indicates an expected call of InitiatedBy.

func (*MockModelMigrationMockRecorder) MinionReports

func (mr *MockModelMigrationMockRecorder) MinionReports() *gomock.Call

MinionReports indicates an expected call of MinionReports.

func (*MockModelMigrationMockRecorder) ModelUUID

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

ModelUUID indicates an expected call of ModelUUID.

func (*MockModelMigrationMockRecorder) ModelUserAccess

func (mr *MockModelMigrationMockRecorder) ModelUserAccess(arg0 any) *gomock.Call

ModelUserAccess indicates an expected call of ModelUserAccess.

func (*MockModelMigrationMockRecorder) Phase

Phase indicates an expected call of Phase.

func (*MockModelMigrationMockRecorder) PhaseChangedTime

func (mr *MockModelMigrationMockRecorder) PhaseChangedTime() *gomock.Call

PhaseChangedTime indicates an expected call of PhaseChangedTime.

func (*MockModelMigrationMockRecorder) Refresh

Refresh indicates an expected call of Refresh.

func (*MockModelMigrationMockRecorder) SetPhase

func (mr *MockModelMigrationMockRecorder) SetPhase(arg0 any) *gomock.Call

SetPhase indicates an expected call of SetPhase.

func (*MockModelMigrationMockRecorder) SetStatusMessage

func (mr *MockModelMigrationMockRecorder) SetStatusMessage(arg0 any) *gomock.Call

SetStatusMessage indicates an expected call of SetStatusMessage.

func (*MockModelMigrationMockRecorder) StartTime

func (mr *MockModelMigrationMockRecorder) StartTime() *gomock.Call

StartTime indicates an expected call of StartTime.

func (*MockModelMigrationMockRecorder) StatusMessage

func (mr *MockModelMigrationMockRecorder) StatusMessage() *gomock.Call

StatusMessage indicates an expected call of StatusMessage.

func (*MockModelMigrationMockRecorder) SubmitMinionReport

func (mr *MockModelMigrationMockRecorder) SubmitMinionReport(arg0, arg1, arg2 any) *gomock.Call

SubmitMinionReport indicates an expected call of SubmitMinionReport.

func (*MockModelMigrationMockRecorder) SuccessTime

func (mr *MockModelMigrationMockRecorder) SuccessTime() *gomock.Call

SuccessTime indicates an expected call of SuccessTime.

func (*MockModelMigrationMockRecorder) TargetInfo

func (mr *MockModelMigrationMockRecorder) TargetInfo() *gomock.Call

TargetInfo indicates an expected call of TargetInfo.

func (*MockModelMigrationMockRecorder) WatchMinionReports

func (mr *MockModelMigrationMockRecorder) WatchMinionReports() *gomock.Call

WatchMinionReports indicates an expected call of WatchMinionReports.

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

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

func (*MockNotifyWatcher) Err

func (m *MockNotifyWatcher) Err() error

Err mocks base method.

func (*MockNotifyWatcher) Kill

func (m *MockNotifyWatcher) Kill()

Kill mocks base method.

func (*MockNotifyWatcher) Stop

func (m *MockNotifyWatcher) Stop() error

Stop mocks base method.

func (*MockNotifyWatcher) Wait

func (m *MockNotifyWatcher) Wait() error

Wait mocks base method.

type MockNotifyWatcherMockRecorder

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

MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher.

func (*MockNotifyWatcherMockRecorder) Changes

func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call

Changes indicates an expected call of Changes.

func (*MockNotifyWatcherMockRecorder) Err

Err indicates an expected call of Err.

func (*MockNotifyWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockNotifyWatcherMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockNotifyWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

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

func (m *MockPrecheckBackend) AgentVersion() (version.Number, error)

AgentVersion mocks base method.

func (*MockPrecheckBackend) AllApplications

func (m *MockPrecheckBackend) AllApplications() ([]migration.PrecheckApplication, error)

AllApplications mocks base method.

func (*MockPrecheckBackend) AllCharmURLs

func (m *MockPrecheckBackend) AllCharmURLs() ([]*string, error)

AllCharmURLs mocks base method.

func (*MockPrecheckBackend) AllMachines

func (m *MockPrecheckBackend) AllMachines() ([]migration.PrecheckMachine, error)

AllMachines 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) CloudCredential

func (m *MockPrecheckBackend) CloudCredential(arg0 names.CloudCredentialTag) (state.Credential, error)

CloudCredential mocks base method.

func (*MockPrecheckBackend) ControllerBackend

func (m *MockPrecheckBackend) ControllerBackend() (migration.PrecheckBackend, error)

ControllerBackend mocks base method.

func (*MockPrecheckBackend) EXPECT

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

func (*MockPrecheckBackend) HasUpgradeSeriesLocks

func (m *MockPrecheckBackend) HasUpgradeSeriesLocks() (bool, error)

HasUpgradeSeriesLocks mocks base method.

func (*MockPrecheckBackend) IsMigrationActive

func (m *MockPrecheckBackend) IsMigrationActive(arg0 string) (bool, error)

IsMigrationActive mocks base method.

func (*MockPrecheckBackend) IsUpgrading

func (m *MockPrecheckBackend) IsUpgrading() (bool, error)

IsUpgrading mocks base method.

func (*MockPrecheckBackend) MachineCountForBase

func (m *MockPrecheckBackend) MachineCountForBase(arg0 ...state.Base) (map[string]int, error)

MachineCountForBase mocks base method.

func (*MockPrecheckBackend) Model

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 MockPrecheckBackendMockRecorder

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

MockPrecheckBackendMockRecorder is the mock recorder for MockPrecheckBackend.

func (*MockPrecheckBackendMockRecorder) AgentVersion

func (mr *MockPrecheckBackendMockRecorder) AgentVersion() *gomock.Call

AgentVersion indicates an expected call of AgentVersion.

func (*MockPrecheckBackendMockRecorder) AllApplications

func (mr *MockPrecheckBackendMockRecorder) AllApplications() *gomock.Call

AllApplications indicates an expected call of AllApplications.

func (*MockPrecheckBackendMockRecorder) AllCharmURLs

func (mr *MockPrecheckBackendMockRecorder) AllCharmURLs() *gomock.Call

AllCharmURLs indicates an expected call of AllCharmURLs.

func (*MockPrecheckBackendMockRecorder) AllMachines

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

AllMachines indicates an expected call of AllMachines.

func (*MockPrecheckBackendMockRecorder) AllModelUUIDs

func (mr *MockPrecheckBackendMockRecorder) AllModelUUIDs() *gomock.Call

AllModelUUIDs indicates an expected call of AllModelUUIDs.

func (*MockPrecheckBackendMockRecorder) AllRelations

func (mr *MockPrecheckBackendMockRecorder) AllRelations() *gomock.Call

AllRelations indicates an expected call of AllRelations.

func (*MockPrecheckBackendMockRecorder) CloudCredential

func (mr *MockPrecheckBackendMockRecorder) CloudCredential(arg0 any) *gomock.Call

CloudCredential indicates an expected call of CloudCredential.

func (*MockPrecheckBackendMockRecorder) ControllerBackend

func (mr *MockPrecheckBackendMockRecorder) ControllerBackend() *gomock.Call

ControllerBackend indicates an expected call of ControllerBackend.

func (*MockPrecheckBackendMockRecorder) HasUpgradeSeriesLocks

func (mr *MockPrecheckBackendMockRecorder) HasUpgradeSeriesLocks() *gomock.Call

HasUpgradeSeriesLocks indicates an expected call of HasUpgradeSeriesLocks.

func (*MockPrecheckBackendMockRecorder) IsMigrationActive

func (mr *MockPrecheckBackendMockRecorder) IsMigrationActive(arg0 any) *gomock.Call

IsMigrationActive indicates an expected call of IsMigrationActive.

func (*MockPrecheckBackendMockRecorder) IsUpgrading

func (mr *MockPrecheckBackendMockRecorder) IsUpgrading() *gomock.Call

IsUpgrading indicates an expected call of IsUpgrading.

func (*MockPrecheckBackendMockRecorder) MachineCountForBase

func (mr *MockPrecheckBackendMockRecorder) MachineCountForBase(arg0 ...any) *gomock.Call

MachineCountForBase indicates an expected call of MachineCountForBase.

func (*MockPrecheckBackendMockRecorder) Model

Model indicates an expected call of Model.

func (*MockPrecheckBackendMockRecorder) MongoCurrentStatus

func (mr *MockPrecheckBackendMockRecorder) MongoCurrentStatus() *gomock.Call

MongoCurrentStatus indicates an expected call of MongoCurrentStatus.

func (*MockPrecheckBackendMockRecorder) NeedsCleanup

func (mr *MockPrecheckBackendMockRecorder) NeedsCleanup() *gomock.Call

NeedsCleanup indicates an expected call of NeedsCleanup.

Jump to

Keyboard shortcuts

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