Documentation ¶
Index ¶
- Variables
- func ByCriteria(store vulnerability.Provider, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error)
- func ByPackageCPE(store vulnerability.ProviderByCPE, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error)
- func ByPackageDistro(store vulnerability.ProviderByDistro, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error)
- func ByPackageLanguage(store vulnerability.ProviderByLanguage, d *distro.Distro, p pkg.Package, ...) ([]match.Match, error)
- type CPEPackageParameter
- type CPEParameters
- type CPEResult
- type Criteria
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyCPEMatch = errors.New("attempted CPE match against package with no CPEs")
Functions ¶
func ByCriteria ¶
func ByPackageCPE ¶
func ByPackageCPE(store vulnerability.ProviderByCPE, d *distro.Distro, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)
ByPackageCPE retrieves all vulnerabilities that match the generated CPE
func ByPackageDistro ¶
func ByPackageDistro(store vulnerability.ProviderByDistro, d *distro.Distro, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)
func ByPackageLanguage ¶
func ByPackageLanguage(store vulnerability.ProviderByLanguage, d *distro.Distro, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)
Types ¶
type CPEPackageParameter ¶ added in v0.63.0
type CPEParameters ¶
type CPEParameters struct { Namespace string `json:"namespace"` CPEs []string `json:"cpes"` Package CPEPackageParameter `json:"package"` }
func (*CPEParameters) Merge ¶
func (i *CPEParameters) Merge(other CPEParameters) error
Click to show internal directories.
Click to hide internal directories.