Documentation ¶
Overview ¶
Package updater updates the vulnerability database periodically using the registered vulnerability fetchers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Healthcheck ¶
Healthcheck returns the health of the updater service.
func RegisterFetcher ¶
RegisterFetcher makes a Fetcher available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.
Types ¶
type Fetcher ¶
type Fetcher interface {
FetchUpdate() (FetcherResponse, error)
}
Fetcher represents anything that can fetch vulnerabilities.
type FetcherResponse ¶
type FetcherResponse struct { FlagName string FlagValue string Notes []string Vulnerabilities []FetcherVulnerability }
FetcherResponse represents the sum of results of an update.
Click to show internal directories.
Click to hide internal directories.