Documentation
¶
Overview ¶
Package vulns provides utility functions for working with vulnerabilities.
Index ¶
- func AffectsEcosystem(v osvschema.Vulnerability, ecosystemAffected ecosystem.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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffectsEcosystem ¶
func AffectsEcosystem(v osvschema.Vulnerability, ecosystemAffected ecosystem.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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.