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") )
Functions ¶
func CleanAll ¶
func CleanAll()
CleanAll is a utility function that calls Clean() on every registered Updater.
func ListUpdaters ¶
func ListUpdaters() []string
ListUpdaters returns the names of registered vulnerability updaters.
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 { Flags map[string]string Notes []string Vulnerabilities []database.VulnerabilityWithAffected }
UpdateResponse represents the sum of results of an update.
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 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 redhat implements a vulnerability source updater using the Red Hat Vmaas API.
|
Package redhat implements a vulnerability source updater using the Red Hat Vmaas API. |
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 suse implements a vulnerability source updater using the SUSE Linux and openSUSE OVAL Database.
|
Package suse implements a vulnerability source updater using the SUSE Linux and openSUSE 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.