Documentation ¶
Overview ¶
Package mock_security is a generated GoMock package.
Index ¶
- type MockEnforcer
- func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
- func (m *MockEnforcer) Enforce(arg0 ...interface{}) (bool, error)
- func (m *MockEnforcer) GetPermissionsForUser(arg0 string, arg1 ...string) ([][]string, error)
- func (m *MockEnforcer) GetRolesForUser(arg0 string, arg1 ...string) ([]string, error)
- func (m *MockEnforcer) HasPermissionForUser(arg0 string, arg1 ...string) (bool, error)
- func (m *MockEnforcer) LoadPolicy() error
- func (m *MockEnforcer) StartAutoLoadPolicy(arg0 context.Context, arg1 time.Duration)
- type MockEnforcerMockRecorder
- func (mr *MockEnforcerMockRecorder) Enforce(arg0 ...interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) GetPermissionsForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) GetRolesForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) HasPermissionForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) LoadPolicy() *gomock.Call
- func (mr *MockEnforcerMockRecorder) StartAutoLoadPolicy(arg0, arg1 interface{}) *gomock.Call
- type MockHttpProvider
- type MockHttpProviderMockRecorder
- type MockProvider
- type MockProviderMockRecorder
- type MockRoleProvider
- type MockRoleProviderMockRecorder
- type MockUserProvider
- func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder
- func (m *MockUserProvider) FindByAuthApiKey(arg0 context.Context, arg1 string) (*security.User, error)
- func (m *MockUserProvider) FindByExternalSource(arg0 context.Context, arg1, arg2 string) (*security.User, error)
- func (m *MockUserProvider) FindByID(arg0 context.Context, arg1 string) (*security.User, error)
- func (m *MockUserProvider) FindByUsername(arg0 context.Context, arg1 string) (*security.User, error)
- func (m *MockUserProvider) FindWithoutPermission(arg0 context.Context, arg1 string) ([]security.User, error)
- func (m *MockUserProvider) Save(arg0 context.Context, arg1 *security.User) error
- func (m *MockUserProvider) UpdateHashedPassword(arg0 context.Context, arg1, arg2 string) error
- type MockUserProviderMockRecorder
- func (mr *MockUserProviderMockRecorder) FindByAuthApiKey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByExternalSource(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByUsername(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindWithoutPermission(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) UpdateHashedPassword(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnforcer ¶
type MockEnforcer struct {
// contains filtered or unexported fields
}
MockEnforcer is a mock of Enforcer interface.
func NewMockEnforcer ¶
func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer
NewMockEnforcer creates a new mock instance.
func (*MockEnforcer) EXPECT ¶
func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnforcer) Enforce ¶
func (m *MockEnforcer) Enforce(arg0 ...interface{}) (bool, error)
Enforce mocks base method.
func (*MockEnforcer) GetPermissionsForUser ¶
func (m *MockEnforcer) GetPermissionsForUser(arg0 string, arg1 ...string) ([][]string, error)
GetPermissionsForUser mocks base method.
func (*MockEnforcer) GetRolesForUser ¶
func (m *MockEnforcer) GetRolesForUser(arg0 string, arg1 ...string) ([]string, error)
GetRolesForUser mocks base method.
func (*MockEnforcer) HasPermissionForUser ¶
func (m *MockEnforcer) HasPermissionForUser(arg0 string, arg1 ...string) (bool, error)
HasPermissionForUser mocks base method.
func (*MockEnforcer) LoadPolicy ¶
func (m *MockEnforcer) LoadPolicy() error
LoadPolicy mocks base method.
type MockEnforcerMockRecorder ¶
type MockEnforcerMockRecorder struct {
// contains filtered or unexported fields
}
MockEnforcerMockRecorder is the mock recorder for MockEnforcer.
func (*MockEnforcerMockRecorder) Enforce ¶
func (mr *MockEnforcerMockRecorder) Enforce(arg0 ...interface{}) *gomock.Call
Enforce indicates an expected call of Enforce.
func (*MockEnforcerMockRecorder) GetPermissionsForUser ¶
func (mr *MockEnforcerMockRecorder) GetPermissionsForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GetPermissionsForUser indicates an expected call of GetPermissionsForUser.
func (*MockEnforcerMockRecorder) GetRolesForUser ¶
func (mr *MockEnforcerMockRecorder) GetRolesForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GetRolesForUser indicates an expected call of GetRolesForUser.
func (*MockEnforcerMockRecorder) HasPermissionForUser ¶
func (mr *MockEnforcerMockRecorder) HasPermissionForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
HasPermissionForUser indicates an expected call of HasPermissionForUser.
func (*MockEnforcerMockRecorder) LoadPolicy ¶
func (mr *MockEnforcerMockRecorder) LoadPolicy() *gomock.Call
LoadPolicy indicates an expected call of LoadPolicy.
func (*MockEnforcerMockRecorder) StartAutoLoadPolicy ¶
func (mr *MockEnforcerMockRecorder) StartAutoLoadPolicy(arg0, arg1 interface{}) *gomock.Call
StartAutoLoadPolicy indicates an expected call of StartAutoLoadPolicy.
type MockHttpProvider ¶
type MockHttpProvider struct {
// contains filtered or unexported fields
}
MockHttpProvider is a mock of HttpProvider interface.
func NewMockHttpProvider ¶
func NewMockHttpProvider(ctrl *gomock.Controller) *MockHttpProvider
NewMockHttpProvider creates a new mock instance.
func (*MockHttpProvider) Auth ¶
Auth mocks base method.
func (*MockHttpProvider) EXPECT ¶
func (m *MockHttpProvider) EXPECT() *MockHttpProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHttpProviderMockRecorder ¶
type MockHttpProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpProviderMockRecorder is the mock recorder for MockHttpProvider.
func (*MockHttpProviderMockRecorder) Auth ¶
func (mr *MockHttpProviderMockRecorder) Auth(arg0 interface{}) *gomock.Call
Auth indicates an expected call of Auth.
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) Auth ¶
Auth mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) Auth ¶
func (mr *MockProviderMockRecorder) Auth(arg0, arg1, arg2 interface{}) *gomock.Call
Auth indicates an expected call of Auth.
func (*MockProviderMockRecorder) GetName ¶
func (mr *MockProviderMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
type MockRoleProvider ¶
type MockRoleProvider struct {
// contains filtered or unexported fields
}
MockRoleProvider is a mock of RoleProvider interface.
func NewMockRoleProvider ¶
func NewMockRoleProvider(ctrl *gomock.Controller) *MockRoleProvider
NewMockRoleProvider creates a new mock instance.
func (*MockRoleProvider) EXPECT ¶
func (m *MockRoleProvider) EXPECT() *MockRoleProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleProvider) GetRoleID ¶
GetRoleID mocks base method.
type MockRoleProviderMockRecorder ¶
type MockRoleProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleProviderMockRecorder is the mock recorder for MockRoleProvider.
func (*MockRoleProviderMockRecorder) GetRoleID ¶
func (mr *MockRoleProviderMockRecorder) GetRoleID(arg0, arg1 interface{}) *gomock.Call
GetRoleID indicates an expected call of GetRoleID.
func (*MockRoleProviderMockRecorder) GetValidRoleIDs ¶
func (mr *MockRoleProviderMockRecorder) GetValidRoleIDs(arg0, arg1, arg2 interface{}) *gomock.Call
GetValidRoleIDs indicates an expected call of GetValidRoleIDs.
type MockUserProvider ¶
type MockUserProvider struct {
// contains filtered or unexported fields
}
MockUserProvider is a mock of UserProvider interface.
func NewMockUserProvider ¶
func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider
NewMockUserProvider creates a new mock instance.
func (*MockUserProvider) EXPECT ¶
func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserProvider) FindByAuthApiKey ¶
func (m *MockUserProvider) FindByAuthApiKey(arg0 context.Context, arg1 string) (*security.User, error)
FindByAuthApiKey mocks base method.
func (*MockUserProvider) FindByExternalSource ¶
func (m *MockUserProvider) FindByExternalSource(arg0 context.Context, arg1, arg2 string) (*security.User, error)
FindByExternalSource mocks base method.
func (*MockUserProvider) FindByID ¶
FindByID mocks base method.
func (*MockUserProvider) FindByUsername ¶
func (m *MockUserProvider) FindByUsername(arg0 context.Context, arg1 string) (*security.User, error)
FindByUsername mocks base method.
func (*MockUserProvider) FindWithoutPermission ¶
func (m *MockUserProvider) FindWithoutPermission(arg0 context.Context, arg1 string) ([]security.User, error)
FindWithoutPermission mocks base method.
func (*MockUserProvider) Save ¶
Save mocks base method.
type MockUserProviderMockRecorder ¶
type MockUserProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockUserProviderMockRecorder is the mock recorder for MockUserProvider.
func (*MockUserProviderMockRecorder) FindByAuthApiKey ¶
func (mr *MockUserProviderMockRecorder) FindByAuthApiKey(arg0, arg1 interface{}) *gomock.Call
FindByAuthApiKey indicates an expected call of FindByAuthApiKey.
func (*MockUserProviderMockRecorder) FindByExternalSource ¶
func (mr *MockUserProviderMockRecorder) FindByExternalSource(arg0, arg1, arg2 interface{}) *gomock.Call
FindByExternalSource indicates an expected call of FindByExternalSource.
func (*MockUserProviderMockRecorder) FindByID ¶
func (mr *MockUserProviderMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockUserProviderMockRecorder) FindByUsername ¶
func (mr *MockUserProviderMockRecorder) FindByUsername(arg0, arg1 interface{}) *gomock.Call
FindByUsername indicates an expected call of FindByUsername.
func (*MockUserProviderMockRecorder) FindWithoutPermission ¶
func (mr *MockUserProviderMockRecorder) FindWithoutPermission(arg0, arg1 interface{}) *gomock.Call
FindWithoutPermission indicates an expected call of FindWithoutPermission.
func (*MockUserProviderMockRecorder) Save ¶
func (mr *MockUserProviderMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
Save indicates an expected call of Save.
func (*MockUserProviderMockRecorder) UpdateHashedPassword ¶
func (mr *MockUserProviderMockRecorder) UpdateHashedPassword(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateHashedPassword indicates an expected call of UpdateHashedPassword.