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 `` /* 368-byte string literal not displayed */
AllowedMethods []string `` /* 372-byte string literal not displayed */
AllowedHeaders []string `` /* 374-byte string literal not displayed */
AllowCredentials bool `` /* 320-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"`
GRPC GRPCConfig `yaml:"grpc"`
HTTP HTTP `yaml:"http"`
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *shared.Reva `yaml:"reva"`
SkipUserGroupsInToken bool `` /* 275-byte string literal not displayed */
MachineAuthAPIKey string `` /* 233-byte string literal not displayed */
AllowImpersonation bool `` /* 207-byte string literal not displayed */
Context context.Context `yaml:"-"`
}
Config defines the root config structure
type Debug ¶
type Debug struct {
Addr string `` /* 173-byte string literal not displayed */
Token string `yaml:"token" env:"AUTH_APP_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"AUTH_APP_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 debug configuration
type GRPCConfig ¶
type GRPCConfig struct {
Addr string `yaml:"addr" env:"AUTH_APP_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
TLS *shared.GRPCServiceTLS `yaml:"tls"`
Namespace string `yaml:"-"`
Protocol string `` /* 140-byte string literal not displayed */
}
GRPCConfig defines the GRPC configuration
type HTTP ¶
type HTTP struct {
Addr string `yaml:"addr" env:"AUTH_APP_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
Namespace string `yaml:"-"`
Root string `` /* 131-byte string literal not displayed */
CORS CORS `yaml:"cors"`
TLS shared.HTTPServiceTLS `yaml:"tls"`
}
HTTP defines the available http configuration.
type Log ¶
type Log struct {
Level string `` /* 179-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;AUTH_APP_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;AUTH_APP_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 147-byte string literal not displayed */
}
Log defines the loging configuration
type Service ¶
type Service struct {
Name string `yaml:"-"`
}
Service defines the service configuration
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 136-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;AUTH_APP_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 211-byte string literal not displayed */
Endpoint string `` /* 137-byte string literal not displayed */
Collector string `` /* 257-byte string literal not displayed */
}
Tracing defines the tracing configuration.
Click to show internal directories.
Click to hide internal directories.