Documentation
¶
Index ¶
- Constants
- Variables
- func BoolStrValue(v *structpb.Value) bool
- func ConfigToJSONString(c *configv1.Config) string
- func LogFIPS()
- func Logger(name string) telemetry.Logger
- func NewLogSystem(log telemetry.Logger, cfg *configv1.Config) run.Unit
- func NewLogrAdapter(s telemetry.Logger) logr.Logger
- type LocalConfigFile
Constants ¶
const ( ScopeOIDC = "openid" ClientAuthenticationBasic = "client_secret_basic" ClientAuthenticationPost = "client_secret_post" ClientAuthenticationJWT = "client_secret_jwt" ClientAuthenticationPrivateKey = "private_key_jwt" ClientAuthenticationNone = "none" )
const ( Authz = "authz" Config = "config" Default = "default" Health = "health" IDP = "idp" JWKS = "jwks" Requests = "requests" Server = "server" Session = "session" K8s = "k8s" Secrets = "secrets" Watch = "watch" )
Variables ¶
var ( ErrInvalidPath = errors.New("invalid path") ErrInvalidOIDCOverride = errors.New("invalid OIDC override") ErrDuplicateOIDCConfig = errors.New("duplicate OIDC configuration") ErrMultipleOIDCConfig = errors.New("multiple OIDC configurations") ErrInvalidURL = errors.New("invalid URL") ErrRequiredURL = errors.New("required URL") ErrHealthPortInUse = errors.New("health port is already in use by listen port") ErrMustNotBeRootPath = errors.New("must not be root path") ErrMustBeDifferentPath = errors.New("must be different path") )
var ErrInvalidLogLevel = errors.New("invalid log level")
ErrInvalidLogLevel is returned when the configured log level is invalid.
Functions ¶
func BoolStrValue ¶
BoolStrValue returns the bool value of a structpb.Value. It expects the input to be a structpb.Value of type string or bool that represents a boolean value. This method is a convenience method for backwards-compatibility with the previous versions of the authservice.
func ConfigToJSONString ¶
func Logger ¶
Logger gets the given logging scope, or return the Noop logger if no scope has been registered with the given name.
func NewLogSystem ¶
NewLogSystem returns a new run.Unit that sets up the logging system.
Types ¶
type LocalConfigFile ¶
LocalConfigFile is a run.Config that loads the configuration file.
func (*LocalConfigFile) FlagSet ¶
func (l *LocalConfigFile) FlagSet() *run.FlagSet
FlagSet returns the flags used to customize the config file location.
func (*LocalConfigFile) Name ¶
func (l *LocalConfigFile) Name() string
Name returns the name of the unit in the run.Group.
func (*LocalConfigFile) Validate ¶
func (l *LocalConfigFile) Validate() error
Validate and load the configuration file.