Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAPIFailed = errors.New("API query failed")
ErrAPIFailed describes errors related to querying API endpoints. TODO(v2): Actually use this error
View Source
var ErrNoPackagesFound = errors.New("no packages found in scan")
ErrNoPackagesFound for when no packages are found during a scan.
View Source
var ErrVulnerabilitiesFound = errors.New("vulnerabilities found")
ErrVulnerabilitiesFound includes both vulnerabilities being found or license violations being found, however, will not be raised if only uncalled vulnerabilities are found.
Functions ¶
func DoContainerScan ¶
func DoContainerScan(actions ScannerActions) (models.VulnerabilityResults, error)
func DoScan ¶
func DoScan(actions ScannerActions) (models.VulnerabilityResults, error)
DoScan performs the osv scanner action, with optional reporter to output information
Types ¶
type ExternalAccessors ¶
type ExternalAccessors struct {
// Matchers
VulnMatcher clientinterfaces.VulnerabilityMatcher
LicenseMatcher clientinterfaces.LicenseMatcher
BaseImageMatcher clientinterfaces.BaseImageMatcher
// Required for pomxmlnet Extractor
MavenRegistryAPIClient *datasource.MavenRegistryAPIClient
// Required for vendored Extractor
OSVDevClient *osvdev.OSVClient
// DependencyClients is a map of implementations of DependencyClient
// for each ecosystem, the following is currently implemented:
// - [osvschema.EcosystemMaven] required for pomxmlnet Extractor
DependencyClients map[osvschema.Ecosystem]resolve.Client
}
type ScannerActions ¶
Click to show internal directories.
Click to hide internal directories.