config

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Overview

Package config should be moved to internal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset added in v0.2.0

type Asset struct {
	Path string
}

Asset defines the available asset configuration.

type Config

type Config struct {
	LDAP   LDAP
	HTTP   HTTP
	GRPC   GRPC
	Server Server
	Asset  Asset
	Log    Log
}

Config merges all Account config parameters.

func New

func New() *Config

New returns a new config.

type GRPC added in v0.2.0

type GRPC struct {
	Addr      string
	Namespace string
}

GRPC defines the available grpc configuration.

type HTTP added in v0.2.0

type HTTP struct {
	Addr      string
	Namespace string
	Root      string
}

HTTP defines the available http configuration.

type LDAP added in v0.2.0

type LDAP struct {
	Hostname     string
	Port         int
	BaseDN       string
	UserFilter   string
	GroupFilter  string
	BindDN       string
	BindPassword string
	IDP          string
	Schema       LDAPSchema
}

LDAP defines the available ldap configuration.

type LDAPSchema added in v0.2.0

type LDAPSchema struct {
	AccountID   string
	Identities  string
	Username    string
	DisplayName string
	Mail        string
	Groups      string
}

LDAPSchema defines the available ldap schema configuration.

type Log added in v0.1.1

type Log struct {
	Level  string
	Pretty bool
	Color  bool
}

Log defines the available logging configuration.

type Server

type Server struct {
	Name             string
	AccountsDataPath string
}

Server configures a server.

Jump to

Keyboard shortcuts

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