mocks

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

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 MockAgentService

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

MockAgentService is a mock of AgentService interface

func NewMockAgentService

func NewMockAgentService(ctrl *gomock.Controller) *MockAgentService

NewMockAgentService creates a new mock instance

func (*MockAgentService) EXPECT

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

func (*MockAgentService) Running

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

Running mocks base method

func (*MockAgentService) Start

func (m *MockAgentService) Start() error

Start mocks base method

func (*MockAgentService) Stop

func (m *MockAgentService) Stop() error

Stop mocks base method

type MockAgentServiceMockRecorder

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

MockAgentServiceMockRecorder is the mock recorder for MockAgentService

func (*MockAgentServiceMockRecorder) Running

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

Running indicates an expected call of Running

func (*MockAgentServiceMockRecorder) Start

Start indicates an expected call of Start

func (*MockAgentServiceMockRecorder) Stop

Stop indicates an expected call of Stop

type MockFacade

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

MockFacade is a mock of Facade interface

func NewMockFacade

func NewMockFacade(ctrl *gomock.Controller) *MockFacade

NewMockFacade creates a new mock instance

func (*MockFacade) EXPECT

func (m *MockFacade) EXPECT() *MockFacadeMockRecorder

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

func (*MockFacade) FinishUpgradeSeries

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

FinishUpgradeSeries mocks base method

func (*MockFacade) MachineStatus

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

MachineStatus mocks base method

func (*MockFacade) PinMachineApplications

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

PinMachineApplications mocks base method

func (*MockFacade) SetMachineStatus

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

SetMachineStatus mocks base method

func (*MockFacade) StartUnitCompletion

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

StartUnitCompletion mocks base method

func (*MockFacade) TargetSeries

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

TargetSeries mocks base method

func (*MockFacade) UnitsCompleted

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

UnitsCompleted mocks base method

func (*MockFacade) UnitsPrepared

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

UnitsPrepared mocks base method

func (*MockFacade) UnpinMachineApplications

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

UnpinMachineApplications mocks base method

func (*MockFacade) WatchUpgradeSeriesNotifications

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

WatchUpgradeSeriesNotifications mocks base method

type MockFacadeMockRecorder

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

MockFacadeMockRecorder is the mock recorder for MockFacade

func (*MockFacadeMockRecorder) FinishUpgradeSeries

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

FinishUpgradeSeries indicates an expected call of FinishUpgradeSeries

func (*MockFacadeMockRecorder) MachineStatus

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

MachineStatus indicates an expected call of MachineStatus

func (*MockFacadeMockRecorder) PinMachineApplications

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

PinMachineApplications indicates an expected call of PinMachineApplications

func (*MockFacadeMockRecorder) SetMachineStatus

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

SetMachineStatus indicates an expected call of SetMachineStatus

func (*MockFacadeMockRecorder) StartUnitCompletion

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

StartUnitCompletion indicates an expected call of StartUnitCompletion

func (*MockFacadeMockRecorder) TargetSeries

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

TargetSeries indicates an expected call of TargetSeries

func (*MockFacadeMockRecorder) UnitsCompleted

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

UnitsCompleted indicates an expected call of UnitsCompleted

func (*MockFacadeMockRecorder) UnitsPrepared

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

UnitsPrepared indicates an expected call of UnitsPrepared

func (*MockFacadeMockRecorder) UnpinMachineApplications

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

UnpinMachineApplications indicates an expected call of UnpinMachineApplications

func (*MockFacadeMockRecorder) WatchUpgradeSeriesNotifications

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

WatchUpgradeSeriesNotifications indicates an expected call of WatchUpgradeSeriesNotifications

type MockLogger

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

MockLogger is a mock of Logger interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func (*MockLogger) Debugf

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

Debugf mocks base method

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Errorf

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

Errorf mocks base method

func (*MockLogger) Infof

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

Infof mocks base method

func (*MockLogger) Warningf

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

