auth

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthManager

type AuthManager struct {
	// contains filtered or unexported fields
}

AuthManager represents a manager for the user authentication.

func NewAuthManager

func NewAuthManager() *AuthManager

NewAuthManager returns a new manager.

func (*AuthManager) AddAuthMethod

func (mgr *AuthManager) AddAuthMethod(method AuthMethod)

AddAuthMethod adds a new authentication method.

func (*AuthManager) AuthMethods

func (mgr *AuthManager) AuthMethods() []AuthMethod

AuthMethods returns the list of registered auth methods implemented by this auth server.

func (*AuthManager) DefaultAuthMethodDescription

func (mgr *AuthManager) DefaultAuthMethodDescription() AuthMethodDescription

DefaultAuthMethodDescription returns MysqlNativePassword as the default authentication method for the auth server implementation.

type AuthMethod

type AuthMethod = vitessmy.AuthMethod

AuthMethod is an interface used for the user authentication.

type AuthMethodDescription

type AuthMethodDescription = vitessmy.AuthMethodDescription

AuthMethodDescription is an interface used for the user authentication.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL