Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auditlog ¶
type Auditlog struct {
LogToConsole bool `` /* 155-byte string literal not displayed */
LogToFile bool `` /* 150-byte string literal not displayed */
FilePath string `` /* 139-byte string literal not displayed */
Format string `` /* 232-byte string literal not displayed */
}
Auditlog holds audit log information
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"`
Events Events `yaml:"events"`
Auditlog Auditlog `yaml:"auditlog"`
Context context.Context `yaml:"-"`
}
Config combines all available configuration parts.
type Debug ¶
type Debug struct {
Addr string `` /* 170-byte string literal not displayed */
Token string `yaml:"token" env:"AUDIT_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"AUDIT_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
Zpages bool `` /* 152-byte string literal not displayed */
}
Debug defines the available debug configuration.
type Events ¶
type Events struct {
Endpoint string `` /* 243-byte string literal not displayed */
Cluster string `` /* 285-byte string literal not displayed */
TLSInsecure bool `` /* 145-byte string literal not displayed */
TLSRootCACertificate string `` /* 274-byte string literal not displayed */
EnableTLS bool `` /* 255-byte string literal not displayed */
AuthUsername string `` /* 260-byte string literal not displayed */
AuthPassword string `` /* 260-byte string literal not displayed */
}
Events combines the configuration options for the event bus.
type Log ¶
type Log struct {
Level string `` /* 176-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;AUDIT_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;AUDIT_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 144-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;AUDIT_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.