registry

package
v2.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewTokenFuncs = map[string]NewTokenFunc{}

NewTokenFuncs is a map containing all the registered token writers.

Functions

func Register

func Register(name string, f NewTokenFunc)

Register registers a new token writer strategy new function. Not safe for concurrent use. Safe for use from package init.

Types

type NewTokenFunc

type NewTokenFunc func(map[string]interface{}) (auth.TokenWriter, error)

NewTokenFunc is the function that token writers should register at init time.

Jump to

Keyboard shortcuts

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