Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRegistry ¶
type AppRegistry struct {
MimeTypeConfig []MimeTypeConfig `yaml:"mimetypes"`
}
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 *Reva `yaml:"reva"` AppRegistry AppRegistry `yaml:"app_registry"` Supervised bool `yaml:"-"` Context context.Context `yaml:"-"` }
type Debug ¶
type Debug struct { Addr string `` /* 149-byte string literal not displayed */ Token string `yaml:"token" env:"APP_REGISTRY_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint."` Pprof bool `yaml:"pprof" env:"APP_REGISTRY_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling."` Zpages bool `` /* 131-byte string literal not displayed */ }
type GRPCConfig ¶
type Log ¶
type Log struct { Level string `` /* 171-byte string literal not displayed */ Pretty bool `yaml:"pretty" env:"OCIS_LOG_PRETTY;APP_REGISTRY_LOG_PRETTY" desc:"Activates pretty log output."` Color bool `yaml:"color" env:"OCIS_LOG_COLOR;APP_REGISTRY_LOG_COLOR" desc:"Activates colorized log output."` File string `yaml:"file" env:"OCIS_LOG_FILE;APP_REGISTRY_LOG_FILE" desc:"The path to the log file. Activates logging to this file if set."` }
type MimeTypeConfig ¶
type MimeTypeConfig struct { MimeType string `yaml:"mime_type" mapstructure:"mime_type"` Extension string `yaml:"extension" mapstructure:"extension"` Name string `yaml:"name" mapstructure:"name"` Description string `yaml:"description" mapstructure:"description"` Icon string `yaml:"icon" mapstructure:"icon"` DefaultApp string `yaml:"default_app" mapstructure:"default_app"` AllowCreation bool `yaml:"allow_creation" mapstructure:"allow_creation"` }
type Reva ¶
type Reva struct {
Address string `yaml:"address" env:"REVA_GATEWAY" desc:"The CS3 gateway endpoint."`
}
Reva defines all available REVA configuration.
type TokenManager ¶
type TokenManager struct {
JWTSecret string `yaml:"jwt_secret" env:"OCIS_JWT_SECRET;APP_REGISTRY_JWT_SECRET" desc:"The secret to mint and validate jwt tokens."`
}
TokenManager is the config for using the reva token manager
type Tracing ¶
type Tracing struct { Enabled bool `yaml:"enabled" env:"OCIS_TRACING_ENABLED;APP_REGISTRY_TRACING_ENABLED" desc:"Activates tracing."` Type string `` /* 197-byte string literal not displayed */ Endpoint string `yaml:"endpoint" env:"OCIS_TRACING_ENDPOINT;APP_REGISTRY_TRACING_ENDPOINT" desc:"The endpoint of the tracing agent."` Collector string `` /* 235-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.