config

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthnSettings added in v0.23.0

type AuthnSettings map[string]string

AuthnSettings represents a group of authenticator client configuration settings.

func GatherSettings added in v0.23.0

func GatherSettings(conf Configuration, getters ...func(key string) string) AuthnSettings

GatherSettings retrieves authenticator client configuration settings from a slice of arbitrary `func(key string) string` functions. Values received from 'Getter' functions are prioritized in the order that the functions are provided.

type Configuration added in v0.23.0

type Configuration interface {
	LoadConfig(settings map[string]string)
	GetEnvVariables() []string
	GetRequiredVariables() []string
	GetDefaultValues() map[string]string
	GetContainerMode() string
	GetTokenFilePath() string
	GetTokenTimeout() time.Duration
}

Configuration defines interface for Configuration of an authentication flow

func ConfigFromEnv added in v0.23.0

func ConfigFromEnv(readFileFunc common.ReadFileFunc) (Configuration, error)

ConfigFromEnv returns a new authenticator configuration object

func NewConfigFromCustomEnv added in v0.23.0

func NewConfigFromCustomEnv(readFileFunc common.ReadFileFunc, customEnv func(key string) string) (Configuration, error)

func NewConfigFromEnv added in v0.23.0

func NewConfigFromEnv() (Configuration, error)

NewConfigFromEnv returns a config ConfigFromEnv using the standard file reader for reading certs

Jump to

Keyboard shortcuts

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