juju: github.com/juju/juju/apiserver/facades/controller/migrationmaster/mocks Index | Files

package mocks

import "github.com/juju/juju/apiserver/facades/controller/migrationmaster/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

backend.go precheckbackend.go state.go

type MockBackend Uses

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

MockBackend is a mock of Backend interface

func NewMockBackend Uses

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance

func (*MockBackend) AgentVersion Uses

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

AgentVersion mocks base method

func (*MockBackend) EXPECT Uses

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) Export Uses

func (m *MockBackend) Export() (description.Model, error)

Export mocks base method

func (*MockBackend) LatestMigration Uses

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

LatestMigration mocks base method

func (*MockBackend) ModelName Uses

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

ModelName mocks base method

func (*MockBackend) ModelOwner Uses

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

ModelOwner mocks base method

func (*MockBackend) ModelUUID Uses

func (m *MockBackend) ModelUUID() string

ModelUUID mocks base method

func (*MockBackend) RemoveExportingModelDocs Uses

func (m *MockBackend) RemoveExportingModelDocs() error

RemoveExportingModelDocs mocks base method

func (*MockBackend) WatchForMigration Uses

func (m *MockBackend) WatchForMigration() state.NotifyWatcher

WatchForMigration mocks base method

type MockBackendMockRecorder Uses

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

MockBackendMockRecorder is the mock recorder for MockBackend

func (*MockBackendMockRecorder) AgentVersion Uses

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

AgentVersion indicates an expected call of AgentVersion

func (*MockBackendMockRecorder) Export Uses

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

Export indicates an expected call of Export

func (*MockBackendMockRecorder) LatestMigration Uses

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

LatestMigration indicates an expected call of LatestMigration

func (*MockBackendMockRecorder) ModelName Uses

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

ModelName indicates an expected call of ModelName

func (*MockBackendMockRecorder) ModelOwner Uses

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

ModelOwner indicates an expected call of ModelOwner

func (*MockBackendMockRecorder) ModelUUID Uses

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

ModelUUID indicates an expected call of ModelUUID

func (*MockBackendMockRecorder) RemoveExportingModelDocs Uses

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

RemoveExportingModelDocs indicates an expected call of RemoveExportingModelDocs

func (*MockBackendMockRecorder) WatchForMigration Uses

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

WatchForMigration indicates an expected call of WatchForMigration

type MockExternalController Uses

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

MockExternalController is a mock of ExternalController interface

func NewMockExternalController Uses

func NewMockExternalController(ctrl *gomock.Controller) *MockExternalController

NewMockExternalController creates a new mock instance

func (*MockExternalController) ControllerInfo Uses

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

ControllerInfo mocks base method

func (*MockExternalController) EXPECT Uses

func (m *MockExternalController) EXPECT() *MockExternalControllerMockRecorder

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

func (*MockExternalController) Id Uses

func (m *MockExternalController) Id() string

Id mocks base method

type MockExternalControllerMockRecorder Uses

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

MockExternalControllerMockRecorder is the mock recorder for MockExternalController

func (*MockExternalControllerMockRecorder) ControllerInfo Uses

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

ControllerInfo indicates an expected call of ControllerInfo

func (*MockExternalControllerMockRecorder) Id Uses

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

Id indicates an expected call of Id

type MockModelMigration Uses

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

MockModelMigration is a mock of ModelMigration interface

func NewMockModelMigration Uses

func NewMockModelMigration(ctrl *gomock.Controller) *MockModelMigration

NewMockModelMigration creates a new mock instance

func (*MockModelMigration) Attempt Uses

func (m *MockModelMigration) Attempt() int

Attempt mocks base method

func (*MockModelMigration) EXPECT Uses

func (m *MockModelMigration) EXPECT() *MockModelMigrationMockRecorder

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

func (*MockModelMigration) EndTime Uses

func (m *MockModelMigration) EndTime() time.Time

EndTime mocks base method

func (*MockModelMigration) Id Uses

func (m *MockModelMigration) Id() string

Id mocks base method

func (*MockModelMigration) InitiatedBy Uses

func (m *MockModelMigration) InitiatedBy() string

