Documentation
¶
Index ¶
- func MatchExact(affectedInfo []vulnerabilityFinder.AffectedVersion, ...) (bool, vulnerabilityFinder.VulnerableEvidenceExact)
- func MatchRange(affectedInfo []vulnerabilityFinder.AffectedVersion, ...) (bool, vulnerabilityFinder.VulnerableEvidenceRange)
- func MatchUniversal(affectedInfo []vulnerabilityFinder.AffectedVersion, ...) (bool, vulnerabilityFinder.VulnerableEvidenceUniversal)
- type VulnerabilityMatcher
- func (vm VulnerabilityMatcher) GetGCVEVulnerabilities(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) []vulnerabilityFinder.GCVEVulnerability
- func (vm VulnerabilityMatcher) GetNVDVulnerabilities(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) []vulnerabilityFinder.NVDVulnerability
- func (vm VulnerabilityMatcher) GetWorkspaceFindings(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) ([]vulnerabilityFinderTypes.Vulnerability, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchExact ¶
func MatchExact(affectedInfo []vulnerabilityFinder.AffectedVersion, dependencyVersion semverVersionTypes.Semver) (bool, vulnerabilityFinder.VulnerableEvidenceExact)
func MatchRange ¶
func MatchRange(affectedInfo []vulnerabilityFinder.AffectedVersion, dependencyVersion semverVersionTypes.Semver) (bool, vulnerabilityFinder.VulnerableEvidenceRange)
func MatchUniversal ¶
func MatchUniversal(affectedInfo []vulnerabilityFinder.AffectedVersion, dependencyVersion semverVersionTypes.Semver) (bool, vulnerabilityFinder.VulnerableEvidenceUniversal)
Types ¶
type VulnerabilityMatcher ¶
type VulnerabilityMatcher struct {
ConflictResolver func(vulnerabilityFinderTypes.Pairs) (conflict.ResolveWinner, conflict.ConflictFlag)
Ecosystems []ecosystemTypes.Ecosystem
PackageRepository packageRepository.PackageRepository
// KnowledgeAsOf, when non-nil, drops OSV advisories published after that
// day (the whole day stays in range) before matching.
KnowledgeAsOf *time.Time
}
func (VulnerabilityMatcher) GetGCVEVulnerabilities ¶
func (vm VulnerabilityMatcher) GetGCVEVulnerabilities(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) []vulnerabilityFinder.GCVEVulnerability
func (VulnerabilityMatcher) GetNVDVulnerabilities ¶
func (vm VulnerabilityMatcher) GetNVDVulnerabilities(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) []vulnerabilityFinder.NVDVulnerability
func (VulnerabilityMatcher) GetWorkspaceFindings ¶
func (vm VulnerabilityMatcher) GetWorkspaceFindings(dependencies map[string]map[string]sbomTypes.Versions, knowledge *bun.DB) ([]vulnerabilityFinderTypes.Vulnerability, []vulnerabilityFinderTypes.MaliciousPackageAdvisory)
GetWorkspaceFindings returns the workspace's vulnerabilities and, separately, its malicious package advisories.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.