config

package
v1.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0, Apache-2.0 Imports: 1 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 Bound

type Bound struct {
	Lower, Upper int64
}

Bound defines a lower and upper bound.

type CS3

type CS3 struct {
	ProviderAddr string
	DataURL      string
	DataPrefix   string
	JWTSecret    string
}

CS3 is the cs3 implementation of the storage.

type Config

type Config struct {
	LDAP         LDAP
	HTTP         HTTP
	GRPC         GRPC
	Server       Server
	Asset        Asset
	Log          Log
	TokenManager TokenManager
	Repo         Repo
	Index        Index
	ServiceUser  ServiceUser
	Tracing      Tracing

	Context    context.Context
	Supervised bool
}

Config merges all Account config parameters.

func New

func New() *Config

New returns a new config.

type Disk

type Disk struct {
	Path string
}

Disk is the local disk implementation of the storage.

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
	CacheTTL  int
}

HTTP defines the available http configuration.

type Index

type Index struct {
	UID, GID Bound
}

Index defines config for indexes.

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
	File   string
}

Log defines the available logging configuration.

type Repo

type Repo struct {
	Disk Disk
	CS3  CS3
}

Repo defines which storage implementation is to be used.

type Server

type Server struct {
	Version        string
	Name           string
	HashDifficulty int
}

Server configures a server.

type ServiceUser

type ServiceUser struct {
	UUID     string
	Username string
	UID      int64
	GID      int64
}

ServiceUser defines the user required for EOS.

type TokenManager

type TokenManager struct {
	JWTSecret string
}

TokenManager is the config for using the reva token manager

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