mocks

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 6 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 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 any) *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 any) *gomock.Call

SetInstanceStatus indicates an expected call of SetInstanceStatus.

func (*MockFacadeMockRecorder) SetMachineStatus

func (mr *MockFacadeMockRecorder) SetMachineStatus(arg0, arg1 any) *gomock.Call

SetMachineStatus indicates an expected call of SetMachineStatus.

func (*MockFacadeMockRecorder) StartUnitCompletion

func (mr *MockFacadeMockRecorder) StartUnitCompletion(arg0 any) *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) 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) 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) CreateAgentConf

func (mr *MockSystemdServiceManagerMockRecorder) CreateAgentConf(arg0, arg1 any) *gomock.Call

CreateAgentConf indicates an expected call of CreateAgentConf.

func (*MockSystemdServiceManagerMockRecorder) FindAgents

func (mr *MockSystemdServiceManagerMockRecorder) FindAgents(arg0 any) *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 any) *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

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

func (*MockUnitDiscovery) Units

func (m *MockUnitDiscovery) Units() ([]names.UnitTag, error)

Units mocks base method.

type MockUnitDiscoveryMockRecorder

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

MockUnitDiscoveryMockRecorder is the mock recorder for MockUnitDiscovery.

func (*MockUnitDiscoveryMockRecorder) Units

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

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