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 MockAuthorizer
- func (m *MockAuthorizer) AuthApplicationAgent() bool
- func (m *MockAuthorizer) AuthClient() bool
- func (m *MockAuthorizer) AuthController() bool
- func (m *MockAuthorizer) AuthMachineAgent() bool
- func (m *MockAuthorizer) AuthModelAgent() bool
- func (m *MockAuthorizer) AuthOwner(arg0 names.Tag) bool
- func (m *MockAuthorizer) AuthUnitAgent() bool
- func (m *MockAuthorizer) ConnectedModel() string
- func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
- func (m *MockAuthorizer) GetAuthTag() names.Tag
- func (m *MockAuthorizer) HasPermission(arg0 permission.Access, arg1 names.Tag) (bool, error)
- func (m *MockAuthorizer) UserHasPermission(arg0 names.UserTag, arg1 permission.Access, arg2 names.Tag) (bool, error)
- type MockAuthorizerMockRecorder
- func (mr *MockAuthorizerMockRecorder) AuthApplicationAgent() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthClient() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthController() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthModelAgent() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthOwner(arg0 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AuthUnitAgent() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) ConnectedModel() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) GetAuthTag() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) HasPermission(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) UserHasPermission(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockBackend
- func (m *MockBackend) APIHostPortsForClients() ([]network.SpaceHostPorts, error)
- func (m *MockBackend) AbortCurrentUpgrade() error
- func (m *MockBackend) AddControllerUser(arg0 state.UserAccessSpec) (permission.UserAccess, error)
- func (m *MockBackend) AddMachineInsideMachine(arg0 state.MachineTemplate, arg1 string, arg2 instance.ContainerType) (*state.Machine, error)
- func (m *MockBackend) AddMachineInsideNewMachine(arg0, arg1 state.MachineTemplate, arg2 instance.ContainerType) (*state.Machine, error)
- func (m *MockBackend) AddOneMachine(arg0 state.MachineTemplate) (*state.Machine, error)
- func (m *MockBackend) AddRelation(arg0 ...state.Endpoint) (*state.Relation, error)
- func (m *MockBackend) AllApplicationOffers() ([]*crossmodel.ApplicationOffer, error)
- func (m *MockBackend) AllApplications() ([]*state.Application, error)
- func (m *MockBackend) AllIPAddresses() ([]*state.Address, error)
- func (m *MockBackend) AllLinkLayerDevices() ([]*state.LinkLayerDevice, error)
- func (m *MockBackend) AllMachines() ([]*state.Machine, error)
- func (m *MockBackend) AllModelUUIDs() ([]string, error)
- func (m *MockBackend) AllRelations() ([]*state.Relation, error)
- func (m *MockBackend) AllRemoteApplications() ([]*state.RemoteApplication, error)
- func (m *MockBackend) AllSpaceInfos() (network.SpaceInfos, error)
- func (m *MockBackend) AllSubnets() ([]*state.Subnet, error)
- func (m *MockBackend) Annotations(arg0 state.GlobalEntity) (map[string]string, error)
- func (m *MockBackend) Application(arg0 string) (client.Application, error)
- func (m *MockBackend) Charm(arg0 *charm.URL) (*state.Charm, error)
- func (m *MockBackend) ControllerConfig() (controller.Config, error)
- func (m *MockBackend) ControllerNodes() ([]state.ControllerNode, error)
- func (m *MockBackend) ControllerTag() names.ControllerTag
- func (m *MockBackend) ControllerTimestamp() (*time.Time, error)
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) EndpointsRelation(arg0 ...state.Endpoint) (*state.Relation, error)
- func (m *MockBackend) FindEntity(arg0 names.Tag) (state.Entity, error)
- func (m *MockBackend) HAPrimaryMachine() (names.MachineTag, error)
- func (m *MockBackend) InferEndpoints(arg0 ...string) ([]state.Endpoint, error)
- func (m *MockBackend) IsController() bool
- func (m *MockBackend) LatestMigration() (state.ModelMigration, error)
- func (m *MockBackend) LatestPlaceholderCharm(arg0 *charm.URL) (*state.Charm, error)
- func (m *MockBackend) Machine(arg0 string) (*state.Machine, error)
- func (m *MockBackend) Model() (client.Model, error)
- func (m *MockBackend) ModelConfig() (*config.Config, error)
- func (m *MockBackend) ModelConstraints() (constraints.Value, error)
- func (m *MockBackend) ModelTag() names.ModelTag
- func (m *MockBackend) ModelUUID() string
- func (m *MockBackend) MongoSession() client.MongoSession
- func (m *MockBackend) RemoteApplication(arg0 string) (*state.RemoteApplication, error)
- func (m *MockBackend) RemoteConnectionStatus(arg0 string) (*state.RemoteConnectionStatus, error)
- func (m *MockBackend) RemoveUserAccess(arg0 names.UserTag, arg1 names.Tag) error
- func (m *MockBackend) SetAnnotations(arg0 state.GlobalEntity, arg1 map[string]string) error
- func (m *MockBackend) SetModelAgentVersion(arg0 version.Number, arg1 bool) error
- func (m *MockBackend) SetModelConstraints(arg0 constraints.Value) error
- func (m *MockBackend) Unit(arg0 string) (client.Unit, error)
- func (m *MockBackend) UpdateModelConfig(arg0 map[string]interface{}, arg1 []string, arg2 ...state.ValidateConfigFunc) error
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) APIHostPortsForClients() *gomock.Call
- func (mr *MockBackendMockRecorder) AbortCurrentUpgrade() *gomock.Call
- func (mr *MockBackendMockRecorder) AddControllerUser(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) AddMachineInsideMachine(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) AddMachineInsideNewMachine(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) AddOneMachine(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) AddRelation(arg0 ...interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) AllApplicationOffers() *gomock.Call
- func (mr *MockBackendMockRecorder) AllApplications() *gomock.Call
- func (mr *MockBackendMockRecorder) AllIPAddresses() *gomock.Call
- func (mr *MockBackendMockRecorder) AllLinkLayerDevices() *gomock.Call
- func (mr *MockBackendMockRecorder) AllMachines() *gomock.Call
- func (mr *MockBackendMockRecorder) AllModelUUIDs() *gomock.Call
- func (mr *MockBackendMockRecorder) AllRelations() *gomock.Call
- func (mr *MockBackendMockRecorder) AllRemoteApplications() *gomock.Call
- func (mr *MockBackendMockRecorder) AllSpaceInfos() *gomock.Call
- func (mr *MockBackendMockRecorder) AllSubnets() *gomock.Call
- func (mr *MockBackendMockRecorder) Annotations(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Application(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Charm(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockBackendMockRecorder) ControllerNodes() *gomock.Call
- func (mr *MockBackendMockRecorder) ControllerTag() *gomock.Call
- func (mr *MockBackendMockRecorder) ControllerTimestamp() *gomock.Call
- func (mr *MockBackendMockRecorder) EndpointsRelation(arg0 ...interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) FindEntity(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) HAPrimaryMachine() *gomock.Call
- func (mr *MockBackendMockRecorder) InferEndpoints(arg0 ...interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) IsController() *gomock.Call
- func (mr *MockBackendMockRecorder) LatestMigration() *gomock.Call
- func (mr *MockBackendMockRecorder) LatestPlaceholderCharm(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Machine(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Model() *gomock.Call
- func (mr *MockBackendMockRecorder) ModelConfig() *gomock.Call
- func (mr *MockBackendMockRecorder) ModelConstraints() *gomock.Call
- func (mr *MockBackendMockRecorder) ModelTag() *gomock.Call
- func (mr *MockBackendMockRecorder) ModelUUID() *gomock.Call
- func (mr *MockBackendMockRecorder) MongoSession() *gomock.Call
- func (mr *MockBackendMockRecorder) RemoteApplication(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) RemoteConnectionStatus(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) RemoveUserAccess(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) SetAnnotations(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) SetModelAgentVersion(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) SetModelConstraints(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Unit(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) UpdateModelConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockModel
- func (m *MockModel) AddUser(arg0 state.UserAccessSpec) (permission.UserAccess, error)
- func (m *MockModel) CloudCredentialTag() (names.CloudCredentialTag, bool)
- func (m *MockModel) CloudName() string
- func (m *MockModel) CloudRegion() string
- func (m *MockModel) Config() (*config.Config, error)
- func (m *MockModel) EXPECT() *MockModelMockRecorder
- func (m *MockModel) LatestToolsVersion() version.Number
- func (m *MockModel) Life() state.Life
- func (m *MockModel) MeterStatus() state.MeterStatus
- func (m *MockModel) Name() string
- func (m *MockModel) Owner() names.UserTag
- func (m *MockModel) SLALevel() string
- func (m *MockModel) SLAOwner() string
- func (m *MockModel) Status() (status.StatusInfo, error)
- func (m *MockModel) StatusHistory(arg0 status.StatusHistoryFilter) ([]status.StatusInfo, error)
- func (m *MockModel) Type() state.ModelType
- func (m *MockModel) UUID() string
- func (m *MockModel) Users() ([]permission.UserAccess, error)
- type MockModelMockRecorder
- func (mr *MockModelMockRecorder) AddUser(arg0 interface{}) *gomock.Call
- func (mr *MockModelMockRecorder) CloudCredentialTag() *gomock.Call
- func (mr *MockModelMockRecorder) CloudName() *gomock.Call
- func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call
- func (mr *MockModelMockRecorder) Config() *gomock.Call
- func (mr *MockModelMockRecorder) LatestToolsVersion() *gomock.Call
- func (mr *MockModelMockRecorder) Life() *gomock.Call
- func (mr *MockModelMockRecorder) MeterStatus() *gomock.Call
- func (mr *MockModelMockRecorder) Name() *gomock.Call
- func (mr *MockModelMockRecorder) Owner() *gomock.Call
- func (mr *MockModelMockRecorder) SLALevel() *gomock.Call
- func (mr *MockModelMockRecorder) SLAOwner() *gomock.Call
- func (mr *MockModelMockRecorder) Status() *gomock.Call
- func (mr *MockModelMockRecorder) StatusHistory(arg0 interface{}) *gomock.Call
- func (mr *MockModelMockRecorder) Type() *gomock.Call
- func (mr *MockModelMockRecorder) UUID() *gomock.Call
- func (mr *MockModelMockRecorder) Users() *gomock.Call
- type MockToolsFinder
- type MockToolsFinderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizer ¶
type MockAuthorizer struct {
// contains filtered or unexported fields
}
MockAuthorizer is a mock of Authorizer interface.
func NewMockAuthorizer ¶
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer
NewMockAuthorizer creates a new mock instance.
func (*MockAuthorizer) AuthApplicationAgent ¶
func (m *MockAuthorizer) AuthApplicationAgent() bool
AuthApplicationAgent mocks base method.
func (*MockAuthorizer) AuthClient ¶
func (m *MockAuthorizer) AuthClient() bool
AuthClient mocks base method.
func (*MockAuthorizer) AuthController ¶
func (m *MockAuthorizer) AuthController() bool
AuthController mocks base method.
func (*MockAuthorizer) AuthMachineAgent ¶
func (m *MockAuthorizer) AuthMachineAgent() bool
AuthMachineAgent mocks base method.
func (*MockAuthorizer) AuthModelAgent ¶
func (m *MockAuthorizer) AuthModelAgent() bool
AuthModelAgent mocks base method.
func (*MockAuthorizer) AuthOwner ¶
func (m *MockAuthorizer) AuthOwner(arg0 names.Tag) bool
AuthOwner mocks base method.
func (*MockAuthorizer) AuthUnitAgent ¶
func (m *MockAuthorizer) AuthUnitAgent() bool
AuthUnitAgent mocks base method.
func (*MockAuthorizer) ConnectedModel ¶
func (m *MockAuthorizer) ConnectedModel() string
ConnectedModel mocks base method.
func (*MockAuthorizer) EXPECT ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizer) GetAuthTag ¶
func (m *MockAuthorizer) GetAuthTag() names.Tag
GetAuthTag mocks base method.
func (*MockAuthorizer) HasPermission ¶
func (m *MockAuthorizer) HasPermission(arg0 permission.Access, arg1 names.Tag) (bool, error)
HasPermission mocks base method.
func (*MockAuthorizer) UserHasPermission ¶
func (m *MockAuthorizer) UserHasPermission(arg0 names.UserTag, arg1 permission.Access, arg2 names.Tag) (bool, error)
UserHasPermission mocks base method.
type MockAuthorizerMockRecorder ¶
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
func (*MockAuthorizerMockRecorder) AuthApplicationAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthApplicationAgent() *gomock.Call
AuthApplicationAgent indicates an expected call of AuthApplicationAgent.
func (*MockAuthorizerMockRecorder) AuthClient ¶
func (mr *MockAuthorizerMockRecorder) AuthClient() *gomock.Call
AuthClient indicates an expected call of AuthClient.
func (*MockAuthorizerMockRecorder) AuthController ¶
func (mr *MockAuthorizerMockRecorder) AuthController() *gomock.Call
AuthController indicates an expected call of AuthController.
func (*MockAuthorizerMockRecorder) AuthMachineAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *gomock.Call
AuthMachineAgent indicates an expected call of AuthMachineAgent.
func (*MockAuthorizerMockRecorder) AuthModelAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthModelAgent() *gomock.Call
AuthModelAgent indicates an expected call of AuthModelAgent.
func (*MockAuthorizerMockRecorder) AuthOwner ¶
func (mr *MockAuthorizerMockRecorder) AuthOwner(arg0 interface{}) *gomock.Call
AuthOwner indicates an expected call of AuthOwner.
func (*MockAuthorizerMockRecorder) AuthUnitAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthUnitAgent() *gomock.Call
AuthUnitAgent indicates an expected call of AuthUnitAgent.
func (*MockAuthorizerMockRecorder) ConnectedModel ¶
func (mr *MockAuthorizerMockRecorder) ConnectedModel() *gomock.Call
ConnectedModel indicates an expected call of ConnectedModel.
func (*MockAuthorizerMockRecorder) GetAuthTag ¶
func (mr *MockAuthorizerMockRecorder) GetAuthTag() *gomock.Call
GetAuthTag indicates an expected call of GetAuthTag.
func (*MockAuthorizerMockRecorder) HasPermission ¶
func (mr *MockAuthorizerMockRecorder) HasPermission(arg0, arg1 interface{}) *gomock.Call
HasPermission indicates an expected call of HasPermission.
func (*MockAuthorizerMockRecorder) UserHasPermission ¶
func (mr *MockAuthorizerMockRecorder) UserHasPermission(arg0, arg1, arg2 interface{}) *gomock.Call
UserHasPermission indicates an expected call of UserHasPermission.
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) APIHostPortsForClients ¶
func (m *MockBackend) APIHostPortsForClients() ([]network.SpaceHostPorts, error)
APIHostPortsForClients mocks base method.
func (*MockBackend) AbortCurrentUpgrade ¶
func (m *MockBackend) AbortCurrentUpgrade() error
AbortCurrentUpgrade mocks base method.
func (*MockBackend) AddControllerUser ¶
func (m *MockBackend) AddControllerUser(arg0 state.UserAccessSpec) (permission.UserAccess, error)
AddControllerUser mocks base method.
func (*MockBackend) AddMachineInsideMachine ¶
func (m *MockBackend) AddMachineInsideMachine(arg0 state.MachineTemplate, arg1 string, arg2 instance.ContainerType) (*state.Machine, error)
AddMachineInsideMachine mocks base method.
func (*MockBackend) AddMachineInsideNewMachine ¶
func (m *MockBackend) AddMachineInsideNewMachine(arg0, arg1 state.MachineTemplate, arg2 instance.ContainerType) (*state.Machine, error)
AddMachineInsideNewMachine mocks base method.
func (*MockBackend) AddOneMachine ¶
func (m *MockBackend) AddOneMachine(arg0 state.MachineTemplate) (*state.Machine, error)
AddOneMachine mocks base method.
func (*MockBackend) AddRelation ¶
AddRelation mocks base method.
func (*MockBackend) AllApplicationOffers ¶
func (m *MockBackend) AllApplicationOffers() ([]*crossmodel.ApplicationOffer, error)
AllApplicationOffers mocks base method.
func (*MockBackend) AllApplications ¶
func (m *MockBackend) AllApplications() ([]*state.Application, error)
AllApplications mocks base method.
func (*MockBackend) AllIPAddresses ¶
func (m *MockBackend) AllIPAddresses() ([]*state.Address, error)
AllIPAddresses mocks base method.
func (*MockBackend) AllLinkLayerDevices ¶
func (m *MockBackend) AllLinkLayerDevices() ([]*state.LinkLayerDevice, error)
AllLinkLayerDevices mocks base method.
func (*MockBackend) AllMachines ¶
func (m *MockBackend) AllMachines() ([]*state.Machine, error)
AllMachines mocks base method.
func (*MockBackend) AllModelUUIDs ¶
func (m *MockBackend) AllModelUUIDs() ([]string, error)
AllModelUUIDs mocks base method.
func (*MockBackend) AllRelations ¶
func (m *MockBackend) AllRelations() ([]*state.Relation, error)
AllRelations mocks base method.
func (*MockBackend) AllRemoteApplications ¶
func (m *MockBackend) AllRemoteApplications() ([]*state.RemoteApplication, error)
AllRemoteApplications mocks base method.
func (*MockBackend) AllSpaceInfos ¶
func (m *MockBackend) AllSpaceInfos() (network.SpaceInfos, error)
AllSpaceInfos mocks base method.
func (*MockBackend) AllSubnets ¶
func (m *MockBackend) AllSubnets() ([]*state.Subnet, error)
AllSubnets mocks base method.
func (*MockBackend) Annotations ¶
func (m *MockBackend) Annotations(arg0 state.GlobalEntity) (map[string]string, error)
Annotations mocks base method.
func (*MockBackend) Application ¶
func (m *MockBackend) Application(arg0 string) (client.Application, error)
Application mocks base method.
func (*MockBackend) ControllerConfig ¶
func (m *MockBackend) ControllerConfig() (controller.Config, error)
ControllerConfig mocks base method.
func (*MockBackend) ControllerNodes ¶
func (m *MockBackend) ControllerNodes() ([]state.ControllerNode, error)
ControllerNodes mocks base method.
func (*MockBackend) ControllerTag ¶
func (m *MockBackend) ControllerTag() names.ControllerTag
ControllerTag mocks base method.
func (*MockBackend) ControllerTimestamp ¶
func (m *MockBackend) ControllerTimestamp() (*time.Time, error)
ControllerTimestamp mocks base method.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) EndpointsRelation ¶
EndpointsRelation mocks base method.
func (*MockBackend) FindEntity ¶
FindEntity mocks base method.
func (*MockBackend) HAPrimaryMachine ¶
func (m *MockBackend) HAPrimaryMachine() (names.MachineTag, error)
HAPrimaryMachine mocks base method.
func (*MockBackend) InferEndpoints ¶
func (m *MockBackend) InferEndpoints(arg0 ...string) ([]state.Endpoint, error)
InferEndpoints mocks base method.
func (*MockBackend) IsController ¶
func (m *MockBackend) IsController() bool
IsController mocks base method.
func (*MockBackend) LatestMigration ¶
func (m *MockBackend) LatestMigration() (state.ModelMigration, error)
LatestMigration mocks base method.
func (*MockBackend) LatestPlaceholderCharm ¶
LatestPlaceholderCharm mocks base method.
func (*MockBackend) Machine ¶
func (m *MockBackend) Machine(arg0 string) (*state.Machine, error)
Machine mocks base method.
func (*MockBackend) Model ¶
func (m *MockBackend) Model() (client.Model, error)
Model mocks base method.
func (*MockBackend) ModelConfig ¶
func (m *MockBackend) ModelConfig() (*config.Config, error)
ModelConfig mocks base method.
func (*MockBackend) ModelConstraints ¶
func (m *MockBackend) ModelConstraints() (constraints.Value, error)
ModelConstraints mocks base method.
func (*MockBackend) ModelTag ¶
func (m *MockBackend) ModelTag() names.ModelTag
ModelTag mocks base method.
func (*MockBackend) ModelUUID ¶
func (m *MockBackend) ModelUUID() string
ModelUUID mocks base method.
func (*MockBackend) MongoSession ¶
func (m *MockBackend) MongoSession() client.MongoSession
MongoSession mocks base method.
func (*MockBackend) RemoteApplication ¶
func (m *MockBackend) RemoteApplication(arg0 string) (*state.RemoteApplication, error)
RemoteApplication mocks base method.
func (*MockBackend) RemoteConnectionStatus ¶
func (m *MockBackend) RemoteConnectionStatus(arg0 string) (*state.RemoteConnectionStatus, error)
RemoteConnectionStatus mocks base method.
func (*MockBackend) RemoveUserAccess ¶
RemoveUserAccess mocks base method.
func (*MockBackend) SetAnnotations ¶
func (m *MockBackend) SetAnnotations(arg0 state.GlobalEntity, arg1 map[string]string) error
SetAnnotations mocks base method.
func (*MockBackend) SetModelAgentVersion ¶
func (m *MockBackend) SetModelAgentVersion(arg0 version.Number, arg1 bool) error
SetModelAgentVersion mocks base method.
func (*MockBackend) SetModelConstraints ¶
func (m *MockBackend) SetModelConstraints(arg0 constraints.Value) error
SetModelConstraints mocks base method.
func (*MockBackend) Unit ¶
func (m *MockBackend) Unit(arg0 string) (client.Unit, error)
Unit mocks base method.
func (*MockBackend) UpdateModelConfig ¶
func (m *MockBackend) UpdateModelConfig(arg0 map[string]interface{}, arg1 []string, arg2 ...state.ValidateConfigFunc) error
UpdateModelConfig mocks base method.
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) APIHostPortsForClients ¶
func (mr *MockBackendMockRecorder) APIHostPortsForClients() *gomock.Call
APIHostPortsForClients indicates an expected call of APIHostPortsForClients.
func (*MockBackendMockRecorder) AbortCurrentUpgrade ¶
func (mr *MockBackendMockRecorder) AbortCurrentUpgrade() *gomock.Call
AbortCurrentUpgrade indicates an expected call of AbortCurrentUpgrade.
func (*MockBackendMockRecorder) AddControllerUser ¶
func (mr *MockBackendMockRecorder) AddControllerUser(arg0 interface{}) *gomock.Call
AddControllerUser indicates an expected call of AddControllerUser.
func (*MockBackendMockRecorder) AddMachineInsideMachine ¶
func (mr *MockBackendMockRecorder) AddMachineInsideMachine(arg0, arg1, arg2 interface{}) *gomock.Call
AddMachineInsideMachine indicates an expected call of AddMachineInsideMachine.
func (*MockBackendMockRecorder) AddMachineInsideNewMachine ¶
func (mr *MockBackendMockRecorder) AddMachineInsideNewMachine(arg0, arg1, arg2 interface{}) *gomock.Call
AddMachineInsideNewMachine indicates an expected call of AddMachineInsideNewMachine.
func (*MockBackendMockRecorder) AddOneMachine ¶
func (mr *MockBackendMockRecorder) AddOneMachine(arg0 interface{}) *gomock.Call
AddOneMachine indicates an expected call of AddOneMachine.
func (*MockBackendMockRecorder) AddRelation ¶
func (mr *MockBackendMockRecorder) AddRelation(arg0 ...interface{}) *gomock.Call
AddRelation indicates an expected call of AddRelation.
func (*MockBackendMockRecorder) AllApplicationOffers ¶
func (mr *MockBackendMockRecorder) AllApplicationOffers() *gomock.Call
AllApplicationOffers indicates an expected call of AllApplicationOffers.
func (*MockBackendMockRecorder) AllApplications ¶
func (mr *MockBackendMockRecorder) AllApplications() *gomock.Call
AllApplications indicates an expected call of AllApplications.
func (*MockBackendMockRecorder) AllIPAddresses ¶
func (mr *MockBackendMockRecorder) AllIPAddresses() *gomock.Call
AllIPAddresses indicates an expected call of AllIPAddresses.
func (*MockBackendMockRecorder) AllLinkLayerDevices ¶
func (mr *MockBackendMockRecorder) AllLinkLayerDevices() *gomock.Call
AllLinkLayerDevices indicates an expected call of AllLinkLayerDevices.
func (*MockBackendMockRecorder) AllMachines ¶
func (mr *MockBackendMockRecorder) AllMachines() *gomock.Call
AllMachines indicates an expected call of AllMachines.
func (*MockBackendMockRecorder) AllModelUUIDs ¶
func (mr *MockBackendMockRecorder) AllModelUUIDs() *gomock.Call
AllModelUUIDs indicates an expected call of AllModelUUIDs.
func (*MockBackendMockRecorder) AllRelations ¶
func (mr *MockBackendMockRecorder) AllRelations() *gomock.Call
AllRelations indicates an expected call of AllRelations.
func (*MockBackendMockRecorder) AllRemoteApplications ¶
func (mr *MockBackendMockRecorder) AllRemoteApplications() *gomock.Call
AllRemoteApplications indicates an expected call of AllRemoteApplications.
func (*MockBackendMockRecorder) AllSpaceInfos ¶
func (mr *MockBackendMockRecorder) AllSpaceInfos() *gomock.Call
AllSpaceInfos indicates an expected call of AllSpaceInfos.
func (*MockBackendMockRecorder) AllSubnets ¶
func (mr *MockBackendMockRecorder) AllSubnets() *gomock.Call
AllSubnets indicates an expected call of AllSubnets.
func (*MockBackendMockRecorder) Annotations ¶
func (mr *MockBackendMockRecorder) Annotations(arg0 interface{}) *gomock.Call
Annotations indicates an expected call of Annotations.
func (*MockBackendMockRecorder) Application ¶
func (mr *MockBackendMockRecorder) Application(arg0 interface{}) *gomock.Call
Application indicates an expected call of Application.
func (*MockBackendMockRecorder) Charm ¶
func (mr *MockBackendMockRecorder) Charm(arg0 interface{}) *gomock.Call
Charm indicates an expected call of Charm.
func (*MockBackendMockRecorder) ControllerConfig ¶
func (mr *MockBackendMockRecorder) ControllerConfig() *gomock.Call
ControllerConfig indicates an expected call of ControllerConfig.
func (*MockBackendMockRecorder) ControllerNodes ¶
func (mr *MockBackendMockRecorder) ControllerNodes() *gomock.Call
ControllerNodes indicates an expected call of ControllerNodes.
func (*MockBackendMockRecorder) ControllerTag ¶
func (mr *MockBackendMockRecorder) ControllerTag() *gomock.Call
ControllerTag indicates an expected call of ControllerTag.
func (*MockBackendMockRecorder) ControllerTimestamp ¶
func (mr *MockBackendMockRecorder) ControllerTimestamp() *gomock.Call
ControllerTimestamp indicates an expected call of ControllerTimestamp.
func (*MockBackendMockRecorder) EndpointsRelation ¶
func (mr *MockBackendMockRecorder) EndpointsRelation(arg0 ...interface{}) *gomock.Call
EndpointsRelation indicates an expected call of EndpointsRelation.
func (*MockBackendMockRecorder) FindEntity ¶
func (mr *MockBackendMockRecorder) FindEntity(arg0 interface{}) *gomock.Call
FindEntity indicates an expected call of FindEntity.
func (*MockBackendMockRecorder) HAPrimaryMachine ¶
func (mr *MockBackendMockRecorder) HAPrimaryMachine() *gomock.Call
HAPrimaryMachine indicates an expected call of HAPrimaryMachine.
func (*MockBackendMockRecorder) InferEndpoints ¶
func (mr *MockBackendMockRecorder) InferEndpoints(arg0 ...interface{}) *gomock.Call
InferEndpoints indicates an expected call of InferEndpoints.
func (*MockBackendMockRecorder) IsController ¶
func (mr *MockBackendMockRecorder) IsController() *gomock.Call
IsController indicates an expected call of IsController.
func (*MockBackendMockRecorder) LatestMigration ¶
func (mr *MockBackendMockRecorder) LatestMigration() *gomock.Call
LatestMigration indicates an expected call of LatestMigration.
func (*MockBackendMockRecorder) LatestPlaceholderCharm ¶
func (mr *MockBackendMockRecorder) LatestPlaceholderCharm(arg0 interface{}) *gomock.Call
LatestPlaceholderCharm indicates an expected call of LatestPlaceholderCharm.
func (*MockBackendMockRecorder) Machine ¶
func (mr *MockBackendMockRecorder) Machine(arg0 interface{}) *gomock.Call
Machine indicates an expected call of Machine.
func (*MockBackendMockRecorder) Model ¶
func (mr *MockBackendMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model.
func (*MockBackendMockRecorder) ModelConfig ¶
func (mr *MockBackendMockRecorder) ModelConfig() *gomock.Call
ModelConfig indicates an expected call of ModelConfig.
func (*MockBackendMockRecorder) ModelConstraints ¶
func (mr *MockBackendMockRecorder) ModelConstraints() *gomock.Call
ModelConstraints indicates an expected call of ModelConstraints.
func (*MockBackendMockRecorder) ModelTag ¶
func (mr *MockBackendMockRecorder) ModelTag() *gomock.Call
ModelTag indicates an expected call of ModelTag.
func (*MockBackendMockRecorder) ModelUUID ¶
func (mr *MockBackendMockRecorder) ModelUUID() *gomock.Call
ModelUUID indicates an expected call of ModelUUID.
func (*MockBackendMockRecorder) MongoSession ¶
func (mr *MockBackendMockRecorder) MongoSession() *gomock.Call
MongoSession indicates an expected call of MongoSession.
func (*MockBackendMockRecorder) RemoteApplication ¶
func (mr *MockBackendMockRecorder) RemoteApplication(arg0 interface{}) *gomock.Call
RemoteApplication indicates an expected call of RemoteApplication.
func (*MockBackendMockRecorder) RemoteConnectionStatus ¶
func (mr *MockBackendMockRecorder) RemoteConnectionStatus(arg0 interface{}) *gomock.Call
RemoteConnectionStatus indicates an expected call of RemoteConnectionStatus.
func (*MockBackendMockRecorder) RemoveUserAccess ¶
func (mr *MockBackendMockRecorder) RemoveUserAccess(arg0, arg1 interface{}) *gomock.Call
RemoveUserAccess indicates an expected call of RemoveUserAccess.
func (*MockBackendMockRecorder) SetAnnotations ¶
func (mr *MockBackendMockRecorder) SetAnnotations(arg0, arg1 interface{}) *gomock.Call
SetAnnotations indicates an expected call of SetAnnotations.
func (*MockBackendMockRecorder) SetModelAgentVersion ¶
func (mr *MockBackendMockRecorder) SetModelAgentVersion(arg0, arg1 interface{}) *gomock.Call
SetModelAgentVersion indicates an expected call of SetModelAgentVersion.
func (*MockBackendMockRecorder) SetModelConstraints ¶
func (mr *MockBackendMockRecorder) SetModelConstraints(arg0 interface{}) *gomock.Call
SetModelConstraints indicates an expected call of SetModelConstraints.
func (*MockBackendMockRecorder) Unit ¶
func (mr *MockBackendMockRecorder) Unit(arg0 interface{}) *gomock.Call
Unit indicates an expected call of Unit.
func (*MockBackendMockRecorder) UpdateModelConfig ¶
func (mr *MockBackendMockRecorder) UpdateModelConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
UpdateModelConfig indicates an expected call of UpdateModelConfig.
type MockModel ¶
type MockModel struct {
// contains filtered or unexported fields
}
MockModel is a mock of Model interface.
func NewMockModel ¶
func NewMockModel(ctrl *gomock.Controller) *MockModel
NewMockModel creates a new mock instance.
func (*MockModel) AddUser ¶
func (m *MockModel) AddUser(arg0 state.UserAccessSpec) (permission.UserAccess, error)
AddUser mocks base method.
func (*MockModel) CloudCredentialTag ¶
func (m *MockModel) CloudCredentialTag() (names.CloudCredentialTag, bool)
CloudCredentialTag mocks base method.
func (*MockModel) CloudRegion ¶
CloudRegion mocks base method.
func (*MockModel) EXPECT ¶
func (m *MockModel) EXPECT() *MockModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModel) LatestToolsVersion ¶
LatestToolsVersion mocks base method.
func (*MockModel) MeterStatus ¶
func (m *MockModel) MeterStatus() state.MeterStatus
MeterStatus mocks base method.
func (*MockModel) Status ¶
func (m *MockModel) Status() (status.StatusInfo, error)
Status mocks base method.
func (*MockModel) StatusHistory ¶
func (m *MockModel) StatusHistory(arg0 status.StatusHistoryFilter) ([]status.StatusInfo, error)
StatusHistory mocks base method.
func (*MockModel) Users ¶
func (m *MockModel) Users() ([]permission.UserAccess, error)
Users mocks base method.
type MockModelMockRecorder ¶
type MockModelMockRecorder struct {
// contains filtered or unexported fields
}
MockModelMockRecorder is the mock recorder for MockModel.
func (*MockModelMockRecorder) AddUser ¶
func (mr *MockModelMockRecorder) AddUser(arg0 interface{}) *gomock.Call
AddUser indicates an expected call of AddUser.
func (*MockModelMockRecorder) CloudCredentialTag ¶
func (mr *MockModelMockRecorder) CloudCredentialTag() *gomock.Call
CloudCredentialTag indicates an expected call of CloudCredentialTag.
func (*MockModelMockRecorder) CloudName ¶
func (mr *MockModelMockRecorder) CloudName() *gomock.Call
CloudName indicates an expected call of CloudName.
func (*MockModelMockRecorder) CloudRegion ¶
func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call
CloudRegion indicates an expected call of CloudRegion.
func (*MockModelMockRecorder) Config ¶
func (mr *MockModelMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockModelMockRecorder) LatestToolsVersion ¶
func (mr *MockModelMockRecorder) LatestToolsVersion() *gomock.Call
LatestToolsVersion indicates an expected call of LatestToolsVersion.
func (*MockModelMockRecorder) Life ¶
func (mr *MockModelMockRecorder) Life() *gomock.Call
Life indicates an expected call of Life.
func (*MockModelMockRecorder) MeterStatus ¶
func (mr *MockModelMockRecorder) MeterStatus() *gomock.Call
MeterStatus indicates an expected call of MeterStatus.
func (*MockModelMockRecorder) Name ¶
func (mr *MockModelMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockModelMockRecorder) Owner ¶
func (mr *MockModelMockRecorder) Owner() *gomock.Call
Owner indicates an expected call of Owner.
func (*MockModelMockRecorder) SLALevel ¶
func (mr *MockModelMockRecorder) SLALevel() *gomock.Call
SLALevel indicates an expected call of SLALevel.
func (*MockModelMockRecorder) SLAOwner ¶
func (mr *MockModelMockRecorder) SLAOwner() *gomock.Call
SLAOwner indicates an expected call of SLAOwner.
func (*MockModelMockRecorder) Status ¶
func (mr *MockModelMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockModelMockRecorder) StatusHistory ¶
func (mr *MockModelMockRecorder) StatusHistory(arg0 interface{}) *gomock.Call
StatusHistory indicates an expected call of StatusHistory.
func (*MockModelMockRecorder) Type ¶
func (mr *MockModelMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
func (*MockModelMockRecorder) UUID ¶
func (mr *MockModelMockRecorder) UUID() *gomock.Call
UUID indicates an expected call of UUID.
func (*MockModelMockRecorder) Users ¶
func (mr *MockModelMockRecorder) Users() *gomock.Call
Users indicates an expected call of Users.
type MockToolsFinder ¶
type MockToolsFinder struct {
// contains filtered or unexported fields
}
MockToolsFinder is a mock of ToolsFinder interface.
func NewMockToolsFinder ¶
func NewMockToolsFinder(ctrl *gomock.Controller) *MockToolsFinder
NewMockToolsFinder creates a new mock instance.
func (*MockToolsFinder) EXPECT ¶
func (m *MockToolsFinder) EXPECT() *MockToolsFinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockToolsFinder) FindTools ¶
func (m *MockToolsFinder) FindTools(arg0 params.FindToolsParams) (params.FindToolsResult, error)
FindTools mocks base method.
type MockToolsFinderMockRecorder ¶
type MockToolsFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockToolsFinderMockRecorder is the mock recorder for MockToolsFinder.
func (*MockToolsFinderMockRecorder) FindTools ¶
func (mr *MockToolsFinderMockRecorder) FindTools(arg0 interface{}) *gomock.Call
FindTools indicates an expected call of FindTools.