Documentation
¶
Overview ¶
Package vulns provides utility functions for working with vulnerabilities.
Index ¶
- func AffectsEcosystem(v osvschema.Vulnerability, ecosystemAffected osvecosystem.Parsed) bool
- func GetFixedVersions(v osvschema.Vulnerability) map[osvschema.Package][]string
- func Include(vs []*osvschema.Vulnerability, vulnerability osvschema.Vulnerability) bool
- func IsAffected(v osvschema.Vulnerability, pkg imodels.PackageInfo) bool
- func NormalizeRepo(repo string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffectsEcosystem ¶
func AffectsEcosystem(v osvschema.Vulnerability, ecosystemAffected osvecosystem.Parsed) bool
func GetFixedVersions ¶
func GetFixedVersions(v osvschema.Vulnerability) map[osvschema.Package][]string
GetFixedVersions returns a map of fixed versions for each package, or a map of empty slices if no fixed versions are available
func Include ¶
func Include(vs []*osvschema.Vulnerability, vulnerability osvschema.Vulnerability) bool
func IsAffected ¶
func IsAffected(v osvschema.Vulnerability, pkg imodels.PackageInfo) bool
func NormalizeRepo ¶ added in v2.2.4
NormalizeRepo applies some reasonable transformations to repository urls to ensure accurate results when determining if two repository urls are referencing the same repository.
Specifically, common protocols are removed from the start of the url and the ".git" suffix if present
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.