Documentation ¶
Overview ¶
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 MockContext
- func (m *MockContext) Auth() facade.Authorizer
- func (m *MockContext) CachedModel(arg0 string) (*cache.Model, error)
- func (m *MockContext) Cancel() <-chan struct{}
- func (m *MockContext) Controller() *cache.Controller
- func (m *MockContext) Dispose()
- func (m *MockContext) EXPECT() *MockContextMockRecorder
- func (m *MockContext) Hub() facade.Hub
- func (m *MockContext) ID() string
- func (m *MockContext) LeadershipChecker() (leadership.Checker, error)
- func (m *MockContext) LeadershipClaimer(arg0 string) (leadership.Claimer, error)
- func (m *MockContext) LeadershipPinner(arg0 string) (leadership.Pinner, error)
- func (m *MockContext) LeadershipReader(arg0 string) (leadership.Reader, error)
- func (m *MockContext) LeadershipRevoker(arg0 string) (leadership.Revoker, error)
- func (m *MockContext) MultiwatcherFactory() multiwatcher.Factory
- func (m *MockContext) Presence() facade.Presence
- func (m *MockContext) Raft() facade.RaftContext
- func (m *MockContext) RequestRecorder() facade.RequestRecorder
- func (m *MockContext) Resources() facade.Resources
- func (m *MockContext) SingularClaimer() (lease.Claimer, error)
- func (m *MockContext) State() *state.State
- func (m *MockContext) StatePool() *state.StatePool
- type MockContextMockRecorder
- func (mr *MockContextMockRecorder) Auth() *gomock.Call
- func (mr *MockContextMockRecorder) CachedModel(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) Cancel() *gomock.Call
- func (mr *MockContextMockRecorder) Controller() *gomock.Call
- func (mr *MockContextMockRecorder) Dispose() *gomock.Call
- func (mr *MockContextMockRecorder) Hub() *gomock.Call
- func (mr *MockContextMockRecorder) ID() *gomock.Call
- func (mr *MockContextMockRecorder) LeadershipChecker() *gomock.Call
- func (mr *MockContextMockRecorder) LeadershipClaimer(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) LeadershipPinner(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) LeadershipReader(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) LeadershipRevoker(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) MultiwatcherFactory() *gomock.Call
- func (mr *MockContextMockRecorder) Presence() *gomock.Call
- func (mr *MockContextMockRecorder) Raft() *gomock.Call
- func (mr *MockContextMockRecorder) RequestRecorder() *gomock.Call
- func (mr *MockContextMockRecorder) Resources() *gomock.Call
- func (mr *MockContextMockRecorder) SingularClaimer() *gomock.Call
- func (mr *MockContextMockRecorder) State() *gomock.Call
- func (mr *MockContextMockRecorder) StatePool() *gomock.Call
- type MockResources
- type MockResourcesMockRecorder
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 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) CachedModel ¶
func (m *MockContext) CachedModel(arg0 string) (*cache.Model, error)
CachedModel mocks base method.
func (*MockContext) Cancel ¶
func (m *MockContext) Cancel() <-chan struct{}
Cancel mocks base method.
func (*MockContext) Controller ¶
func (m *MockContext) Controller() *cache.Controller
Controller 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) LeadershipChecker ¶
func (m *MockContext) LeadershipChecker() (leadership.Checker, error)
LeadershipChecker mocks base method.
func (*MockContext) LeadershipClaimer ¶
func (m *MockContext) LeadershipClaimer(arg0 string) (leadership.Claimer, error)
LeadershipClaimer mocks base method.
func (*MockContext) LeadershipPinner ¶
func (m *MockContext) LeadershipPinner(arg0 string) (leadership.Pinner, error)
LeadershipPinner mocks base method.
func (*MockContext) LeadershipReader ¶
func (m *MockContext) LeadershipReader(arg0 string) (leadership.Reader, error)
LeadershipReader mocks base method.
func (*MockContext) LeadershipRevoker ¶
func (m *MockContext) LeadershipRevoker(arg0 string) (leadership.Revoker, error)
LeadershipRevoker mocks base method.
func (*MockContext) MultiwatcherFactory ¶
func (m *MockContext) MultiwatcherFactory() multiwatcher.Factory
MultiwatcherFactory mocks base method.
func (*MockContext) Presence ¶
func (m *MockContext) Presence() facade.Presence
Presence mocks base method.
func (*MockContext) RequestRecorder ¶
func (m *MockContext) RequestRecorder() facade.RequestRecorder
RequestRecorder mocks base method.
func (*MockContext) Resources ¶
func (m *MockContext) Resources() facade.Resources
Resources mocks base method.
func (*MockContext) SingularClaimer ¶
func (m *MockContext) SingularClaimer() (lease.Claimer, error)
SingularClaimer mocks base method.
func (*MockContext) StatePool ¶
func (m *MockContext) StatePool() *state.StatePool
StatePool mocks base method.
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext.
func (*MockContextMockRecorder) Auth ¶
func (mr *MockContextMockRecorder) Auth() *gomock.Call
Auth indicates an expected call of Auth.
func (*MockContextMockRecorder) CachedModel ¶
func (mr *MockContextMockRecorder) CachedModel(arg0 interface{}) *gomock.Call
CachedModel indicates an expected call of CachedModel.
func (*MockContextMockRecorder) Cancel ¶
func (mr *MockContextMockRecorder) Cancel() *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockContextMockRecorder) Controller ¶
func (mr *MockContextMockRecorder) Controller() *gomock.Call
Controller indicates an expected call of Controller.
func (*MockContextMockRecorder) Dispose ¶
func (mr *MockContextMockRecorder) Dispose() *gomock.Call
Dispose indicates an expected call of Dispose.
func (*MockContextMockRecorder) Hub ¶
func (mr *MockContextMockRecorder) Hub() *gomock.Call
Hub indicates an expected call of Hub.
func (*MockContextMockRecorder) ID ¶
func (mr *MockContextMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockContextMockRecorder) LeadershipChecker ¶
func (mr *MockContextMockRecorder) LeadershipChecker() *gomock.Call
LeadershipChecker indicates an expected call of LeadershipChecker.
func (*MockContextMockRecorder) LeadershipClaimer ¶
func (mr *MockContextMockRecorder) LeadershipClaimer(arg0 interface{}) *gomock.Call
LeadershipClaimer indicates an expected call of LeadershipClaimer.
func (*MockContextMockRecorder) LeadershipPinner ¶
func (mr *MockContextMockRecorder) LeadershipPinner(arg0 interface{}) *gomock.Call
LeadershipPinner indicates an expected call of LeadershipPinner.
func (*MockContextMockRecorder) LeadershipReader ¶
func (mr *MockContextMockRecorder) LeadershipReader(arg0 interface{}) *gomock.Call
LeadershipReader indicates an expected call of LeadershipReader.
func (*MockContextMockRecorder) LeadershipRevoker ¶
func (mr *MockContextMockRecorder) LeadershipRevoker(arg0 interface{}) *gomock.Call
LeadershipRevoker indicates an expected call of LeadershipRevoker.
func (*MockContextMockRecorder) MultiwatcherFactory ¶
func (mr *MockContextMockRecorder) MultiwatcherFactory() *gomock.Call
MultiwatcherFactory indicates an expected call of MultiwatcherFactory.
func (*MockContextMockRecorder) Presence ¶
func (mr *MockContextMockRecorder) Presence() *gomock.Call
Presence indicates an expected call of Presence.
func (*MockContextMockRecorder) Raft ¶
func (mr *MockContextMockRecorder) Raft() *gomock.Call
Raft indicates an expected call of Raft.
func (*MockContextMockRecorder) RequestRecorder ¶
func (mr *MockContextMockRecorder) RequestRecorder() *gomock.Call
RequestRecorder indicates an expected call of RequestRecorder.
func (*MockContextMockRecorder) Resources ¶
func (mr *MockContextMockRecorder) Resources() *gomock.Call
Resources indicates an expected call of Resources.
func (*MockContextMockRecorder) SingularClaimer ¶
func (mr *MockContextMockRecorder) SingularClaimer() *gomock.Call
SingularClaimer indicates an expected call of SingularClaimer.
func (*MockContextMockRecorder) State ¶
func (mr *MockContextMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*MockContextMockRecorder) StatePool ¶
func (mr *MockContextMockRecorder) StatePool() *gomock.Call
StatePool indicates an expected call of StatePool.
type MockResources ¶
type MockResources struct {
// contains filtered or unexported fields
}
MockResources is a mock of Resources interface.
func NewMockResources ¶
func NewMockResources(ctrl *gomock.Controller) *MockResources
NewMockResources creates a new mock instance.
func (*MockResources) EXPECT ¶
func (m *MockResources) EXPECT() *MockResourcesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResources) Get ¶
func (m *MockResources) Get(arg0 string) facade.Resource
Get mocks base method.
func (*MockResources) Register ¶
func (m *MockResources) Register(arg0 facade.Resource) string
Register mocks base method.
func (*MockResources) Stop ¶
func (m *MockResources) Stop(arg0 string) error
Stop mocks base method.
type MockResourcesMockRecorder ¶
type MockResourcesMockRecorder struct {
// contains filtered or unexported fields
}
MockResourcesMockRecorder is the mock recorder for MockResources.
func (*MockResourcesMockRecorder) Get ¶
func (mr *MockResourcesMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockResourcesMockRecorder) Register ¶
func (mr *MockResourcesMockRecorder) Register(arg0 interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockResourcesMockRecorder) Stop ¶
func (mr *MockResourcesMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop.