mocks

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 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) 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() (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) ControllerConfig

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

ControllerConfig indicates an expected call of ControllerConfig

func (*MockBackendMockRecorder) Export

func (mr *MockBackendMockRecorder) Export() *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 MockExternalController

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

MockExternalController is a mock of ExternalController interface

func NewMockExternalController

func NewMockExternalController(ctrl *gomock.Controller) *MockExternalController

NewMockExternalController creates a new mock instance

func (*MockExternalController) ControllerInfo

func (m *MockExternalController) ControllerInfo() crossmodel.ControllerInfo

ControllerInfo mocks base method

func (*MockExternalController) EXPECT

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

func (*MockExternalController) Id

Id mocks base method

type MockExternalControllerMockRecorder

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

MockExternalControllerMockRecorder is the mock recorder for MockExternalController

func (*MockExternalControllerMockRecorder) ControllerInfo

func (mr *MockExternalControllerMockRecorder) ControllerInfo() *gomock.Call

ControllerInfo indicates an expected call of ControllerInfo

func (*MockExternalControllerMockRecorder) Id

Id indicates an expected call of Id

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 interface{}) *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 interface{}) *gomock.Call

SetPhase indicates an expected call of SetPhase

func (*MockModelMigrationMockRecorder) SetStatusMessage

func (mr *MockModelMigrationMockRecorder) SetStatusMessage(arg0 interface{}) *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 interface{}) *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 MockOfferConnection

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

MockOfferConnection is a mock of OfferConnection interface

func NewMockOfferConnection

func NewMockOfferConnection(ctrl *gomock.Controller) *MockOfferConnection

NewMockOfferConnection creates a new mock instance

func (*MockOfferConnection) EXPECT

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

func (*MockOfferConnection) OfferUUID

func (m *MockOfferConnection) OfferUUID() string

OfferUUID mocks base method

func (*MockOfferConnection) RelationId

func (m *MockOfferConnection) RelationId() int

RelationId mocks base method

func (*MockOfferConnection) RelationKey

func (m *MockOfferConnection) RelationKey() string

RelationKey mocks base method

func (*MockOfferConnection) SourceModelUUID

func (m *MockOfferConnection) SourceModelUUID() string

SourceModelUUID mocks base method

func (*MockOfferConnection) UserName

func (m *MockOfferConnection) UserName() string

UserName mocks base method

type MockOfferConnectionMockRecorder

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

MockOfferConnectionMockRecorder is the mock recorder for MockOfferConnection

func (*MockOfferConnectionMockRecorder) OfferUUID

func (mr *MockOfferConnectionMockRecorder) OfferUUID() *gomock.Call

OfferUUID indicates an expected call of OfferUUID

func (*MockOfferConnectionMockRecorder) RelationId

func (mr *MockOfferConnectionMockRecorder) RelationId() *gomock.Call

RelationId indicates an expected call of RelationId

func (*MockOfferConnectionMockRecorder) RelationKey

func (mr *MockOfferConnectionMockRecorder) RelationKey() *gomock.Call

RelationKey indicates an expected call of RelationKey

func (*MockOfferConnectionMockRecorder) SourceModelUUID

func (mr *MockOfferConnectionMockRecorder) SourceModelUUID() *gomock.Call

SourceModelUUID indicates an expected call of SourceModelUUID

func (*MockOfferConnectionMockRecorder) UserName

UserName indicates an expected call of UserName

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

func (m *MockPrecheckBackend) ListPendingResources(arg0 string) ([]resource.Resource, error)

ListPendingResources mocks base method

func (*MockPrecheckBackend) Model

Model 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) 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 interface{}) *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) IsMigrationActive

func (mr *MockPrecheckBackendMockRecorder) IsMigrationActive(arg0 interface{}) *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) ListPendingResources

func (mr *MockPrecheckBackendMockRecorder) ListPendingResources(arg0 interface{}) *gomock.Call

ListPendingResources indicates an expected call of ListPendingResources

func (*MockPrecheckBackendMockRecorder) Model

Model indicates an expected call of Model

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