clair: github.com/coreos/clair/ext/vulnsrc Index | Files | Directories

package vulnsrc

import "github.com/coreos/clair/ext/vulnsrc"

Package vulnsrc exposes functions to dynamically register vulnerability sources used to update a Clair database.

Index

Package Files

driver.go

Variables

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")
)

func CleanAll Uses

func CleanAll()

CleanAll is a utility function that calls Clean() on every registered Updater.

func ListUpdaters Uses

func ListUpdaters() []string

ListUpdaters returns the names of registered vulnerability updaters.

func RegisterUpdater Uses

func RegisterUpdater(name string, u Updater)

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.

func Updaters Uses

func Updaters() map[string]Updater

Updaters returns the list of the registered Updaters.

type UpdateResponse Uses

type UpdateResponse struct {
    FlagName        string
    FlagValue       string
    Notes           []string
    Vulnerabilities []database.VulnerabilityWithAffected
}

UpdateResponse represents the sum of results of an update.

type Updater Uses

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.

Directories

PathSynopsis
alpinePackage alpine implements a vulnerability source updater using the alpine-secdb git repository.
amznPackage amzn implements a vulnerability source updater using ALAS (Amazon Linux Security Advisories).
debianPackage debian implements a vulnerability source updater using the Debian Security Tracker.
oraclePackage oracle implements a vulnerability source updater using the Oracle Linux OVAL Database.
rhelPackage rhel implements a vulnerability source updater using the Red Hat Linux OVAL Database.
susePackage suse implements a vulnerability source updater using the SUSE Linux and openSUSE OVAL Database.
ubuntuPackage ubuntu implements a vulnerability source updater using the Ubuntu CVE Tracker.

Package vulnsrc imports 3 packages (graph) and is imported by 18 packages. Updated 2019-06-14. Refresh now. Tools for package owners.