InitiatedBy mocks base method

func (*MockModelMigration) MinionReports Uses

func (m *MockModelMigration) MinionReports() (*state.MinionReports, error)

MinionReports mocks base method

func (*MockModelMigration) ModelUUID Uses

func (m *MockModelMigration) ModelUUID() string

ModelUUID mocks base method

func (*MockModelMigration) ModelUserAccess Uses

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

ModelUserAccess mocks base method

func (*MockModelMigration) Phase Uses

func (m *MockModelMigration) Phase() (migration.Phase, error)

Phase mocks base method

func (*MockModelMigration) PhaseChangedTime Uses

func (m *MockModelMigration) PhaseChangedTime() time.Time

PhaseChangedTime mocks base method

func (*MockModelMigration) Refresh Uses

func (m *MockModelMigration) Refresh() error

Refresh mocks base method

func (*MockModelMigration) SetPhase Uses

func (m *MockModelMigration) SetPhase(arg0 migration.Phase) error

SetPhase mocks base method

func (*MockModelMigration) SetStatusMessage Uses

func (m *MockModelMigration) SetStatusMessage(arg0 string) error

SetStatusMessage mocks base method

func (*MockModelMigration) StartTime Uses

func (m *MockModelMigration) StartTime() time.Time

StartTime mocks base method

func (*MockModelMigration) StatusMessage Uses

func (m *MockModelMigration) StatusMessage() string

StatusMessage mocks base method

func (*MockModelMigration) SubmitMinionReport Uses

func (m *MockModelMigration) SubmitMinionReport(arg0 names.Tag, arg1 migration.Phase, arg2 bool) error

SubmitMinionReport mocks base method

func (*MockModelMigration) SuccessTime Uses

func (m *MockModelMigration) SuccessTime() time.Time

SuccessTime mocks base method

func (*MockModelMigration) TargetInfo Uses

func (m *MockModelMigration) TargetInfo() (*migration.TargetInfo, error)

TargetInfo mocks base method

func (*MockModelMigration) WatchMinionReports Uses

func (m *MockModelMigration) WatchMinionReports() (state.NotifyWatcher, error)

WatchMinionReports mocks base method

type MockModelMigrationMockRecorder Uses

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

MockModelMigrationMockRecorder is the mock recorder for MockModelMigration

func (*MockModelMigrationMockRecorder) Attempt Uses

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

Attempt indicates an expected call of Attempt

func (*MockModelMigrationMockRecorder) EndTime Uses

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

EndTime indicates an expected call of EndTime

func (*MockModelMigrationMockRecorder) Id Uses

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

Id indicates an expected call of Id

func (*MockModelMigrationMockRecorder) InitiatedBy Uses

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

InitiatedBy indicates an expected call of InitiatedBy

func (*MockModelMigrationMockRecorder) MinionReports Uses

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

MinionReports indicates an expected call of MinionReports

func (*MockModelMigrationMockRecorder) ModelUUID Uses

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

ModelUUID indicates an expected call of ModelUUID

func (*MockModelMigrationMockRecorder) ModelUserAccess Uses

func (mr *MockModelMigrationMockRecorder) ModelUserAccess(arg0 interface{}) *gomock.Call

ModelUserAccess indicates an expected call of ModelUserAccess

func (*MockModelMigrationMockRecorder) Phase Uses

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

Phase indicates an expected call of Phase

func (*MockModelMigrationMockRecorder) PhaseChangedTime Uses

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

PhaseChangedTime indicates an expected call of PhaseChangedTime

func (*MockModelMigrationMockRecorder) Refresh Uses

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

Refresh indicates an expected call of Refresh

func (*MockModelMigrationMockRecorder) SetPhase Uses

func (mr *MockModelMigrationMockRecorder) SetPhase(arg0 interface{}) *gomock.Call

SetPhase indicates an expected call of SetPhase

func (*MockModelMigrationMockRecorder) SetStatusMessage Uses

func (mr *MockModelMigrationMockRecorder) SetStatusMessage(arg0 interface{}) *gomock.Call

SetStatusMessage indicates an expected call of SetStatusMessage

