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 `` /* 369-byte string literal not displayed */
AllowedMethods []string `` /* 373-byte string literal not displayed */
AllowedHeaders []string `` /* 375-byte string literal not displayed */
AllowCredentials bool `` /* 321-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 HTTP `yaml:"http"`
Instances []Instance `yaml:"instances"`
Relations []string `` /* 226-byte string literal not displayed */
IDP string `` /* 157-byte string literal not displayed */
OpenCloudURL string `` /* 403-byte string literal not displayed */
Insecure bool `` /* 140-byte string literal not displayed */
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:"WEBFINGER_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"WEBFINGER_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 HTTP ¶
type HTTP struct {
Addr string `yaml:"addr" env:"WEBFINGER_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
Namespace string `yaml:"-"`
Root string `` /* 132-byte string literal not displayed */
CORS CORS `yaml:"cors"`
TLS shared.HTTPServiceTLS `yaml:"tls"`
}
HTTP defines the available http configuration.
type Instance ¶
type Instance struct {
Claim string `yaml:"claim"`
Regex string `yaml:"regex"`
Href string `yaml:"href"`
Titles map[string]string `yaml:"titles"`
Break bool `yaml:"break"`
}
Instance to use with a matching rule and titles
type Log ¶
type Log struct {
Level string `` /* 188-byte string literal not displayed */
Pretty bool `` /* 126-byte string literal not displayed */
Color bool `` /* 126-byte string literal not displayed */
File string `` /* 156-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 Tracing ¶
type Tracing struct {
Enabled bool `yaml:"enabled" env:"OC_TRACING_ENABLED;WEBFINGER_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.
Click to show internal directories.
Click to hide internal directories.