config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Datastore   string
	BaseDN      string
	Insecure    bool
	NameFormat  string
	GroupFormat string
	Servers     []string
	SSHKeyAttr  string
	UseGraphAPI bool
}

Backend defined the available backend configuration.

type Config

type Config struct {
	File           string
	Log            Log
	Debug          Debug
	HTTP           HTTP
	Tracing        Tracing
	Ldap           Ldap
	Ldaps          Ldaps
	Backend        Backend
	Fallback       Backend
	Version        string
	RoleBundleUUID string

	Context    context.Context
	Supervised bool
}

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 {
	Addr    string
	Enabled bool
}

Ldap defined the available LDAP configuration.

type Ldaps

type Ldaps struct {
	Addr    string
	Enabled bool
	Cert    string
	Key     string
}

Ldaps defined the available LDAPS configuration.

type Log

type Log struct {
	Level  string
	Pretty bool
	Color  bool
	File   string
}

Log defines the available logging 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