Documentation
¶
Index ¶
Constants ¶
const ( OSReleaseID = "ubuntu" OSReleaseName = "Ubuntu" )
const ( Untriaged = "Unknown" Negligible = "Negligible" Low = "Low" Medium = "Medium" High = "High" Critical = "Critical" )
const ( OVALTemplateBzip = "https://people.canonical.com/~ubuntu-security/oval/com.ubuntu.%s.cve.oval.xml.bz2" OVALTemplate = "https://people.canonical.com/~ubuntu-security/oval/com.ubuntu.%s.cve.oval.xml" )
Variables ¶
Functions ¶
func NormalizeSeverity ¶ added in v0.0.15
func UpdaterSet ¶ added in v0.0.21
func UpdaterSet() (driver.UpdaterSet, error)
UpdaterSet returns a UpdaterSet comprised of all supported ubuntu releases.
Types ¶
type DistributionScanner ¶ added in v0.0.14
type DistributionScanner struct{}
DistributionScanner attempts to discover if a layer displays characteristics of a Ubuntu distribution
func (*DistributionScanner) Kind ¶ added in v0.0.14
func (*DistributionScanner) Kind() string
Kind implements scanner.VersionedScanner.
func (*DistributionScanner) Name ¶ added in v0.0.14
func (*DistributionScanner) Name() string
Name implements scanner.VersionedScanner.
func (*DistributionScanner) Scan ¶ added in v0.0.14
func (ds *DistributionScanner) Scan(ctx context.Context, l *claircore.Layer) ([]*claircore.Distribution, error)
Scan will inspect the layer for an os-release or lsb-release file and perform a regex match for keywords indicating the associated Ubuntu release
If neither file is found a (nil,nil) is returned. If the files are found but all regexp fail to match an empty slice is returned.
func (*DistributionScanner) Version ¶ added in v0.0.14
func (*DistributionScanner) Version() string
Version implements scanner.VersionedScanner.
type Matcher ¶
type Matcher struct{}
func (*Matcher) Query ¶
func (*Matcher) Query() []driver.MatchConstraint
func (*Matcher) Vulnerable ¶
func (*Matcher) Vulnerable(record *claircore.IndexRecord, vuln *claircore.Vulnerability) bool
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater implements the claircore.Updater.Fetcher and claircore.Updater.Parser interfaces making it eligible to be used as an Updater.
func NewUpdater ¶
func (*Updater) Fetch ¶
func (u *Updater) Fetch(ctx context.Context, fingerprint driver.Fingerprint) (io.ReadCloser, driver.Fingerprint, error)
func (*Updater) Parse ¶
func (u *Updater) Parse(ctx context.Context, contents io.ReadCloser) ([]*claircore.Vulnerability, error)