Documentation ¶
Overview ¶
Package lib contains core functionality to load Software Bill of Materials and contains common functions
Package lib contains core functionality to load Software Bill of Materials and contains common functions
Index ¶
- func AdjustSummary(severity string, summary *models.Summary)
- func FlattenVulnerabilities(packages []models.Package) []models.Vulnerability
- func ParseSeverity(severity string) int
- func Rating(score float64) string
- func UniqueFieldValues[T any](input []T, fieldName string) []interface{}
- type Loader
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustSummary ¶ added in v0.3.0
AdjustSummary takes a severity string and a pointer to a Summary struct as input, and increments the corresponding severity count in the struct.
func FlattenVulnerabilities ¶ added in v0.4.7
func FlattenVulnerabilities(packages []models.Package) []models.Vulnerability
FlattenVulnerabilities flattens all vulnerabilities for a package
func ParseSeverity ¶ added in v0.4.5
ParseSeverity takes a severity string and returns an int
func Rating ¶ added in v0.3.0
Rating takes a CVSS score as input and returns a rating string based on the score
func UniqueFieldValues ¶ added in v0.4.8
UniqueFieldValues returns a slice of unique field values from a slice of structs given a field name
Types ¶
type Loader ¶ added in v0.4.8
type Scanner ¶ added in v0.4.8
type Scanner struct { SeveritySummary models.Summary Credentials models.Credentials Renderer models.Renderer Provider models.Provider IgnoreFile string Severity string ExitCode bool Output string ProviderName string Version string Afs *afero.Afero }
Scanner represents a vulnerability scanner.
Directories ¶
Path | Synopsis |
---|---|
Package enrichment provides functionality to enrich vulnerabilities with epss data.
|
Package enrichment provides functionality to enrich vulnerabilities with epss data. |
Package filters provides functionality to filter vulnerability output
|
Package filters provides functionality to filter vulnerability output |