Warningf mocks base method

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Debugf

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

Debugf indicates an expected call of Debugf

func (*MockLoggerMockRecorder) Errorf

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

Errorf indicates an expected call of Errorf

func (*MockLoggerMockRecorder) Infof

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

Infof indicates an expected call of Infof

func (*MockLoggerMockRecorder) Warningf

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

Warningf indicates an expected call of Warningf

type MockServiceAccess

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

MockServiceAccess is a mock of ServiceAccess interface

func NewMockServiceAccess

func NewMockServiceAccess(ctrl *gomock.Controller) *MockServiceAccess

NewMockServiceAccess creates a new mock instance

func (*MockServiceAccess) DiscoverService

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

DiscoverService mocks base method

func (*MockServiceAccess) EXPECT

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

func (*MockServiceAccess) ListServices

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

ListServices mocks base method

type MockServiceAccessMockRecorder

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

MockServiceAccessMockRecorder is the mock recorder for MockServiceAccess

func (*MockServiceAccessMockRecorder) DiscoverService

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

DiscoverService indicates an expected call of DiscoverService

func (*MockServiceAccessMockRecorder) ListServices

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

ListServices indicates an expected call of ListServices

type MockSystemdServiceManager

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

MockSystemdServiceManager is a mock of SystemdServiceManager interface

func NewMockSystemdServiceManager

func NewMockSystemdServiceManager(ctrl *gomock.Controller) *MockSystemdServiceManager

NewMockSystemdServiceManager creates a new mock instance

func (*MockSystemdServiceManager) CopyAgentBinary

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

CopyAgentBinary mocks base method

func (*MockSystemdServiceManager) CreateAgentConf

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

CreateAgentConf mocks base method

func (*MockSystemdServiceManager) EXPECT

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

func (*MockSystemdServiceManager) FindAgents

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

FindAgents mocks base method

func (*MockSystemdServiceManager) StartAllAgents

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

StartAllAgents mocks base method

func (*MockSystemdServiceManager) WriteServiceFiles

func (m *MockSystemdServiceManager) WriteServiceFiles() error

WriteServiceFiles mocks base method

func (*MockSystemdServiceManager) WriteSystemdAgents

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

WriteSystemdAgents mocks base method

type MockSystemdServiceManagerMockRecorder

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

MockSystemdServiceManagerMockRecorder is the mock recorder for MockSystemdServiceManager

func (*MockSystemdServiceManagerMockRecorder) CopyAgentBinary

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

CopyAgentBinary indicates an expected call of CopyAgentBinary

func (*MockSystemdServiceManagerMockRecorder) CreateAgentConf

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

CreateAgentConf indicates an expected call of CreateAgentConf

func (*MockSystemdServiceManagerMockRecorder) FindAgents

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

FindAgents indicates an expected call of FindAgents

func (*MockSystemdServiceManagerMockRecorder) StartAllAgents

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

StartAllAgents indicates an expected call of StartAllAgents

func (*MockSystemdServiceManagerMockRecorder) WriteServiceFiles

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

WriteServiceFiles indicates an expected call of WriteServiceFiles

func (*MockSystemdServiceManagerMockRecorder) WriteSystemdAgents

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

WriteSystemdAgents indicates an expected call of WriteSystemdAgents

type MockUpgrader

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

MockUpgrader is a mock of Upgrader interface

func NewMockUpgrader

func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader

NewMockUpgrader creates a new mock instance

func (*MockUpgrader) EXPECT

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

func (*MockUpgrader) PerformUpgrade

func (m *MockUpgrader) PerformUpgrade() error

PerformUpgrade mocks base method

type MockUpgraderMockRecorder

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

MockUpgraderMockRecorder is the mock recorder for MockUpgrader

func (*MockUpgraderMockRecorder) PerformUpgrade

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

PerformUpgrade indicates an expected call of PerformUpgrade

Jump to

Keyboard shortcuts

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