Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
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) CACert() string
- func (m *MockConfig) Controller() names.ControllerTag
- func (m *MockConfig) DataDir() string
- func (m *MockConfig) Dir() string
- 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) NonSyncedWritesToRaftLog() bool
- func (m *MockConfig) Nonce() string
- func (m *MockConfig) OldPassword() string
- 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) CACert() *gomock.Call
- func (mr *MockConfigMockRecorder) Controller() *gomock.Call
- func (mr *MockConfigMockRecorder) DataDir() *gomock.Call
- func (mr *MockConfigMockRecorder) Dir() *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) NonSyncedWritesToRaftLog() *gomock.Call
- func (mr *MockConfigMockRecorder) Nonce() *gomock.Call
- func (mr *MockConfigMockRecorder) OldPassword() *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 interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) WriteCommands(arg0 interface{}) *gomock.Call
- type MockConfigSetter
- func (m *MockConfigSetter) APIAddresses() ([]string, error)
- func (m *MockConfigSetter) APIInfo() (*api.Info, bool)
- func (m *MockConfigSetter) CACert() string
- func (m *MockConfigSetter) Clone() agent.Config
- func (m *MockConfigSetter) Controller() names.ControllerTag
- func (m *MockConfigSetter) DataDir() string
- func (m *MockConfigSetter) Dir() string
- func (m *MockConfigSetter) EXPECT() *MockConfigSetterMockRecorder
- func (m *MockConfigSetter) Jobs() []model.MachineJob
- func (m *MockConfigSetter) JujuDBSnapChannel() string
- func (m *MockConfigSetter) LogDir() string
- func (m *MockConfigSetter) LoggingConfig() string
- func (m *MockConfigSetter) MetricsSpoolDir() string
- func (m *MockConfigSetter) Model() names.ModelTag
- func (m *MockConfigSetter) MongoInfo() (*mongo.MongoInfo, bool)
- func (m *MockConfigSetter) MongoMemoryProfile() mongo.MemoryProfile
- func (m *MockConfigSetter) NonSyncedWritesToRaftLog() bool
- func (m *MockConfigSetter) Nonce() string
- func (m *MockConfigSetter) OldPassword() string
- func (m *MockConfigSetter) SetAPIHostPorts(arg0 []network.HostPorts)
- func (m *MockConfigSetter) SetCACert(arg0 string)
- func (m *MockConfigSetter) SetControllerAPIPort(arg0 int)
- func (m *MockConfigSetter) SetJujuDBSnapChannel(arg0 string)
- func (m *MockConfigSetter) SetLoggingConfig(arg0 string)
- func (m *MockConfigSetter) SetMongoMemoryProfile(arg0 mongo.MemoryProfile)
- func (m *MockConfigSetter) SetNonSyncedWritesToRaftLog(arg0 bool)
- func (m *MockConfigSetter) SetOldPassword(arg0 string)
- func (m *MockConfigSetter) SetPassword(arg0 string)
- func (m *MockConfigSetter) SetStateServingInfo(arg0 controller.StateServingInfo)
- func (m *MockConfigSetter) SetUpgradedToVersion(arg0 version.Number)
- func (m *MockConfigSetter) SetValue(arg0, arg1 string)
- func (m *MockConfigSetter) StateServingInfo() (controller.StateServingInfo, bool)
- func (m *MockConfigSetter) SystemIdentityPath() string
- func (m *MockConfigSetter) Tag() names.Tag
- func (m *MockConfigSetter) TransientDataDir() string
- func (m *MockConfigSetter) UpgradedToVersion() version.Number
- func (m *MockConfigSetter) Value(arg0 string) string
- func (m *MockConfigSetter) WriteCommands(arg0 shell.Renderer) ([]string, error)
- type MockConfigSetterMockRecorder
- func (mr *MockConfigSetterMockRecorder) APIAddresses() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) APIInfo() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) CACert() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Clone() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Controller() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) DataDir() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Dir() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Jobs() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) JujuDBSnapChannel() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) LogDir() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) LoggingConfig() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) MetricsSpoolDir() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Model() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) MongoInfo() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) MongoMemoryProfile() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) NonSyncedWritesToRaftLog() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Nonce() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) OldPassword() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetAPIHostPorts(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetCACert(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetControllerAPIPort(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetJujuDBSnapChannel(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetLoggingConfig(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetMongoMemoryProfile(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetNonSyncedWritesToRaftLog(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetOldPassword(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetPassword(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetStateServingInfo(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetUpgradedToVersion(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SetValue(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) StateServingInfo() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) SystemIdentityPath() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Tag() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) TransientDataDir() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) UpgradedToVersion() *gomock.Call
- func (mr *MockConfigSetterMockRecorder) Value(arg0 interface{}) *gomock.Call
- func (mr *MockConfigSetterMockRecorder) WriteCommands(arg0 interface{}) *gomock.Call
- type MockLock
- type MockLockMockRecorder
- type MockLogger
- type MockLoggerMockRecorder
- type MockNotifyWatcher
- type MockNotifyWatcherMockRecorder
- func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Err() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Kill() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Stop() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Wait() *gomock.Call
- type MockPool
- func (m *MockPool) Close() error
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) EnsureUpgradeInfo(arg0 string, arg1, arg2 version.Number) (upgradedatabase.UpgradeInfo, error)
- func (m *MockPool) IsPrimary(arg0 string) (bool, error)
- func (m *MockPool) SetStatus(arg0 string, arg1 status.Status, arg2 string) error
- type MockPoolMockRecorder
- func (mr *MockPoolMockRecorder) Close() *gomock.Call
- func (mr *MockPoolMockRecorder) EnsureUpgradeInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) IsPrimary(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) SetStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockUpgradeInfo
- type MockUpgradeInfoMockRecorder
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 interface{}) *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) Controller ¶
func (m *MockConfig) Controller() names.ControllerTag
Controller 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) NonSyncedWritesToRaftLog ¶
func (m *MockConfig) NonSyncedWritesToRaftLog() bool
NonSyncedWritesToRaftLog mocks base method
func (*MockConfig) OldPassword ¶
func (m *MockConfig) OldPassword() string
OldPassword 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) 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) 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) NonSyncedWritesToRaftLog ¶
func (mr *MockConfigMockRecorder) NonSyncedWritesToRaftLog() *gomock.Call
NonSyncedWritesToRaftLog indicates an expected call of NonSyncedWritesToRaftLog
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) 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 interface{}) *gomock.Call
Value indicates an expected call of Value
func (*MockConfigMockRecorder) WriteCommands ¶
func (mr *MockConfigMockRecorder) WriteCommands(arg0 interface{}) *gomock.Call
WriteCommands indicates an expected call of WriteCommands
type MockConfigSetter ¶
type MockConfigSetter struct {
// contains filtered or unexported fields
}
MockConfigSetter is a mock of ConfigSetter interface
func NewMockConfigSetter ¶
func NewMockConfigSetter(ctrl *gomock.Controller) *MockConfigSetter
NewMockConfigSetter creates a new mock instance
func (*MockConfigSetter) APIAddresses ¶
func (m *MockConfigSetter) APIAddresses() ([]string, error)
APIAddresses mocks base method
func (*MockConfigSetter) APIInfo ¶
func (m *MockConfigSetter) APIInfo() (*api.Info, bool)
APIInfo mocks base method
func (*MockConfigSetter) CACert ¶
func (m *MockConfigSetter) CACert() string
CACert mocks base method
func (*MockConfigSetter) Clone ¶
func (m *MockConfigSetter) Clone() agent.Config
Clone mocks base method
func (*MockConfigSetter) Controller ¶
func (m *MockConfigSetter) Controller() names.ControllerTag
Controller mocks base method
func (*MockConfigSetter) DataDir ¶
func (m *MockConfigSetter) DataDir() string
DataDir mocks base method
func (*MockConfigSetter) EXPECT ¶
func (m *MockConfigSetter) EXPECT() *MockConfigSetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfigSetter) Jobs ¶
func (m *MockConfigSetter) Jobs() []model.MachineJob
Jobs mocks base method
func (*MockConfigSetter) JujuDBSnapChannel ¶
func (m *MockConfigSetter) JujuDBSnapChannel() string
JujuDBSnapChannel mocks base method
func (*MockConfigSetter) LogDir ¶
func (m *MockConfigSetter) LogDir() string
LogDir mocks base method
func (*MockConfigSetter) LoggingConfig ¶
func (m *MockConfigSetter) LoggingConfig() string
LoggingConfig mocks base method
func (*MockConfigSetter) MetricsSpoolDir ¶
func (m *MockConfigSetter) MetricsSpoolDir() string
MetricsSpoolDir mocks base method
func (*MockConfigSetter) Model ¶
func (m *MockConfigSetter) Model() names.ModelTag
Model mocks base method
func (*MockConfigSetter) MongoInfo ¶
func (m *MockConfigSetter) MongoInfo() (*mongo.MongoInfo, bool)
MongoInfo mocks base method
func (*MockConfigSetter) MongoMemoryProfile ¶
func (m *MockConfigSetter) MongoMemoryProfile() mongo.MemoryProfile
MongoMemoryProfile mocks base method
func (*MockConfigSetter) NonSyncedWritesToRaftLog ¶
func (m *MockConfigSetter) NonSyncedWritesToRaftLog() bool
NonSyncedWritesToRaftLog mocks base method
func (*MockConfigSetter) OldPassword ¶
func (m *MockConfigSetter) OldPassword() string
OldPassword mocks base method
func (*MockConfigSetter) SetAPIHostPorts ¶
func (m *MockConfigSetter) SetAPIHostPorts(arg0 []network.HostPorts)
SetAPIHostPorts mocks base method
func (*MockConfigSetter) SetCACert ¶
func (m *MockConfigSetter) SetCACert(arg0 string)
SetCACert mocks base method
func (*MockConfigSetter) SetControllerAPIPort ¶
func (m *MockConfigSetter) SetControllerAPIPort(arg0 int)
SetControllerAPIPort mocks base method
func (*MockConfigSetter) SetJujuDBSnapChannel ¶
func (m *MockConfigSetter) SetJujuDBSnapChannel(arg0 string)
SetJujuDBSnapChannel mocks base method
func (*MockConfigSetter) SetLoggingConfig ¶
func (m *MockConfigSetter) SetLoggingConfig(arg0 string)
SetLoggingConfig mocks base method
func (*MockConfigSetter) SetMongoMemoryProfile ¶
func (m *MockConfigSetter) SetMongoMemoryProfile(arg0 mongo.MemoryProfile)
SetMongoMemoryProfile mocks base method
func (*MockConfigSetter) SetNonSyncedWritesToRaftLog ¶
func (m *MockConfigSetter) SetNonSyncedWritesToRaftLog(arg0 bool)
SetNonSyncedWritesToRaftLog mocks base method
func (*MockConfigSetter) SetOldPassword ¶
func (m *MockConfigSetter) SetOldPassword(arg0 string)
SetOldPassword mocks base method
func (*MockConfigSetter) SetPassword ¶
func (m *MockConfigSetter) SetPassword(arg0 string)
SetPassword mocks base method
func (*MockConfigSetter) SetStateServingInfo ¶
func (m *MockConfigSetter) SetStateServingInfo(arg0 controller.StateServingInfo)
SetStateServingInfo mocks base method
func (*MockConfigSetter) SetUpgradedToVersion ¶
func (m *MockConfigSetter) SetUpgradedToVersion(arg0 version.Number)
SetUpgradedToVersion mocks base method
func (*MockConfigSetter) SetValue ¶
func (m *MockConfigSetter) SetValue(arg0, arg1 string)
SetValue mocks base method
func (*MockConfigSetter) StateServingInfo ¶
func (m *MockConfigSetter) StateServingInfo() (controller.StateServingInfo, bool)
StateServingInfo mocks base method
func (*MockConfigSetter) SystemIdentityPath ¶
func (m *MockConfigSetter) SystemIdentityPath() string
SystemIdentityPath mocks base method
func (*MockConfigSetter) TransientDataDir ¶
func (m *MockConfigSetter) TransientDataDir() string
TransientDataDir mocks base method
func (*MockConfigSetter) UpgradedToVersion ¶
func (m *MockConfigSetter) UpgradedToVersion() version.Number
UpgradedToVersion mocks base method
func (*MockConfigSetter) Value ¶
func (m *MockConfigSetter) Value(arg0 string) string
Value mocks base method
func (*MockConfigSetter) WriteCommands ¶
func (m *MockConfigSetter) WriteCommands(arg0 shell.Renderer) ([]string, error)
WriteCommands mocks base method
type MockConfigSetterMockRecorder ¶
type MockConfigSetterMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigSetterMockRecorder is the mock recorder for MockConfigSetter
func (*MockConfigSetterMockRecorder) APIAddresses ¶
func (mr *MockConfigSetterMockRecorder) APIAddresses() *gomock.Call
APIAddresses indicates an expected call of APIAddresses
func (*MockConfigSetterMockRecorder) APIInfo ¶
func (mr *MockConfigSetterMockRecorder) APIInfo() *gomock.Call
APIInfo indicates an expected call of APIInfo
func (*MockConfigSetterMockRecorder) CACert ¶
func (mr *MockConfigSetterMockRecorder) CACert() *gomock.Call
CACert indicates an expected call of CACert
func (*MockConfigSetterMockRecorder) Clone ¶
func (mr *MockConfigSetterMockRecorder) Clone() *gomock.Call
Clone indicates an expected call of Clone
func (*MockConfigSetterMockRecorder) Controller ¶
func (mr *MockConfigSetterMockRecorder) Controller() *gomock.Call
Controller indicates an expected call of Controller
func (*MockConfigSetterMockRecorder) DataDir ¶
func (mr *MockConfigSetterMockRecorder) DataDir() *gomock.Call
DataDir indicates an expected call of DataDir
func (*MockConfigSetterMockRecorder) Dir ¶
func (mr *MockConfigSetterMockRecorder) Dir() *gomock.Call
Dir indicates an expected call of Dir
func (*MockConfigSetterMockRecorder) Jobs ¶
func (mr *MockConfigSetterMockRecorder) Jobs() *gomock.Call
Jobs indicates an expected call of Jobs
func (*MockConfigSetterMockRecorder) JujuDBSnapChannel ¶
func (mr *MockConfigSetterMockRecorder) JujuDBSnapChannel() *gomock.Call
JujuDBSnapChannel indicates an expected call of JujuDBSnapChannel
func (*MockConfigSetterMockRecorder) LogDir ¶
func (mr *MockConfigSetterMockRecorder) LogDir() *gomock.Call
LogDir indicates an expected call of LogDir
func (*MockConfigSetterMockRecorder) LoggingConfig ¶
func (mr *MockConfigSetterMockRecorder) LoggingConfig() *gomock.Call
LoggingConfig indicates an expected call of LoggingConfig
func (*MockConfigSetterMockRecorder) MetricsSpoolDir ¶
func (mr *MockConfigSetterMockRecorder) MetricsSpoolDir() *gomock.Call
MetricsSpoolDir indicates an expected call of MetricsSpoolDir
func (*MockConfigSetterMockRecorder) Model ¶
func (mr *MockConfigSetterMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model
func (*MockConfigSetterMockRecorder) MongoInfo ¶
func (mr *MockConfigSetterMockRecorder) MongoInfo() *gomock.Call
MongoInfo indicates an expected call of MongoInfo
func (*MockConfigSetterMockRecorder) MongoMemoryProfile ¶
func (mr *MockConfigSetterMockRecorder) MongoMemoryProfile() *gomock.Call
MongoMemoryProfile indicates an expected call of MongoMemoryProfile
func (*MockConfigSetterMockRecorder) NonSyncedWritesToRaftLog ¶
func (mr *MockConfigSetterMockRecorder) NonSyncedWritesToRaftLog() *gomock.Call
NonSyncedWritesToRaftLog indicates an expected call of NonSyncedWritesToRaftLog
func (*MockConfigSetterMockRecorder) Nonce ¶
func (mr *MockConfigSetterMockRecorder) Nonce() *gomock.Call
Nonce indicates an expected call of Nonce
func (*MockConfigSetterMockRecorder) OldPassword ¶
func (mr *MockConfigSetterMockRecorder) OldPassword() *gomock.Call
OldPassword indicates an expected call of OldPassword
func (*MockConfigSetterMockRecorder) SetAPIHostPorts ¶
func (mr *MockConfigSetterMockRecorder) SetAPIHostPorts(arg0 interface{}) *gomock.Call
SetAPIHostPorts indicates an expected call of SetAPIHostPorts
func (*MockConfigSetterMockRecorder) SetCACert ¶
func (mr *MockConfigSetterMockRecorder) SetCACert(arg0 interface{}) *gomock.Call
SetCACert indicates an expected call of SetCACert
func (*MockConfigSetterMockRecorder) SetControllerAPIPort ¶
func (mr *MockConfigSetterMockRecorder) SetControllerAPIPort(arg0 interface{}) *gomock.Call
SetControllerAPIPort indicates an expected call of SetControllerAPIPort
func (*MockConfigSetterMockRecorder) SetJujuDBSnapChannel ¶
func (mr *MockConfigSetterMockRecorder) SetJujuDBSnapChannel(arg0 interface{}) *gomock.Call
SetJujuDBSnapChannel indicates an expected call of SetJujuDBSnapChannel
func (*MockConfigSetterMockRecorder) SetLoggingConfig ¶
func (mr *MockConfigSetterMockRecorder) SetLoggingConfig(arg0 interface{}) *gomock.Call
SetLoggingConfig indicates an expected call of SetLoggingConfig
func (*MockConfigSetterMockRecorder) SetMongoMemoryProfile ¶
func (mr *MockConfigSetterMockRecorder) SetMongoMemoryProfile(arg0 interface{}) *gomock.Call
SetMongoMemoryProfile indicates an expected call of SetMongoMemoryProfile
func (*MockConfigSetterMockRecorder) SetNonSyncedWritesToRaftLog ¶
func (mr *MockConfigSetterMockRecorder) SetNonSyncedWritesToRaftLog(arg0 interface{}) *gomock.Call
SetNonSyncedWritesToRaftLog indicates an expected call of SetNonSyncedWritesToRaftLog
func (*MockConfigSetterMockRecorder) SetOldPassword ¶
func (mr *MockConfigSetterMockRecorder) SetOldPassword(arg0 interface{}) *gomock.Call
SetOldPassword indicates an expected call of SetOldPassword
func (*MockConfigSetterMockRecorder) SetPassword ¶
func (mr *MockConfigSetterMockRecorder) SetPassword(arg0 interface{}) *gomock.Call
SetPassword indicates an expected call of SetPassword
func (*MockConfigSetterMockRecorder) SetStateServingInfo ¶
func (mr *MockConfigSetterMockRecorder) SetStateServingInfo(arg0 interface{}) *gomock.Call
SetStateServingInfo indicates an expected call of SetStateServingInfo
func (*MockConfigSetterMockRecorder) SetUpgradedToVersion ¶
func (mr *MockConfigSetterMockRecorder) SetUpgradedToVersion(arg0 interface{}) *gomock.Call
SetUpgradedToVersion indicates an expected call of SetUpgradedToVersion
func (*MockConfigSetterMockRecorder) SetValue ¶
func (mr *MockConfigSetterMockRecorder) SetValue(arg0, arg1 interface{}) *gomock.Call
SetValue indicates an expected call of SetValue
func (*MockConfigSetterMockRecorder) StateServingInfo ¶
func (mr *MockConfigSetterMockRecorder) StateServingInfo() *gomock.Call
StateServingInfo indicates an expected call of StateServingInfo
func (*MockConfigSetterMockRecorder) SystemIdentityPath ¶
func (mr *MockConfigSetterMockRecorder) SystemIdentityPath() *gomock.Call
SystemIdentityPath indicates an expected call of SystemIdentityPath
func (*MockConfigSetterMockRecorder) Tag ¶
func (mr *MockConfigSetterMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag
func (*MockConfigSetterMockRecorder) TransientDataDir ¶
func (mr *MockConfigSetterMockRecorder) TransientDataDir() *gomock.Call
TransientDataDir indicates an expected call of TransientDataDir
func (*MockConfigSetterMockRecorder) UpgradedToVersion ¶
func (mr *MockConfigSetterMockRecorder) UpgradedToVersion() *gomock.Call
UpgradedToVersion indicates an expected call of UpgradedToVersion
func (*MockConfigSetterMockRecorder) Value ¶
func (mr *MockConfigSetterMockRecorder) Value(arg0 interface{}) *gomock.Call
Value indicates an expected call of Value
func (*MockConfigSetterMockRecorder) WriteCommands ¶
func (mr *MockConfigSetterMockRecorder) WriteCommands(arg0 interface{}) *gomock.Call
WriteCommands indicates an expected call of WriteCommands
type MockLock ¶
type MockLock struct {
// contains filtered or unexported fields
}
MockLock is a mock of Lock interface
func NewMockLock ¶
func NewMockLock(ctrl *gomock.Controller) *MockLock
NewMockLock creates a new mock instance
func (*MockLock) EXPECT ¶
func (m *MockLock) EXPECT() *MockLockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockLockMockRecorder ¶
type MockLockMockRecorder struct {
// contains filtered or unexported fields
}
MockLockMockRecorder is the mock recorder for MockLock
func (*MockLockMockRecorder) IsUnlocked ¶
func (mr *MockLockMockRecorder) IsUnlocked() *gomock.Call
IsUnlocked indicates an expected call of IsUnlocked
func (*MockLockMockRecorder) Unlock ¶
func (mr *MockLockMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock
func (*MockLockMockRecorder) Unlocked ¶
func (mr *MockLockMockRecorder) Unlocked() *gomock.Call
Unlocked indicates an expected call of Unlocked
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
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
type MockNotifyWatcher ¶
type MockNotifyWatcher struct {
// contains filtered or unexported fields
}
MockNotifyWatcher is a mock of NotifyWatcher interface
func NewMockNotifyWatcher ¶
func NewMockNotifyWatcher(ctrl *gomock.Controller) *MockNotifyWatcher
NewMockNotifyWatcher creates a new mock instance
func (*MockNotifyWatcher) Changes ¶
func (m *MockNotifyWatcher) Changes() <-chan struct{}
Changes mocks base method
func (*MockNotifyWatcher) EXPECT ¶
func (m *MockNotifyWatcher) EXPECT() *MockNotifyWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNotifyWatcherMockRecorder ¶
type MockNotifyWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher
func (*MockNotifyWatcherMockRecorder) Changes ¶
func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call
Changes indicates an expected call of Changes
func (*MockNotifyWatcherMockRecorder) Err ¶
func (mr *MockNotifyWatcherMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockNotifyWatcherMockRecorder) Kill ¶
func (mr *MockNotifyWatcherMockRecorder) Kill() *gomock.Call
Kill indicates an expected call of Kill
func (*MockNotifyWatcherMockRecorder) Stop ¶
func (mr *MockNotifyWatcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockNotifyWatcherMockRecorder) Wait ¶
func (mr *MockNotifyWatcherMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPool) EnsureUpgradeInfo ¶
func (m *MockPool) EnsureUpgradeInfo(arg0 string, arg1, arg2 version.Number) (upgradedatabase.UpgradeInfo, error)
EnsureUpgradeInfo mocks base method
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool
func (*MockPoolMockRecorder) Close ¶
func (mr *MockPoolMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockPoolMockRecorder) EnsureUpgradeInfo ¶
func (mr *MockPoolMockRecorder) EnsureUpgradeInfo(arg0, arg1, arg2 interface{}) *gomock.Call
EnsureUpgradeInfo indicates an expected call of EnsureUpgradeInfo
func (*MockPoolMockRecorder) IsPrimary ¶
func (mr *MockPoolMockRecorder) IsPrimary(arg0 interface{}) *gomock.Call
IsPrimary indicates an expected call of IsPrimary
func (*MockPoolMockRecorder) SetStatus ¶
func (mr *MockPoolMockRecorder) SetStatus(arg0, arg1, arg2 interface{}) *gomock.Call
SetStatus indicates an expected call of SetStatus
type MockUpgradeInfo ¶
type MockUpgradeInfo struct {
// contains filtered or unexported fields
}
MockUpgradeInfo is a mock of UpgradeInfo interface
func NewMockUpgradeInfo ¶
func NewMockUpgradeInfo(ctrl *gomock.Controller) *MockUpgradeInfo
NewMockUpgradeInfo creates a new mock instance
func (*MockUpgradeInfo) EXPECT ¶
func (m *MockUpgradeInfo) EXPECT() *MockUpgradeInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUpgradeInfo) Refresh ¶
func (m *MockUpgradeInfo) Refresh() error
Refresh mocks base method
func (*MockUpgradeInfo) SetStatus ¶
func (m *MockUpgradeInfo) SetStatus(arg0 state.UpgradeStatus) error
SetStatus mocks base method
func (*MockUpgradeInfo) Status ¶
func (m *MockUpgradeInfo) Status() state.UpgradeStatus
Status mocks base method
func (*MockUpgradeInfo) Watch ¶
func (m *MockUpgradeInfo) Watch() state.NotifyWatcher
Watch mocks base method
type MockUpgradeInfoMockRecorder ¶
type MockUpgradeInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockUpgradeInfoMockRecorder is the mock recorder for MockUpgradeInfo
func (*MockUpgradeInfoMockRecorder) Refresh ¶
func (mr *MockUpgradeInfoMockRecorder) Refresh() *gomock.Call
Refresh indicates an expected call of Refresh
func (*MockUpgradeInfoMockRecorder) SetStatus ¶
func (mr *MockUpgradeInfoMockRecorder) SetStatus(arg0 interface{}) *gomock.Call
SetStatus indicates an expected call of SetStatus
func (*MockUpgradeInfoMockRecorder) Status ¶
func (mr *MockUpgradeInfoMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status
func (*MockUpgradeInfoMockRecorder) Watch ¶
func (mr *MockUpgradeInfoMockRecorder) Watch() *gomock.Call
Watch indicates an expected call of Watch