auth

package
v0.7.6 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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