juju: github.com/juju/juju/worker/upgradeseries/mocks Index | Files

package mocks

import "github.com/juju/juju/worker/upgradeseries/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

package_mock.go servicemanager_mock.go

type MockAgentService Uses

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

MockAgentService is a mock of AgentService interface

func NewMockAgentService Uses

func NewMockAgentService(ctrl *gomock.Controller) *MockAgentService

NewMockAgentService creates a new mock instance

func (*MockAgentService) EXPECT Uses

func (m *MockAgentService) EXPECT() *MockAgentServiceMockRecorder

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

func (*MockAgentService) Running Uses

func (m *MockAgentService) Running() (bool, error)

Running mocks base method

func (*MockAgentService) Start Uses

func (m *MockAgentService) Start() error

Start mocks base method

func (*MockAgentService) Stop Uses

func (m *MockAgentService) Stop() error

Stop mocks base method

type MockAgentServiceMockRecorder Uses

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

MockAgentServiceMockRecorder is the mock recorder for MockAgentService

func (*MockAgentServiceMockRecorder) Running Uses

func (mr *MockAgentServiceMockRecorder) Running() *gomock.Call

Running indicates an expected call of Running

func (*MockAgentServiceMockRecorder) Start Uses

func (mr *MockAgentServiceMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockAgentServiceMockRecorder) Stop Uses

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

Stop indicates an expected call of Stop

type MockFacade Uses

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

MockFacade is a mock of Facade interface

func NewMockFacade Uses

func NewMockFacade(ctrl *gomock.Controller) *MockFacade

NewMockFacade creates a new mock instance

func (*MockFacade) EXPECT Uses

func (m *MockFacade) EXPECT() *MockFacadeMockRecorder

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

func (*MockFacade) FinishUpgradeSeries Uses

func (m *MockFacade) FinishUpgradeSeries(arg0 string) error

FinishUpgradeSeries mocks base method

func (*MockFacade) MachineStatus Uses

func (m *MockFacade) MachineStatus() (model.UpgradeSeriesStatus, error)

MachineStatus mocks base method

func (*MockFacade) PinMachineApplications Uses

func (m *MockFacade) PinMachineApplications() (map[string]error, error)

PinMachineApplications mocks base method

func (*MockFacade) SetMachineStatus Uses

func (m *MockFacade) SetMachineStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error

SetMachineStatus mocks base method

func (*MockFacade) StartUnitCompletion Uses

func (m *MockFacade) StartUnitCompletion(arg0 string) error

StartUnitCompletion mocks base method

func (*MockFacade) TargetSeries Uses

func (m *MockFacade) TargetSeries() (string, error)

TargetSeries mocks base method

func (*MockFacade) UnitsCompleted Uses

func (m *MockFacade) UnitsCompleted() ([]names_v3.UnitTag, error)

UnitsCompleted mocks base method

func (*MockFacade) UnitsPrepared Uses

func (m *MockFacade) UnitsPrepared() ([]names_v3.UnitTag, error)

UnitsPrepared mocks base method

func (*MockFacade) UnpinMachineApplications Uses

func (m *MockFacade) UnpinMachineApplications() (map[string]error, error)

UnpinMachineApplications mocks base method

func (*MockFacade) WatchUpgradeSeriesNotifications Uses

func (m *MockFacade) WatchUpgradeSeriesNotifications() (watcher.NotifyWatcher, error)

WatchUpgradeSeriesNotifications mocks base method

type MockFacadeMockRecorder Uses

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

MockFacadeMockRecorder is the mock recorder for MockFacade

func (*MockFacadeMockRecorder) FinishUpgradeSeries Uses

func (mr *MockFacadeMockRecorder) FinishUpgradeSeries(arg0 interface{}) *gomock.Call

FinishUpgradeSeries indicates an expected call of FinishUpgradeSeries

func (*MockFacadeMockRecorder) MachineStatus Uses

func (mr *MockFacadeMockRecorder) MachineStatus() *gomock.Call

MachineStatus indicates an expected call of MachineStatus

func (*MockFacadeMockRecorder) PinMachineApplications Uses

func (mr *MockFacadeMockRecorder) PinMachineApplications() *gomock.Call

PinMachineApplications indicates an expected call of PinMachineApplications

func (*MockFacadeMockRecorder) SetMachineStatus Uses

func (mr *MockFacadeMockRecorder) SetMachineStatus(arg0, arg1 interface{}) *gomock.Call

SetMachineStatus indicates an expected call of SetMachineStatus

func (*MockFacadeMockRecorder) StartUnitCompletion Uses

func (mr *MockFacadeMockRecorder) StartUnitCompletion(arg0 interface{}) *gomock.Call

StartUnitCompletion indicates an expected call of StartUnitCompletion

func (*MockFacadeMockRecorder) TargetSeries Uses

func (mr *MockFacadeMockRecorder) TargetSeries() *gomock.Call

TargetSeries indicates an expected call of TargetSeries

func (*MockFacadeMockRecorder) UnitsCompleted Uses

func (mr *MockFacadeMockRecorder) UnitsCompleted() *gomock.Call

UnitsCompleted indicates an expected call of UnitsCompleted

func (*MockFacadeMockRecorder) UnitsPrepared Uses

func (mr *MockFacadeMockRecorder) UnitsPrepared() *gomock.Call

UnitsPrepared indicates an expected call of UnitsPrepared

func (*MockFacadeMockRecorder) UnpinMachineApplications Uses

func (mr *MockFacadeMockRecorder) UnpinMachineApplications() *gomock.Call

UnpinMachineApplications indicates an expected call of UnpinMachineApplications

func (*MockFacadeMockRecorder) WatchUpgradeSeriesNotifications Uses

func (mr *MockFacadeMockRecorder) WatchUpgradeSeriesNotifications() *gomock.Call

WatchUpgradeSeriesNotifications indicates an expected call of WatchUpgradeSeriesNotifications

type MockLogger Uses

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

MockLogger is a mock of Logger interface

func NewMockLogger Uses

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func (*MockLogger) Debugf Uses

func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{})

Debugf mocks base method

func (*MockLogger) EXPECT Uses

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Errorf Uses

func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})

Errorf mocks base method

func (*MockLogger) Infof Uses

func (m *MockLogger) Infof(arg0 string, arg1 ...interface{})

Infof mocks base method

func (*MockLogger) Warningf Uses

func (m *MockLogger) Warningf(arg0 string, arg1 ...interface{})

Warningf mocks base method

type MockLoggerMockRecorder Uses

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

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Debugf Uses

func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf

func (*MockLoggerMockRecorder) Errorf Uses

func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf

func (*MockLoggerMockRecorder) Infof Uses

func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Infof indicates an expected call of Infof

func (*MockLoggerMockRecorder) Warningf Uses

func (mr *MockLoggerMockRecorder) Warningf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Warningf indicates an expected call of Warningf

type MockServiceAccess Uses

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

MockServiceAccess is a mock of ServiceAccess interface

func NewMockServiceAccess Uses

func NewMockServiceAccess(ctrl *gomock.Controller) *MockServiceAccess

NewMockServiceAccess creates a new mock instance

func (*MockServiceAccess) DiscoverService Uses

func (m *MockServiceAccess) DiscoverService(arg0 string) (upgradeseries.AgentService, error)

DiscoverService mocks base method

func (*MockServiceAccess) EXPECT Uses

func (m *MockServiceAccess) EXPECT() *MockServiceAccessMockRecorder

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

func (*MockServiceAccess) ListServices Uses

func (m *MockServiceAccess) ListServices() ([]string, error)

ListServices mocks base method

type MockServiceAccessMockRecorder Uses

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

MockServiceAccessMockRecorder is the mock recorder for MockServiceAccess

func (*MockServiceAccessMockRecorder) DiscoverService Uses

func (mr *MockServiceAccessMockRecorder) DiscoverService(arg0 interface{}) *gomock.Call

DiscoverService indicates an expected call of DiscoverService

func (*MockServiceAccessMockRecorder) ListServices Uses

func (mr *MockServiceAccessMockRecorder) ListServices() *gomock.Call

ListServices indicates an expected call of ListServices

type MockSystemdServiceManager Uses

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

MockSystemdServiceManager is a mock of SystemdServiceManager interface

func NewMockSystemdServiceManager Uses

func NewMockSystemdServiceManager(ctrl *gomock.Controller) *MockSystemdServiceManager

