Documentation
¶
Index ¶
- type AuthenticationBackend
- type AuthenticationManager
- func (_m *AuthenticationManager) Authenticate(ctx context.Context, credentials map[string]interface{}) (interfaces.User, error)
- func (_m *AuthenticationManager) RegisterBackend(name string, backend backends.AuthenticationBackend)
- func (_m *AuthenticationManager) ValidateToken(ctx context.Context, token string) (interfaces.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationBackend ¶
AuthenticationBackend is an autogenerated mock type for the AuthenticationBackend type
func NewAuthenticationBackend ¶
func NewAuthenticationBackend(t interface {
mock.TestingT
Cleanup(func())
}) *AuthenticationBackend
NewAuthenticationBackend creates a new instance of AuthenticationBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthenticationBackend) Authenticate ¶
func (_m *AuthenticationBackend) Authenticate(ctx context.Context, credentials map[string]interface{}) (interfaces.User, error)
Authenticate provides a mock function with given fields: ctx, credentials
func (*AuthenticationBackend) ValidateToken ¶
func (_m *AuthenticationBackend) ValidateToken(ctx context.Context, token string) (interfaces.User, error)
ValidateToken provides a mock function with given fields: ctx, token
type AuthenticationManager ¶
AuthenticationManager is an autogenerated mock type for the AuthenticationManager type
func NewAuthenticationManager ¶
func NewAuthenticationManager(t interface {
mock.TestingT
Cleanup(func())
}) *AuthenticationManager
NewAuthenticationManager creates a new instance of AuthenticationManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthenticationManager) Authenticate ¶
func (_m *AuthenticationManager) Authenticate(ctx context.Context, credentials map[string]interface{}) (interfaces.User, error)
Authenticate provides a mock function with given fields: ctx, credentials
func (*AuthenticationManager) RegisterBackend ¶
func (_m *AuthenticationManager) RegisterBackend(name string, backend backends.AuthenticationBackend)
RegisterBackend provides a mock function with given fields: name, backend
func (*AuthenticationManager) ValidateToken ¶
func (_m *AuthenticationManager) ValidateToken(ctx context.Context, token string) (interfaces.User, error)
ValidateToken provides a mock function with given fields: ctx, token