Documentation ¶
Overview ¶
Package mock_security is a generated GoMock package.
Index ¶
- type MockConfigProvider
- type MockConfigProviderMockRecorder
- type MockEnforcer
- func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
- func (m *MockEnforcer) Enforce(arg0 ...interface{}) (bool, error)
- func (m *MockEnforcer) GetPermissionsForUser(arg0 string, arg1 ...string) [][]string
- func (m *MockEnforcer) GetRolesForUser(arg0 string, arg1 ...string) ([]string, error)
- func (m *MockEnforcer) LoadPolicy() error
- func (m *MockEnforcer) StartAutoLoadPolicy(arg0 context.Context)
- 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) LoadPolicy() *gomock.Call
- func (mr *MockEnforcerMockRecorder) StartAutoLoadPolicy(arg0 interface{}) *gomock.Call
- type MockHttpProvider
- type MockHttpProviderMockRecorder
- type MockProvider
- type MockProviderMockRecorder
- type MockUserProvider
- func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder
- func (m *MockUserProvider) FindByAuthApiKey(arg0 string) (*security.User, error)
- func (m *MockUserProvider) FindByExternalSource(arg0 string, arg1 security.Source) (*security.User, error)
- func (m *MockUserProvider) FindByID(arg0 string) (*security.User, error)
- func (m *MockUserProvider) FindByUsername(arg0 string) (*security.User, error)
- func (m *MockUserProvider) Save(arg0 *security.User) error
- type MockUserProviderMockRecorder
- func (mr *MockUserProviderMockRecorder) FindByAuthApiKey(arg0 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByExternalSource(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByID(arg0 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) FindByUsername(arg0 interface{}) *gomock.Call
- func (mr *MockUserProviderMockRecorder) Save(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigProvider ¶
type MockConfigProvider struct {
// contains filtered or unexported fields
}
MockConfigProvider is a mock of ConfigProvider interface
func NewMockConfigProvider ¶
func NewMockConfigProvider(ctrl *gomock.Controller) *MockConfigProvider
NewMockConfigProvider creates a new mock instance
func (*MockConfigProvider) EXPECT ¶
func (m *MockConfigProvider) EXPECT() *MockConfigProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfigProvider) LoadCasConfig ¶
func (m *MockConfigProvider) LoadCasConfig() (*security.CasConfig, error)
LoadCasConfig mocks base method
func (*MockConfigProvider) LoadLdapConfig ¶
func (m *MockConfigProvider) LoadLdapConfig() (*security.LdapConfig, error)
LoadLdapConfig mocks base method
type MockConfigProviderMockRecorder ¶
type MockConfigProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigProviderMockRecorder is the mock recorder for MockConfigProvider
func (*MockConfigProviderMockRecorder) LoadCasConfig ¶
func (mr *MockConfigProviderMockRecorder) LoadCasConfig() *gomock.Call
LoadCasConfig indicates an expected call of LoadCasConfig
func (*MockConfigProviderMockRecorder) LoadLdapConfig ¶
func (mr *MockConfigProviderMockRecorder) LoadLdapConfig() *gomock.Call
LoadLdapConfig indicates an expected call of LoadLdapConfig
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
GetPermissionsForUser mocks base method
func (*MockEnforcer) GetRolesForUser ¶
func (m *MockEnforcer) GetRolesForUser(arg0 string, arg1 ...string) ([]string, error)
GetRolesForUser mocks base method
func (*MockEnforcer) LoadPolicy ¶
func (m *MockEnforcer) LoadPolicy() error
LoadPolicy mocks base method
func (*MockEnforcer) StartAutoLoadPolicy ¶
func (m *MockEnforcer) StartAutoLoadPolicy(arg0 context.Context)
StartAutoLoadPolicy 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) LoadPolicy ¶
func (mr *MockEnforcerMockRecorder) LoadPolicy() *gomock.Call
LoadPolicy indicates an expected call of LoadPolicy
func (*MockEnforcerMockRecorder) StartAutoLoadPolicy ¶
func (mr *MockEnforcerMockRecorder) StartAutoLoadPolicy(arg0 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) 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 ¶
func (m *MockProvider) Auth(arg0, arg1 string) (*security.User, error)
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 interface{}) *gomock.Call
Auth indicates an expected call of Auth
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 string) (*security.User, error)
FindByAuthApiKey mocks base method
func (*MockUserProvider) FindByExternalSource ¶
func (m *MockUserProvider) FindByExternalSource(arg0 string, arg1 security.Source) (*security.User, error)
FindByExternalSource mocks base method
func (*MockUserProvider) FindByID ¶
func (m *MockUserProvider) FindByID(arg0 string) (*security.User, error)
FindByID mocks base method
func (*MockUserProvider) FindByUsername ¶
func (m *MockUserProvider) FindByUsername(arg0 string) (*security.User, error)
FindByUsername 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 interface{}) *gomock.Call
FindByAuthApiKey indicates an expected call of FindByAuthApiKey
func (*MockUserProviderMockRecorder) FindByExternalSource ¶
func (mr *MockUserProviderMockRecorder) FindByExternalSource(arg0, arg1 interface{}) *gomock.Call
FindByExternalSource indicates an expected call of FindByExternalSource
func (*MockUserProviderMockRecorder) FindByID ¶
func (mr *MockUserProviderMockRecorder) FindByID(arg0 interface{}) *gomock.Call
FindByID indicates an expected call of FindByID
func (*MockUserProviderMockRecorder) FindByUsername ¶
func (mr *MockUserProviderMockRecorder) FindByUsername(arg0 interface{}) *gomock.Call
FindByUsername indicates an expected call of FindByUsername
func (*MockUserProviderMockRecorder) Save ¶
func (mr *MockUserProviderMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
Directories ¶
Path | Synopsis |
---|---|
Package mock_password is a generated GoMock package.
|
Package mock_password is a generated GoMock package. |
Package mock_provider is a generated GoMock package.
|
Package mock_provider is a generated GoMock package. |
Package mock_proxy is a generated GoMock package.
|
Package mock_proxy is a generated GoMock package. |