mocks

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockAgent

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

MockAgent is a mock of Agent interface.

func NewMockAgent

func NewMockAgent(ctrl *gomock.Controller) *MockAgent

NewMockAgent creates a new mock instance.

func (*MockAgent) ChangeConfig

func (m *MockAgent) ChangeConfig(arg0 agent.ConfigMutator) error

ChangeConfig mocks base method.

func (*MockAgent) CurrentConfig

func (m *MockAgent) CurrentConfig() agent.Config

CurrentConfig mocks base method.

func (*MockAgent) EXPECT

func (m *MockAgent) EXPECT() *MockAgentMockRecorder

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

type MockAgentMockRecorder

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

MockAgentMockRecorder is the mock recorder for MockAgent.

func (*MockAgentMockRecorder) ChangeConfig

func (mr *MockAgentMockRecorder) ChangeConfig(arg0 any) *gomock.Call

ChangeConfig indicates an expected call of ChangeConfig.

func (*MockAgentMockRecorder) CurrentConfig

func (mr *MockAgentMockRecorder) CurrentConfig() *gomock.Call

CurrentConfig indicates an expected call of CurrentConfig.

type MockConfig

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

MockConfig is a mock of Config interface.

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance.

func (*MockConfig) APIAddresses

func (m *MockConfig) APIAddresses() ([]string, error)

APIAddresses mocks base method.

func (*MockConfig) APIInfo

func (m *MockConfig) APIInfo() (*api.Info, bool)

APIInfo mocks base method.

func (*MockConfig) AgentLogfileMaxBackups

func (m *MockConfig) AgentLogfileMaxBackups() int

AgentLogfileMaxBackups mocks base method.

func (*MockConfig) AgentLogfileMaxSizeMB

func (m *MockConfig) AgentLogfileMaxSizeMB() int

AgentLogfileMaxSizeMB mocks base method.

func (*MockConfig) CACert

func (m *MockConfig) CACert() string

CACert mocks base method.

func (*MockConfig) Controller

func (m *MockConfig) Controller() names.ControllerTag

Controller mocks base method.

func (*MockConfig) DataDir

func (m *MockConfig) DataDir() string

DataDir mocks base method.

func (*MockConfig) Dir

func (m *MockConfig) Dir() string

Dir mocks base method.

func (*MockConfig) DqlitePort

func (m *MockConfig) DqlitePort() (int, bool)

DqlitePort mocks base method.

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

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

func (*MockConfig) Jobs

func (m *MockConfig) Jobs() []model.MachineJob

Jobs mocks base method.

func (*MockConfig) JujuDBSnapChannel

func (m *MockConfig) JujuDBSnapChannel() string

JujuDBSnapChannel mocks base method.

func (*MockConfig) LogDir

func (m *MockConfig) LogDir() string

LogDir mocks base method.

func (*MockConfig) LoggingConfig

func (m *MockConfig) LoggingConfig() string

LoggingConfig mocks base method.

func (*MockConfig) MetricsSpoolDir

func (m *MockConfig) MetricsSpoolDir() string

MetricsSpoolDir mocks base method.

func (*MockConfig) Model

func (m *MockConfig) Model() names.ModelTag

Model mocks base method.

func (*MockConfig) MongoInfo

func (m *MockConfig) MongoInfo() (*mongo.MongoInfo, bool)

MongoInfo mocks base method.

func (*MockConfig) MongoMemoryProfile

func (m *MockConfig) MongoMemoryProfile() mongo.MemoryProfile

MongoMemoryProfile mocks base method.

func (*MockConfig) Nonce

func (m *MockConfig) Nonce() string

Nonce mocks base method.

func (*MockConfig) OldPassword

func (m *MockConfig) OldPassword() string

OldPassword mocks base method.

func (*MockConfig) QueryTracingEnabled

func (m *MockConfig) QueryTracingEnabled() bool

QueryTracingEnabled mocks base method.

func (*MockConfig) QueryTracingThreshold

func (m *MockConfig) QueryTracingThreshold() time.Duration

QueryTracingThreshold mocks base method.

func (*MockConfig) StateServingInfo

func (m *MockConfig) StateServingInfo() (controller.StateServingInfo, bool)

StateServingInfo mocks base method.

func (*MockConfig) SystemIdentityPath

func (m *MockConfig) SystemIdentityPath() string

SystemIdentityPath mocks base method.

func (*MockConfig) Tag

func (m *MockConfig) Tag() names.Tag

Tag mocks base method.

func (*MockConfig) TransientDataDir

func (m *MockConfig) TransientDataDir() string

TransientDataDir mocks base method.

func (*MockConfig) UpgradedToVersion

func (m *MockConfig) UpgradedToVersion() version.Number

UpgradedToVersion mocks base method.

func (*MockConfig) Value

func (m *MockConfig) Value(arg0 string) string

Value mocks base method.

func (*MockConfig) WriteCommands

func (m *MockConfig) WriteCommands(arg0 shell.Renderer) ([]string, error)

WriteCommands mocks base method.

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig.

func (*MockConfigMockRecorder) APIAddresses

func (mr *MockConfigMockRecorder) APIAddresses() *gomock.Call

APIAddresses indicates an expected call of APIAddresses.

func (*MockConfigMockRecorder) APIInfo

func (mr *MockConfigMockRecorder) APIInfo() *gomock.Call

APIInfo indicates an expected call of APIInfo.

func (*MockConfigMockRecorder) AgentLogfileMaxBackups

func (mr *MockConfigMockRecorder) AgentLogfileMaxBackups() *gomock.Call

AgentLogfileMaxBackups indicates an expected call of AgentLogfileMaxBackups.

func (*MockConfigMockRecorder) AgentLogfileMaxSizeMB

func (mr *MockConfigMockRecorder) AgentLogfileMaxSizeMB() *gomock.Call

AgentLogfileMaxSizeMB indicates an expected call of AgentLogfileMaxSizeMB.

func (*MockConfigMockRecorder) CACert

func (mr *MockConfigMockRecorder) CACert() *gomock.Call

CACert indicates an expected call of CACert.

func (*MockConfigMockRecorder) Controller

func (mr *MockConfigMockRecorder) Controller() *gomock.Call

Controller indicates an expected call of Controller.

func (*MockConfigMockRecorder) DataDir

func (mr *MockConfigMockRecorder) DataDir() *gomock.Call

DataDir indicates an expected call of DataDir.

func (*MockConfigMockRecorder) Dir

func (mr *MockConfigMockRecorder) Dir() *gomock.Call

Dir indicates an expected call of Dir.

func (*MockConfigMockRecorder) DqlitePort

func (mr *MockConfigMockRecorder) DqlitePort() *gomock.Call

DqlitePort indicates an expected call of DqlitePort.

func (*MockConfigMockRecorder) Jobs

func (mr *MockConfigMockRecorder) Jobs() *gomock.Call

Jobs indicates an expected call of Jobs.

func (*MockConfigMockRecorder) JujuDBSnapChannel

func (mr *MockConfigMockRecorder) JujuDBSnapChannel() *gomock.Call

JujuDBSnapChannel indicates an expected call of JujuDBSnapChannel.

func (*MockConfigMockRecorder) LogDir

func (mr *MockConfigMockRecorder) LogDir() *gomock.Call

LogDir indicates an expected call of LogDir.

func (*MockConfigMockRecorder) LoggingConfig

func (mr *MockConfigMockRecorder) LoggingConfig() *gomock.Call

LoggingConfig indicates an expected call of LoggingConfig.

func (*MockConfigMockRecorder) MetricsSpoolDir

func (mr *MockConfigMockRecorder) MetricsSpoolDir() *gomock.Call

MetricsSpoolDir indicates an expected call of MetricsSpoolDir.

func (*MockConfigMockRecorder) Model

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

Model indicates an expected call of Model.

func (*MockConfigMockRecorder) MongoInfo

func (mr *MockConfigMockRecorder) MongoInfo() *gomock.Call

MongoInfo indicates an expected call of MongoInfo.

