config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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"`

	GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`

	TokenManager *TokenManager `yaml:"token_manager"`

	RevaGateway string `yaml:"reva_gateway" env:"OC_REVA_GATEWAY" desc:"CS3 gateway used to look up user metadata" introductionVersion:"1.0.0"`
	Events      Events `yaml:"events"`

	ServiceAccount ServiceAccount `yaml:"service_account"`

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

Config combines all available configuration parts.

type Debug

type Debug struct {
	Addr   string `` /* 174-byte string literal not displayed */
	Token  string `yaml:"token" env:"CLIENTLOG_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
	Pprof  bool   `yaml:"pprof" env:"CLIENTLOG_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
	Zpages bool   `` /* 156-byte string literal not displayed */
}

Debug defines the available debug configuration.

type Events

type Events struct {
	Endpoint             string `` /* 247-byte string literal not displayed */
	Cluster              string `` /* 289-byte string literal not displayed */
	TLSInsecure          bool   `` /* 149-byte string literal not displayed */
	TLSRootCACertificate string `` /* 286-byte string literal not displayed */
	EnableTLS            bool   `` /* 259-byte string literal not displayed */
	AuthUsername         string `` /* 264-byte string literal not displayed */
	AuthPassword         string `` /* 264-byte string literal not displayed */
}

Events combines the configuration options for the event bus.

type Log

type Log struct {
	Level  string `` /* 196-byte string literal not displayed */
	Pretty bool   `` /* 134-byte string literal not displayed */
	Color  bool   `` /* 134-byte string literal not displayed */
	File   string `` /* 164-byte string literal not displayed */
}

Log defines the available log configuration.

type Service

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

Service defines the available service configuration.

type ServiceAccount

type ServiceAccount struct {
	ServiceAccountID     string `` /* 232-byte string literal not displayed */
	ServiceAccountSecret string `` /* 157-byte string literal not displayed */
}

ServiceAccount is the configuration for the used service account

type TokenManager

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

TokenManager is the config for using the reva token manager

type Tracing

type Tracing struct {
	Enabled   bool   `yaml:"enabled" env:"OC_TRACING_ENABLED;CLIENTLOG_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
	Type      string `` /* 212-byte string literal not displayed */
	Endpoint  string `` /* 138-byte string literal not displayed */
	Collector string `` /* 258-byte string literal not displayed */
}

Tracing defines the available tracing configuration.

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