Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider interface { Login(context context.Context, authData map[string]interface{}) (string, map[string]interface{}, error) Logout(context context.Context, authData map[string]interface{}) (map[string]interface{}, error) Info(context context.Context, authData map[string]interface{}) (map[string]interface{}, error) }
AuthProvider is an interface to provide user authentication.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry contains registered providers, which provide additional functionality implemented by plugins.
func (*Registry) GetAuthProvider ¶
func (r *Registry) GetAuthProvider(name string) (AuthProvider, error)
GetAuthProvider gets an AuthProvider from the registry.
func (*Registry) RegisterAuthProvider ¶
func (r *Registry) RegisterAuthProvider(name string, p AuthProvider)
RegisterAuthProvider registers an AuthProvider with the registry.
Click to show internal directories.
Click to hide internal directories.