config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
	Service Service         `yaml:"-"`
	Tracing *Tracing        `yaml:"tracing"`
	Log     *Log            `yaml:"log"`
	Debug   Debug           `yaml:"debug"`

	GRPC GRPCConfig `yaml:"grpc"`

	TokenManager *TokenManager `yaml:"token_manager"`
	Reva         *shared.Reva  `yaml:"reva"`

	SkipUserGroupsInToken bool `` /* 195-byte string literal not displayed */

	StorageProvider StorageProvider `yaml:"storage_provider"`

	Context context.Context `yaml:"-"`
}

type Debug

type Debug struct {
	Addr   string `` /* 183-byte string literal not displayed */
	Token  string `yaml:"token" env:"STORAGE_PUBLICLINK_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
	Pprof  bool   `` /* 132-byte string literal not displayed */
	Zpages bool   `` /* 165-byte string literal not displayed */
}

type GRPCConfig

type GRPCConfig struct {
	Addr      string                 `yaml:"addr" env:"STORAGE_PUBLICLINK_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
	TLS       *shared.GRPCServiceTLS `yaml:"tls"`
	Namespace string                 `yaml:"-"`
	Protocol  string                 `` /* 150-byte string literal not displayed */
}

type Log

type Log struct {
	Level  string `` /* 189-byte string literal not displayed */
	Pretty bool   `` /* 127-byte string literal not displayed */
	Color  bool   `` /* 127-byte string literal not displayed */
	File   string `` /* 157-byte string literal not displayed */
}

type Service

type Service struct {
	Name string `yaml:"-"`
}

type StorageProvider

type StorageProvider struct {
	MountID string `` /* 324-byte string literal not displayed */
}

type TokenManager

type TokenManager struct {
	JWTSecret string `` /* 146-byte string literal not displayed */
}

TokenManager is the config for using the reva token manager

type Tracing

type Tracing struct {
	Enabled   bool   `` /* 128-byte string literal not displayed */
	Type      string `` /* 221-byte string literal not displayed */
	Endpoint  string `` /* 147-byte string literal not displayed */
	Collector string `` /* 267-byte string literal not displayed */
}

Tracing defines the tracing config.

func (Tracing) Convert

func (t Tracing) Convert() tracing.Config

Convert Tracing to the tracing package's Config struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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