config

package
v1.1.0-alpha.4 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: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	ProviderCacheStore                string        `` /* 251-byte string literal not displayed */
	ProviderCacheNodes                []string      `` /* 387-byte string literal not displayed */
	ProviderCacheDatabase             string        `` /* 140-byte string literal not displayed */
	ProviderCacheTTL                  time.Duration `` /* 271-byte string literal not displayed */
	ProviderCacheDisablePersistence   bool          `` /* 274-byte string literal not displayed */
	ProviderCacheAuthUsername         string        `` /* 233-byte string literal not displayed */
	ProviderCacheAuthPassword         string        `` /* 233-byte string literal not displayed */
	CreateHomeCacheStore              string        `` /* 257-byte string literal not displayed */
	CreateHomeCacheNodes              []string      `` /* 393-byte string literal not displayed */
	CreateHomeCacheDatabase           string        `` /* 143-byte string literal not displayed */
	CreateHomeCacheTTL                time.Duration `` /* 277-byte string literal not displayed */
	CreateHomeCacheDisablePersistence bool          `` /* 283-byte string literal not displayed */
	CreateHomeCacheAuthUsername       string        `` /* 239-byte string literal not displayed */
	CreateHomeCacheAuthPassword       string        `` /* 239-byte string literal not displayed */
}

Cache holds cache config

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 `` /* 184-byte string literal not displayed */

	CommitShareToStorageGrant  bool   `` /* 235-byte string literal not displayed */
	ShareFolder                string `` /* 138-byte string literal not displayed */
	DisableHomeCreationOnLogin bool   `` /* 162-byte string literal not displayed */
	TransferSecret             string `yaml:"transfer_secret" env:"OC_TRANSFER_SECRET" desc:"The storage transfer secret." introductionVersion:"1.0.0"`
	TransferExpires            int    `yaml:"transfer_expires" env:"GATEWAY_TRANSFER_EXPIRES" desc:"Expiry for the gateway tokens." introductionVersion:"1.0.0"`
	Cache                      Cache  `yaml:"cache"`

	FrontendPublicURL string `` /* 151-byte string literal not displayed */

	UsersEndpoint             string `` /* 201-byte string literal not displayed */
	GroupsEndpoint            string `` /* 204-byte string literal not displayed */
	PermissionsEndpoint       string `` /* 219-byte string literal not displayed */
	SharingEndpoint           string `` /* 206-byte string literal not displayed */
	AuthAppEndpoint           string `` /* 210-byte string literal not displayed */
	AuthBasicEndpoint         string `` /* 216-byte string literal not displayed */
	AuthBearerEndpoint        string `` /* 219-byte string literal not displayed */
	AuthMachineEndpoint       string `` /* 222-byte string literal not displayed */
	AuthServiceEndpoint       string `` /* 222-byte string literal not displayed */
	StoragePublicLinkEndpoint string `` /* 242-byte string literal not displayed */
	StorageUsersEndpoint      string `` /* 225-byte string literal not displayed */
	StorageSharesEndpoint     string `` /* 228-byte string literal not displayed */
	AppRegistryEndpoint       string `` /* 222-byte string literal not displayed */
	OCMEndpoint               string `` /* 195-byte string literal not displayed */

	StorageRegistry StorageRegistry `yaml:"storage_registry"` // TODO: should we even support switching this?

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

type Debug

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

type GRPCConfig

type GRPCConfig struct {
	Addr      string                 `` /* 129-byte string literal not displayed */
	TLS       *shared.GRPCServiceTLS `yaml:"tls"`
	Namespace string                 `yaml:"-"`
	Protocol  string                 `` /* 139-byte string literal not displayed */
}

type Log

type Log struct {
	Level  string `` /* 178-byte string literal not displayed */
	Pretty bool   `yaml:"pretty" env:"OC_LOG_PRETTY;GATEWAY_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
	Color  bool   `yaml:"color" env:"OC_LOG_COLOR;GATEWAY_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
	File   string `` /* 146-byte string literal not displayed */
}

type Service

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

type StorageRegistry

type StorageRegistry struct {
	Driver              string   `` /* 134-byte string literal not displayed */
	Rules               []string `` /* 185-byte string literal not displayed */
	JSON                string   `` /* 155-byte string literal not displayed */
	StorageUsersMountID string   `` /* 324-byte string literal not displayed */
}

type TokenManager

type TokenManager struct {
	JWTSecret string `` /* 135-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;GATEWAY_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
	Type      string `` /* 210-byte string literal not displayed */
	Endpoint  string `` /* 136-byte string literal not displayed */
	Collector string `` /* 256-byte string literal not displayed */
}

Tracing defines the configuration options for tracing.

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