Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type CORS struct {
AllowedOrigins []string `` /* 365-byte string literal not displayed */
AllowedMethods []string `` /* 369-byte string literal not displayed */
AllowedHeaders []string `` /* 371-byte string literal not displayed */
AllowCredentials bool `` /* 317-byte string literal not displayed */
}
CORS defines the available cors configuration.
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"`
HTTP HTTPConfig `yaml:"http"`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *shared.Reva `yaml:"reva"`
SkipUserGroupsInToken bool `` /* 182-byte string literal not displayed */
WebdavNamespace string `` /* 195-byte string literal not displayed */
FilesNamespace string `` /* 203-byte string literal not displayed */
OCMNamespace string `` /* 132-byte string literal not displayed */
// PublicURL used to redirect /s/{token} URLs to
PublicURL string `` /* 126-byte string literal not displayed */
// Insecure certificates allowed when making requests to the gateway
Insecure bool `` /* 134-byte string literal not displayed */
// Timeout in seconds when making requests to the gateway
Timeout int64 `` /* 188-byte string literal not displayed */
MachineAuthAPIKey string `` /* 234-byte string literal not displayed */
Context context.Context `yaml:"-"`
Status Status `yaml:"-"`
AllowPropfindDepthInfinity bool `` /* 329-byte string literal not displayed */
}
type Debug ¶
type Debug struct {
Addr string `` /* 170-byte string literal not displayed */
Token string `yaml:"token" env:"OCDAV_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"OCDAV_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
Zpages bool `` /* 152-byte string literal not displayed */
}
type HTTPConfig ¶
type HTTPConfig struct {
Addr string `yaml:"addr" env:"OCDAV_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"OCDAV_HTTP_PROTOCOL" desc:"The transport protocol of the HTTP service." introductionVersion:"1.0.0"`
Prefix string `yaml:"prefix" env:"OCDAV_HTTP_PREFIX" desc:"A URL path prefix for the handler." introductionVersion:"1.0.0"`
CORS `yaml:"cors"`
}
type Log ¶
type Log struct {
Level string `` /* 176-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;OCDAV_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;OCDAV_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 144-byte string literal not displayed */
}
type Status ¶
type Status struct {
Version string
VersionString string
Product string
ProductName string
ProductVersion string
Edition string `` /* 130-byte string literal not displayed */
}
Status holds the configurable values for the status.php
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 133-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;OCDAV_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 208-byte string literal not displayed */
Endpoint string `` /* 134-byte string literal not displayed */
Collector string `` /* 254-byte string literal not displayed */
}
Tracing defines the available tracing configuration.
Click to show internal directories.
Click to hide internal directories.