Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFacade
- func (m *MockFacade) CurrentSeries() (string, error)
- func (m *MockFacade) EXPECT() *MockFacadeMockRecorder
- func (m *MockFacade) FinishUpgradeSeries(arg0 string) error
- func (m *MockFacade) MachineStatus() (model.UpgradeSeriesStatus, error)
- func (m *MockFacade) PinMachineApplications() (map[string]error, error)
- func (m *MockFacade) SetInstanceStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error
- func (m *MockFacade) SetMachineStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error
- func (m *MockFacade) StartUnitCompletion(arg0 string) error
- func (m *MockFacade) TargetSeries() (string, error)
- func (m *MockFacade) UnitsCompleted() ([]names.UnitTag, error)
- func (m *MockFacade) UnitsPrepared() ([]names.UnitTag, error)
- func (m *MockFacade) UnpinMachineApplications() (map[string]error, error)
- func (m *MockFacade) WatchUpgradeSeriesNotifications() (watcher.NotifyWatcher, error)
- type MockFacadeMockRecorder
- func (mr *MockFacadeMockRecorder) CurrentSeries() *gomock.Call
- func (mr *MockFacadeMockRecorder) FinishUpgradeSeries(arg0 interface{}) *gomock.Call
- func (mr *MockFacadeMockRecorder) MachineStatus() *gomock.Call
- func (mr *MockFacadeMockRecorder) PinMachineApplications() *gomock.Call
- func (mr *MockFacadeMockRecorder) SetInstanceStatus(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFacadeMockRecorder) SetMachineStatus(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFacadeMockRecorder) StartUnitCompletion(arg0 interface{}) *gomock.Call
- func (mr *MockFacadeMockRecorder) TargetSeries() *gomock.Call
- func (mr *MockFacadeMockRecorder) UnitsCompleted() *gomock.Call
- func (mr *MockFacadeMockRecorder) UnitsPrepared() *gomock.Call
- func (mr *MockFacadeMockRecorder) UnpinMachineApplications() *gomock.Call
- func (mr *MockFacadeMockRecorder) WatchUpgradeSeriesNotifications() *gomock.Call
- type MockSystemdServiceManager
- func (m *MockSystemdServiceManager) CopyAgentBinary(arg0, arg1, arg2, arg3 string, arg4 version.Number) error
- func (m *MockSystemdServiceManager) CreateAgentConf(arg0, arg1 string) (common.Conf, error)
- func (m *MockSystemdServiceManager) EXPECT() *MockSystemdServiceManagerMockRecorder
- func (m *MockSystemdServiceManager) FindAgents(arg0 string) (string, []string, []string, error)
- func (m *MockSystemdServiceManager) WriteServiceFile() error
- func (m *MockSystemdServiceManager) WriteSystemdAgent(arg0, arg1, arg2 string) error
- type MockSystemdServiceManagerMockRecorder
- func (mr *MockSystemdServiceManagerMockRecorder) CopyAgentBinary(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSystemdServiceManagerMockRecorder) CreateAgentConf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSystemdServiceManagerMockRecorder) FindAgents(arg0 interface{}) *gomock.Call
- func (mr *MockSystemdServiceManagerMockRecorder) WriteServiceFile() *gomock.Call
- func (mr *MockSystemdServiceManagerMockRecorder) WriteSystemdAgent(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockUnitDiscovery
- type MockUnitDiscoveryMockRecorder
- type MockUpgrader
- type MockUpgraderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CurrentSeries ¶
func (m *MockFacade) CurrentSeries() (string, error)
CurrentSeries mocks base method
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) SetInstanceStatus ¶
func (m *MockFacade) SetInstanceStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error
SetInstanceStatus 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.UnitTag, error)
UnitsCompleted mocks base method
func (*MockFacade) UnitsPrepared ¶
func (m *MockFacade) UnitsPrepared() ([]names.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) CurrentSeries ¶
func (mr *MockFacadeMockRecorder) CurrentSeries() *gomock.Call
CurrentSeries indicates an expected call of CurrentSeries
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) SetInstanceStatus ¶
func (mr *MockFacadeMockRecorder) SetInstanceStatus(arg0, arg1 interface{}) *gomock.Call
SetInstanceStatus indicates an expected call of SetInstanceStatus
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 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, arg1, arg2, arg3 string, arg4 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 ¶
func (m *MockSystemdServiceManager) EXPECT() *MockSystemdServiceManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSystemdServiceManager) FindAgents ¶
FindAgents mocks base method
func (*MockSystemdServiceManager) WriteServiceFile ¶
func (m *MockSystemdServiceManager) WriteServiceFile() error
WriteServiceFile mocks base method
func (*MockSystemdServiceManager) WriteSystemdAgent ¶
func (m *MockSystemdServiceManager) WriteSystemdAgent(arg0, arg1, arg2 string) error
WriteSystemdAgent 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 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) WriteServiceFile ¶
func (mr *MockSystemdServiceManagerMockRecorder) WriteServiceFile() *gomock.Call
WriteServiceFile indicates an expected call of WriteServiceFile
func (*MockSystemdServiceManagerMockRecorder) WriteSystemdAgent ¶
func (mr *MockSystemdServiceManagerMockRecorder) WriteSystemdAgent(arg0, arg1, arg2 interface{}) *gomock.Call
WriteSystemdAgent indicates an expected call of WriteSystemdAgent
type MockUnitDiscovery ¶
type MockUnitDiscovery struct {
// contains filtered or unexported fields
}
MockUnitDiscovery is a mock of UnitDiscovery interface
func NewMockUnitDiscovery ¶
func NewMockUnitDiscovery(ctrl *gomock.Controller) *MockUnitDiscovery
NewMockUnitDiscovery creates a new mock instance
func (*MockUnitDiscovery) EXPECT ¶
func (m *MockUnitDiscovery) EXPECT() *MockUnitDiscoveryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUnitDiscoveryMockRecorder ¶
type MockUnitDiscoveryMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitDiscoveryMockRecorder is the mock recorder for MockUnitDiscovery
func (*MockUnitDiscoveryMockRecorder) Units ¶
func (mr *MockUnitDiscoveryMockRecorder) Units() *gomock.Call
Units indicates an expected call of Units
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 ¶
func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder
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