func (*MockModelMigrationMockRecorder) StartTime Uses

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

StartTime indicates an expected call of StartTime

func (*MockModelMigrationMockRecorder) StatusMessage Uses

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

StatusMessage indicates an expected call of StatusMessage

func (*MockModelMigrationMockRecorder) SubmitMinionReport Uses

func (mr *MockModelMigrationMockRecorder) SubmitMinionReport(arg0, arg1, arg2 interface{}) *gomock.Call

SubmitMinionReport indicates an expected call of SubmitMinionReport

func (*MockModelMigrationMockRecorder) SuccessTime Uses

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

SuccessTime indicates an expected call of SuccessTime

func (*MockModelMigrationMockRecorder) TargetInfo Uses

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

TargetInfo indicates an expected call of TargetInfo

func (*MockModelMigrationMockRecorder) WatchMinionReports Uses

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

WatchMinionReports indicates an expected call of WatchMinionReports

type MockNotifyWatcher Uses

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

MockNotifyWatcher is a mock of NotifyWatcher interface

func NewMockNotifyWatcher Uses

func NewMockNotifyWatcher(ctrl *gomock.Controller) *MockNotifyWatcher

NewMockNotifyWatcher creates a new mock instance

func (*MockNotifyWatcher) Changes Uses

func (m *MockNotifyWatcher) Changes() <-chan struct{}

Changes mocks base method

func (*MockNotifyWatcher) EXPECT Uses

func (m *MockNotifyWatcher) EXPECT() *MockNotifyWatcherMockRecorder

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

func (*MockNotifyWatcher) Err Uses

func (m *MockNotifyWatcher) Err() error

Err mocks base method

func (*MockNotifyWatcher) Kill Uses

func (m *MockNotifyWatcher) Kill()

Kill mocks base method

func (*MockNotifyWatcher) Stop Uses

func (m *MockNotifyWatcher) Stop() error

Stop mocks base method

func (*MockNotifyWatcher) Wait Uses

func (m *MockNotifyWatcher) Wait() error

Wait mocks base method

type MockNotifyWatcherMockRecorder Uses

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

MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher

func (*MockNotifyWatcherMockRecorder) Changes Uses

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

Changes indicates an expected call of Changes

func (*MockNotifyWatcherMockRecorder) Err Uses

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

Err indicates an expected call of Err

func (*MockNotifyWatcherMockRecorder) Kill Uses

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

Kill indicates an expected call of Kill

func (*MockNotifyWatcherMockRecorder) Stop Uses

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

Stop indicates an expected call of Stop

func (*MockNotifyWatcherMockRecorder) Wait Uses

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

Wait indicates an expected call of Wait

type MockOfferConnection Uses

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

MockOfferConnection is a mock of OfferConnection interface

func NewMockOfferConnection Uses

func NewMockOfferConnection(ctrl *gomock.Controller) *MockOfferConnection

NewMockOfferConnection creates a new mock instance

func (*MockOfferConnection) EXPECT Uses

func (m *MockOfferConnection) EXPECT() *MockOfferConnectionMockRecorder

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

func (*MockOfferConnection) OfferUUID Uses

func (m *MockOfferConnection) OfferUUID() string

OfferUUID mocks base method

func (*MockOfferConnection) RelationId Uses

func (m *MockOfferConnection) RelationId() int

RelationId mocks base method

func (*MockOfferConnection) RelationKey Uses

func (m *MockOfferConnection) RelationKey() string

RelationKey mocks base method

func (*MockOfferConnection) SourceModelUUID Uses

func (m *MockOfferConnection) SourceModelUUID() string

SourceModelUUID mocks base method

func (*MockOfferConnection) UserName Uses

func (m *MockOfferConnection) UserName() string

UserName mocks base method

type MockOfferConnectionMockRecorder Uses

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

MockOfferConnectionMockRecorder is the mock recorder for MockOfferConnection

func (*MockOfferConnectionMockRecorder) OfferUUID Uses

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

OfferUUID indicates an expected call of OfferUUID

func (*MockOfferConnectionMockRecorder) RelationId Uses

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

