Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Store string `` /* 234-byte string literal not displayed */
Nodes []string `` /* 370-byte string literal not displayed */
Database string `yaml:"database" env:"OC_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"1.0.0"`
TTL time.Duration `` /* 264-byte string literal not displayed */
DisablePersistence bool `` /* 248-byte string literal not displayed */
AuthUsername string `` /* 211-byte string literal not displayed */
AuthPassword string `` /* 211-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"`
HTTP HTTPConfig `yaml:"http"`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *shared.Reva `yaml:"reva"`
SystemUserID string `` /* 336-byte string literal not displayed */
SystemUserAPIKey string `` /* 134-byte string literal not displayed */
SkipUserGroupsInToken bool `` /* 191-byte string literal not displayed */
FileMetadataCache Cache `yaml:"cache"`
Driver string `` /* 297-byte string literal not displayed */
Drivers Drivers `yaml:"drivers"`
DataServerURL string `` /* 178-byte string literal not displayed */
Context context.Context `yaml:"-"`
}
Config holds Config config
type Debug ¶
type Debug struct {
Addr string `` /* 179-byte string literal not displayed */
Token string `yaml:"token" env:"STORAGE_SYSTEM_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint" introductionVersion:"1.0.0"`
Pprof bool `` /* 127-byte string literal not displayed */
Zpages bool `` /* 161-byte string literal not displayed */
}
Debug holds Debug config
type DecomposedDriver ¶
type DecomposedDriver struct {
// Root is the absolute path to the location of the data
Root string `` /* 236-byte string literal not displayed */
MaxAcquireLockCycles int `` /* 357-byte string literal not displayed */
LockCycleDurationFactor int `` /* 313-byte string literal not displayed */
}
DecomposedDriver holds the decomposed Driver config
type Drivers ¶
type Drivers struct {
Decomposed DecomposedDriver `yaml:"decomposed"`
}
Drivers holds Drivers config
type GRPCConfig ¶
type GRPCConfig struct {
Addr string `yaml:"addr" env:"STORAGE_SYSTEM_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
TLS *shared.GRPCServiceTLS `yaml:"tls"`
Namespace string `yaml:"-"`
Protocol string `` /* 146-byte string literal not displayed */
}
GRPCConfig holds GRPCConfig config
type HTTPConfig ¶
type HTTPConfig struct {
Addr string `yaml:"addr" env:"STORAGE_SYSTEM_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
Namespace string `yaml:"-"`
Protocol string `` /* 129-byte string literal not displayed */
}
HTTPConfig holds HTTPConfig config
type Log ¶
type Log struct {
Level string `` /* 185-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;STORAGE_SYSTEM_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;STORAGE_SYSTEM_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 153-byte string literal not displayed */
}
Log holds Log config
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 142-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;STORAGE_SYSTEM_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 217-byte string literal not displayed */
Endpoint string `` /* 143-byte string literal not displayed */
Collector string `` /* 263-byte string literal not displayed */
}
Tracing holds Tracing config
Click to show internal directories.
Click to hide internal directories.