NewMockSystemdServiceManager creates a new mock instance

func (*MockSystemdServiceManager) CopyAgentBinary Uses

func (m *MockSystemdServiceManager) CopyAgentBinary(arg0 string, arg1 []string, arg2, arg3, arg4 string, arg5 version.Number) error

CopyAgentBinary mocks base method

func (*MockSystemdServiceManager) CreateAgentConf Uses

func (m *MockSystemdServiceManager) CreateAgentConf(arg0, arg1 string) (common.Conf, error)

CreateAgentConf mocks base method

func (*MockSystemdServiceManager) EXPECT Uses

func (m *MockSystemdServiceManager) EXPECT() *MockSystemdServiceManagerMockRecorder

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

func (*MockSystemdServiceManager) FindAgents Uses

func (m *MockSystemdServiceManager) FindAgents(arg0 string) (string, []string, []string, error)

FindAgents mocks base method

func (*MockSystemdServiceManager) StartAllAgents Uses

func (m *MockSystemdServiceManager) StartAllAgents(arg0 string, arg1 []string, arg2 string) (string, []string, error)

StartAllAgents mocks base method

func (*MockSystemdServiceManager) WriteServiceFiles Uses

func (m *MockSystemdServiceManager) WriteServiceFiles() error

WriteServiceFiles mocks base method

func (*MockSystemdServiceManager) WriteSystemdAgents Uses

func (m *MockSystemdServiceManager) WriteSystemdAgents(arg0 string, arg1 []string, arg2, arg3, arg4 string) ([]string, []string, []string, error)

WriteSystemdAgents mocks base method

type MockSystemdServiceManagerMockRecorder Uses

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

MockSystemdServiceManagerMockRecorder is the mock recorder for MockSystemdServiceManager

func (*MockSystemdServiceManagerMockRecorder) CopyAgentBinary Uses

func (mr *MockSystemdServiceManagerMockRecorder) CopyAgentBinary(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CopyAgentBinary indicates an expected call of CopyAgentBinary

func (*MockSystemdServiceManagerMockRecorder) CreateAgentConf Uses

func (mr *MockSystemdServiceManagerMockRecorder) CreateAgentConf(arg0, arg1 interface{}) *gomock.Call

CreateAgentConf indicates an expected call of CreateAgentConf

func (*MockSystemdServiceManagerMockRecorder) FindAgents Uses

func (mr *MockSystemdServiceManagerMockRecorder) FindAgents(arg0 interface{}) *gomock.Call

FindAgents indicates an expected call of FindAgents

func (*MockSystemdServiceManagerMockRecorder) StartAllAgents Uses

func (mr *MockSystemdServiceManagerMockRecorder) StartAllAgents(arg0, arg1, arg2 interface{}) *gomock.Call

StartAllAgents indicates an expected call of StartAllAgents

func (*MockSystemdServiceManagerMockRecorder) WriteServiceFiles Uses

func (mr *MockSystemdServiceManagerMockRecorder) WriteServiceFiles() *gomock.Call

WriteServiceFiles indicates an expected call of WriteServiceFiles

func (*MockSystemdServiceManagerMockRecorder) WriteSystemdAgents Uses

func (mr *MockSystemdServiceManagerMockRecorder) WriteSystemdAgents(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

WriteSystemdAgents indicates an expected call of WriteSystemdAgents

type MockUpgrader Uses

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

MockUpgrader is a mock of Upgrader interface

func NewMockUpgrader Uses

func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader

NewMockUpgrader creates a new mock instance

func (*MockUpgrader) EXPECT Uses

func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder

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

func (*MockUpgrader) PerformUpgrade Uses

func (m *MockUpgrader) PerformUpgrade() error

PerformUpgrade mocks base method

type MockUpgraderMockRecorder Uses

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

MockUpgraderMockRecorder is the mock recorder for MockUpgrader

func (*MockUpgraderMockRecorder) PerformUpgrade Uses

func (mr *MockUpgraderMockRecorder) PerformUpgrade() *gomock.Call

PerformUpgrade indicates an expected call of PerformUpgrade

Package mocks imports 8 packages (graph). Updated 2019-08-26. Refresh now. Tools for package owners.