Versions in this module Expand all Collapse all v0 v0.86.1 Dec 13, 2024 Changes in this version + var ErrEmptyCPEMatch = errors.New("attempted CPE match against package with no CPEs") + func ByCriteria(store v5.VulnerabilityProvider, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error) + func ByPackageCPE(store v5.ProviderByCPE, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error) + func ByPackageDistro(store v5.ProviderByDistro, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error) + func ByPackageLanguage(store v5.ProviderByLanguage, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error) + type CPEPackageParameter struct + Name string + Version string + type CPEParameters struct + CPEs []string + Namespace string + Package CPEPackageParameter + func (i *CPEParameters) Merge(other CPEParameters) error + type CPEResult struct + CPEs []string + VersionConstraint string + VulnerabilityID string + func (h CPEResult) Equals(other CPEResult) bool + type Criteria string + var ByCPE Criteria = "by-cpe" + var ByDistro Criteria = "by-distro" + var ByLanguage Criteria = "by-language" + var CommonCriteria = []Criteria{ ... }