config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 0 Imported by: 6

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

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
	TokenManager TokenManager
}

Config merges all Account config parameters.

func New

func New() *Config

New returns a new config.

type GRPC

type GRPC struct {
	Addr      string
	Namespace string
}

GRPC defines the available grpc configuration.

type HTTP

type HTTP struct {
	Addr      string
	Namespace string
	Root      string
}

HTTP defines the available http configuration.

type LDAP

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

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

LDAPSchema defines the available ldap schema configuration.

type Log

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.

type TokenManager

type TokenManager struct {
	JWTSecret string
}

TokenManager is the config for using the reva token manager

Jump to

Keyboard shortcuts

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