Documentation ¶
Overview ¶
Package vulnsrc exposes functions to dynamically register vulnerability sources used to update a Clair database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFilesystem is returned when a fetcher fails to interact with the local filesystem. ErrFilesystem = errors.New("vulnsrc: something went wrong when interacting with the fs") // ErrGitFailure is returned when a fetcher fails to interact with git. ErrGitFailure = errors.New("vulnsrc: something went wrong when interacting with git") )
Functions ¶
func RegisterUpdater ¶
RegisterUpdater makes an Updater available by the provided name.
If called twice with the same name, the name is blank, or if the provided Updater is nil, this function panics.
Types ¶
type UpdateResponse ¶
type UpdateResponse struct { FlagName string FlagValue string Notes []string Vulnerabilities []database.Vulnerability }
UpdateResponse represents the sum of results of an update.
type Updater ¶
type Updater interface { // Update gets vulnerability updates. Update(database.Datastore) (UpdateResponse, error) // Clean deletes any allocated resources. // It is invoked when Clair stops. Clean() }
Updater represents anything that can fetch vulnerabilities and insert them into a Clair datastore.
Directories ¶
Path | Synopsis |
---|---|
Package alpine implements a vulnerability source updater using the alpine-secdb git repository.
|
Package alpine implements a vulnerability source updater using the alpine-secdb git repository. |
Package amzn implements a vulnerability source updater using ALAS (Amazon Linux Security Advisories).
|
Package amzn implements a vulnerability source updater using ALAS (Amazon Linux Security Advisories). |
Package debian implements a vulnerability source updater using the Debian Security Tracker.
|
Package debian implements a vulnerability source updater using the Debian Security Tracker. |
Package oracle implements a vulnerability source updater using the Oracle Linux OVAL Database.
|
Package oracle implements a vulnerability source updater using the Oracle Linux OVAL Database. |
Package rhel implements a vulnerability source updater using the Red Hat Linux OVAL Database.
|
Package rhel implements a vulnerability source updater using the Red Hat Linux OVAL Database. |
Package ubuntu implements a vulnerability source updater using the Ubuntu CVE Tracker.
|
Package ubuntu implements a vulnerability source updater using the Ubuntu CVE Tracker. |
Click to show internal directories.
Click to hide internal directories.