Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAgent
- type MockAgentMockRecorder
- type MockConfig
- func (m *MockConfig) APIAddresses() ([]string, error)
- func (m *MockConfig) APIInfo() (*api.Info, bool)
- func (m *MockConfig) AgentLogfileMaxBackups() int
- func (m *MockConfig) AgentLogfileMaxSizeMB() int
- func (m *MockConfig) CACert() string
- func (m *MockConfig) Controller() names.ControllerTag
- func (m *MockConfig) DataDir() string
- func (m *MockConfig) Dir() string
- func (m *MockConfig) DqlitePort() (int, bool)
- func (m *MockConfig) EXPECT() *MockConfigMockRecorder
- func (m *MockConfig) Jobs() []model.MachineJob
- func (m *MockConfig) JujuDBSnapChannel() string
- func (m *MockConfig) LogDir() string
- func (m *MockConfig) LoggingConfig() string
- func (m *MockConfig) MetricsSpoolDir() string
- func (m *MockConfig) Model() names.ModelTag
- func (m *MockConfig) MongoInfo() (*mongo.MongoInfo, bool)
- func (m *MockConfig) MongoMemoryProfile() mongo.MemoryProfile
- func (m *MockConfig) Nonce() string
- func (m *MockConfig) OldPassword() string
- func (m *MockConfig) QueryTracingEnabled() bool
- func (m *MockConfig) QueryTracingThreshold() time.Duration
- func (m *MockConfig) StateServingInfo() (controller.StateServingInfo, bool)
- func (m *MockConfig) SystemIdentityPath() string
- func (m *MockConfig) Tag() names.Tag
- func (m *MockConfig) TransientDataDir() string
- func (m *MockConfig) UpgradedToVersion() version.Number
- func (m *MockConfig) Value(arg0 string) string
- func (m *MockConfig) WriteCommands(arg0 shell.Renderer) ([]string, error)
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) APIAddresses() *gomock.Call
- func (mr *MockConfigMockRecorder) APIInfo() *gomock.Call
- func (mr *MockConfigMockRecorder) AgentLogfileMaxBackups() *gomock.Call
- func (mr *MockConfigMockRecorder) AgentLogfileMaxSizeMB() *gomock.Call
- func (mr *MockConfigMockRecorder) CACert() *gomock.Call
- func (mr *MockConfigMockRecorder) Controller() *gomock.Call
- func (mr *MockConfigMockRecorder) DataDir() *gomock.Call
- func (mr *MockConfigMockRecorder) Dir() *gomock.Call
- func (mr *MockConfigMockRecorder) DqlitePort() *gomock.Call
- func (mr *MockConfigMockRecorder) Jobs() *gomock.Call
- func (mr *MockConfigMockRecorder) JujuDBSnapChannel() *gomock.Call
- func (mr *MockConfigMockRecorder) LogDir() *gomock.Call
- func (mr *MockConfigMockRecorder) LoggingConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) MetricsSpoolDir() *gomock.Call
- func (mr *MockConfigMockRecorder) Model() *gomock.Call
- func (mr *MockConfigMockRecorder) MongoInfo() *gomock.Call
- func (mr *MockConfigMockRecorder) MongoMemoryProfile() *gomock.Call
- func (mr *MockConfigMockRecorder) Nonce() *gomock.Call
- func (mr *MockConfigMockRecorder) OldPassword() *gomock.Call
- func (mr *MockConfigMockRecorder) QueryTracingEnabled() *gomock.Call
- func (mr *MockConfigMockRecorder) QueryTracingThreshold() *gomock.Call
- func (mr *MockConfigMockRecorder) StateServingInfo() *gomock.Call
- func (mr *MockConfigMockRecorder) SystemIdentityPath() *gomock.Call
- func (mr *MockConfigMockRecorder) Tag() *gomock.Call
- func (mr *MockConfigMockRecorder) TransientDataDir() *gomock.Call
- func (mr *MockConfigMockRecorder) UpgradedToVersion() *gomock.Call
- func (mr *MockConfigMockRecorder) Value(arg0 any) *gomock.Call
- func (mr *MockConfigMockRecorder) WriteCommands(arg0 any) *gomock.Call
- type MockContext
- type MockContextMockRecorder
- type MockMachine
- type MockMachineMockRecorder
- type MockMachiner
- type MockMachinerMockRecorder
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 ¶
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) Controller ¶
func (m *MockConfig) Controller() names.ControllerTag
Controller 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) JujuDBSnapChannel ¶
func (m *MockConfig) JujuDBSnapChannel() string
JujuDBSnapChannel 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) 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) 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) 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) 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) EXPECT ¶
func (m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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 ¶
func (m *MockMachiner) EXPECT() *MockMachinerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMachiner) Machine ¶
func (m *MockMachiner) Machine(arg0 names.MachineTag) (stateconverter.Machine, error)
Machine mocks base method.
type MockMachinerMockRecorder ¶
type MockMachinerMockRecorder struct {
// contains filtered or unexported fields
}
MockMachinerMockRecorder is the mock recorder for MockMachiner.