Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OverrideViaENV ¶
func OverrideViaENV(c *Configuration)
OverrideViaENV overrides configuration settings with environment variables, if they are set.
Uses a defined lookup table to identify and get environment variables to override.
func Save ¶
func Save(c *Configuration) error
Save the Configuration in its current state into the stored file path
Types ¶
type Certificate ¶
type Configuration ¶
type Configuration struct { Context string Certificate Certificate Connection Connection ScannerPreferences ScannerPreferences Preferences Preferences Feedservice Feedservice Director Director // contains filtered or unexported fields }
type Connection ¶
type Connection struct { Server string // The server to connect to QOS byte // Setting the default QOS for most cases it should be 1 CleanStart bool // When set to true the broker will not store session information SessionExpiry uint64 // How long a session will be stored; when 0 and CleanStart false it will be one day Timeout int64 Username string // Username for authentication Password string // Password used with Username for authentication }
type Feedservice ¶
type Feedservice struct {
RedisDbAddress string
}
type Preferences ¶
type ScannerPreferences ¶
type ScannerPreferences struct { ScanInfoStoreTime int64 // Time (h) before a scan is considere forgotten MaxScan int64 // Maxi number of parallel scans MaxQueuedScans int64 // Maxi number of scans that can be queued Niceness int64 // Niceness of the openvas Process MinFreeMemScanQueue uint64 // Min Memory necessary for a Scan to start }
Click to show internal directories.
Click to hide internal directories.