func (*MockConfigMockRecorder) MongoMemoryProfile

func (mr *MockConfigMockRecorder) MongoMemoryProfile() *gomock.Call

MongoMemoryProfile indicates an expected call of MongoMemoryProfile.

func (*MockConfigMockRecorder) Nonce

func (mr *MockConfigMockRecorder) Nonce() *gomock.Call

Nonce indicates an expected call of Nonce.

func (*MockConfigMockRecorder) OldPassword

func (mr *MockConfigMockRecorder) OldPassword() *gomock.Call

OldPassword indicates an expected call of OldPassword.

func (*MockConfigMockRecorder) QueryTracingEnabled

func (mr *MockConfigMockRecorder) QueryTracingEnabled() *gomock.Call

QueryTracingEnabled indicates an expected call of QueryTracingEnabled.

func (*MockConfigMockRecorder) QueryTracingThreshold

func (mr *MockConfigMockRecorder) QueryTracingThreshold() *gomock.Call

QueryTracingThreshold indicates an expected call of QueryTracingThreshold.

func (*MockConfigMockRecorder) StateServingInfo

func (mr *MockConfigMockRecorder) StateServingInfo() *gomock.Call

StateServingInfo indicates an expected call of StateServingInfo.

func (*MockConfigMockRecorder) SystemIdentityPath

func (mr *MockConfigMockRecorder) SystemIdentityPath() *gomock.Call

SystemIdentityPath indicates an expected call of SystemIdentityPath.

func (*MockConfigMockRecorder) Tag

func (mr *MockConfigMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag.

func (*MockConfigMockRecorder) TransientDataDir

func (mr *MockConfigMockRecorder) TransientDataDir() *gomock.Call

TransientDataDir indicates an expected call of TransientDataDir.

func (*MockConfigMockRecorder) UpgradedToVersion

func (mr *MockConfigMockRecorder) UpgradedToVersion() *gomock.Call

UpgradedToVersion indicates an expected call of UpgradedToVersion.

func (*MockConfigMockRecorder) Value

func (mr *MockConfigMockRecorder) Value(arg0 any) *gomock.Call

Value indicates an expected call of Value.

func (*MockConfigMockRecorder) WriteCommands

func (mr *MockConfigMockRecorder) WriteCommands(arg0 any) *gomock.Call

WriteCommands indicates an expected call of WriteCommands.

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Abort

func (m *MockContext) Abort() <-chan struct{}

Abort mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) Get

func (m *MockContext) Get(arg0 string, arg1 any) error

Get mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Abort

func (mr *MockContextMockRecorder) Abort() *gomock.Call

Abort indicates an expected call of Abort.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

type MockMachine

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

MockMachine is a mock of Machine interface.

func NewMockMachine

func NewMockMachine(ctrl *gomock.Controller) *MockMachine

NewMockMachine creates a new mock instance.

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

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

func (*MockMachine) Jobs

func (m *MockMachine) Jobs() (*params.JobsResult, error)

Jobs mocks base method.

func (*MockMachine) Watch

func (m *MockMachine) Watch() (watcher.NotifyWatcher, error)

Watch mocks base method.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) Jobs

func (mr *MockMachineMockRecorder) Jobs() *gomock.Call

Jobs indicates an expected call of Jobs.

func (*MockMachineMockRecorder) Watch

func (mr *MockMachineMockRecorder) Watch() *gomock.Call

Watch indicates an expected call of Watch.

type MockMachiner

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

MockMachiner is a mock of Machiner interface.

func NewMockMachiner

func NewMockMachiner(ctrl *gomock.Controller) *MockMachiner

NewMockMachiner creates a new mock instance.

func (*MockMachiner) EXPECT

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

func (*MockMachiner) Machine

Machine mocks base method.

type MockMachinerMockRecorder

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

MockMachinerMockRecorder is the mock recorder for MockMachiner.

func (*MockMachinerMockRecorder) Machine

func (mr *MockMachinerMockRecorder) Machine(arg0 any) *gomock.Call

Machine indicates an expected call of Machine.

Jump to

Keyboard shortcuts

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