config

package
v0.0.0-...-f1efadd Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File          string
	Log           Log
	Debug         Debug
	HTTP          HTTP
	Tracing       Tracing
	Ldap          Ldap
	OpenIDConnect OpenIDConnect
	Reva          Reva
}

Config combines all available configuration parts.

func New

func New() *Config

New initializes a new configuration with or without defaults.

type Debug

type Debug struct {
	Addr   string
	Token  string
	Pprof  bool
	Zpages bool
}

Debug defines the available debug configuration.

type HTTP

type HTTP struct {
	Addr      string
	Namespace string
	Root      string
}

HTTP defines the available http configuration.

type Ldap

type Ldap struct {
	Network      string
	Address      string
	UserName     string
	Password     string
	BaseDNUsers  string
	BaseDNGroups string
}

Ldap defined the available LDAP configuration.

type Log

type Log struct {
	Level  string
	Pretty bool
	Color  bool
}

Log defines the available logging configuration.

type OpenIDConnect

type OpenIDConnect struct {
	Endpoint    string
	Realm       string
	SigningAlgs []string
	Insecure    bool
}

OpenIDConnect defined the available OpenID Connect configuration.

type Reva

type Reva struct {
	Address string
}

Reva defines all available REVA configuration.

type Tracing

type Tracing struct {
	Enabled   bool
	Type      string
	Endpoint  string
	Collector string
	Service   string
}

Tracing defines the available tracing configuration.

Jump to

Keyboard shortcuts

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