matcher

package
v0.0.27-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

GetWorkspaceFindings returns the workspace's vulnerabilities and, separately, its malicious package advisories.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址