Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClamAV ¶
type ClamAV struct {
Socket string `` /* 188-byte string literal not displayed */
}
ClamAV provides configuration option for clamav
type Config ¶
type Config struct {
File string
Log *Log
Debug Debug `yaml:"debug" mask:"struct"`
Service Service `yaml:"-"`
Tracing *Tracing `yaml:"tracing"`
InfectedFileHandling string `` /* 438-byte string literal not displayed */
Events Events
Workers int `` /* 150-byte string literal not displayed */
Scanner Scanner
MaxScanSize string `` /* 322-byte string literal not displayed */
Context context.Context `json:"-" yaml:"-"`
DebugScanOutcome string `` /* 179-byte string literal not displayed */
}
Config combines all available configuration parts.
type Debug ¶
type Debug struct {
Addr string `` /* 174-byte string literal not displayed */
Token string `yaml:"token" env:"ANTIVIRUS_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"ANTIVIRUS_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 Events ¶
type Events struct {
Endpoint string `` /* 247-byte string literal not displayed */
Cluster string `` /* 289-byte string literal not displayed */
TLSInsecure bool `` /* 149-byte string literal not displayed */
TLSRootCACertificate string `` /* 282-byte string literal not displayed */
EnableTLS bool `` /* 259-byte string literal not displayed */
AuthUsername string `` /* 264-byte string literal not displayed */
AuthPassword string `` /* 264-byte string literal not displayed */
}
Events combines the configuration options for the event bus.
type ICAP ¶
type ICAP struct {
Timeout time.Duration `` /* 217-byte string literal not displayed */
URL string `yaml:"url" env:"ANTIVIRUS_ICAP_URL" desc:"URL of the ICAP server." introductionVersion:"1.0.0"`
Service string `yaml:"service" env:"ANTIVIRUS_ICAP_SERVICE" desc:"The name of the ICAP service." introductionVersion:"1.0.0"`
}
ICAP provides configuration options for icap
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 Scanner ¶
type Scanner struct {
Type string `` /* 147-byte string literal not displayed */
ClamAV ClamAV // only if Type == clamav
ICAP ICAP // only if Type == icap
}
Scanner provides configuration options for the virus scanner
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;ANTIVIRUS_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.