RelationId indicates an expected call of RelationId

func (*MockOfferConnectionMockRecorder) RelationKey Uses

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

RelationKey indicates an expected call of RelationKey

func (*MockOfferConnectionMockRecorder) SourceModelUUID Uses

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

SourceModelUUID indicates an expected call of SourceModelUUID

func (*MockOfferConnectionMockRecorder) UserName Uses

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

UserName indicates an expected call of UserName

type MockPrecheckBackend Uses

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

MockPrecheckBackend is a mock of PrecheckBackend interface

func NewMockPrecheckBackend Uses

func NewMockPrecheckBackend(ctrl *gomock.Controller) *MockPrecheckBackend

NewMockPrecheckBackend creates a new mock instance

func (*MockPrecheckBackend) AgentVersion Uses

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

AgentVersion mocks base method

func (*MockPrecheckBackend) AllApplications Uses

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

AllApplications mocks base method

func (*MockPrecheckBackend) AllMachines Uses

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

AllMachines mocks base method

func (*MockPrecheckBackend) AllModelUUIDs Uses

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

AllModelUUIDs mocks base method

func (*MockPrecheckBackend) AllRelations Uses

func (m *MockPrecheckBackend) AllRelations() ([]migration.PrecheckRelation, error)

AllRelations mocks base method

func (*MockPrecheckBackend) CloudCredential Uses

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

CloudCredential mocks base method

func (*MockPrecheckBackend) ControllerBackend Uses

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

ControllerBackend mocks base method

func (*MockPrecheckBackend) EXPECT Uses

func (m *MockPrecheckBackend) EXPECT() *MockPrecheckBackendMockRecorder

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

func (*MockPrecheckBackend) IsMigrationActive Uses

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

IsMigrationActive mocks base method

func (*MockPrecheckBackend) IsUpgrading Uses

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

IsUpgrading mocks base method

func (*MockPrecheckBackend) ListPendingResources Uses

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

ListPendingResources mocks base method

func (*MockPrecheckBackend) Model Uses

func (m *MockPrecheckBackend) Model() (migration.PrecheckModel, error)

Model mocks base method

func (*MockPrecheckBackend) NeedsCleanup Uses

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

NeedsCleanup mocks base method

type MockPrecheckBackendMockRecorder Uses

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

MockPrecheckBackendMockRecorder is the mock recorder for MockPrecheckBackend

func (*MockPrecheckBackendMockRecorder) AgentVersion Uses

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

AgentVersion indicates an expected call of AgentVersion

func (*MockPrecheckBackendMockRecorder) AllApplications Uses

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

AllApplications indicates an expected call of AllApplications

func (*MockPrecheckBackendMockRecorder) AllMachines Uses

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

AllMachines indicates an expected call of AllMachines

func (*MockPrecheckBackendMockRecorder) AllModelUUIDs Uses

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

AllModelUUIDs indicates an expected call of AllModelUUIDs

func (*MockPrecheckBackendMockRecorder) AllRelations Uses

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

AllRelations indicates an expected call of AllRelations

func (*MockPrecheckBackendMockRecorder) CloudCredential Uses

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

CloudCredential indicates an expected call of CloudCredential

func (*MockPrecheckBackendMockRecorder) ControllerBackend Uses

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

ControllerBackend indicates an expected call of ControllerBackend

func (*MockPrecheckBackendMockRecorder) IsMigrationActive Uses

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

IsMigrationActive indicates an expected call of IsMigrationActive

func (*MockPrecheckBackendMockRecorder) IsUpgrading Uses

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

IsUpgrading indicates an expected call of IsUpgrading

func (*MockPrecheckBackendMockRecorder) ListPendingResources Uses

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

ListPendingResources indicates an expected call of ListPendingResources

func (*MockPrecheckBackendMockRecorder) Model Uses

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

Model indicates an expected call of Model

func (*MockPrecheckBackendMockRecorder) NeedsCleanup Uses

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

NeedsCleanup indicates an expected call of NeedsCleanup

Package mocks imports 12 packages (graph). Updated 2020-08-19. Refresh now. Tools for package owners.