Documentation
¶
Overview ¶
Package auth contains any known Authenticator extensions that may be selected at build-time for use in kwild. Authenticator extensions are used to expand the type of signatures that may be verified, and define address derivation for the public keys of the corresponding type.
Build constraints a.k.a. build tags are used to enable extensions in a kwild binary. See README.md in the extensions package for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAuthenticatorExists is returned when an authenticator is already registered ErrAuthenticatorExists = errors.New("authenticator already exists") // ErrAuthenticatorNotFound is returned when an authenticator is not found ErrAuthenticatorNotFound = errors.New("authenticator not found") )
Functions ¶
func GetAuthenticator ¶
func GetAuthenticator(name string) (auth.Authenticator, error)
getAuthenticator returns an authenticator by the name it was registered with
func RegisterAuthenticator ¶
func RegisterAuthenticator(name string, auth auth.Authenticator) error
RegisterAuthenticator registers an authenticator with a given name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.