Documentation ¶
Overview ¶
Package lib contains core functionality to load Software Bill of Materials and contains common functions
Index ¶
- func AdjustSummary(severity string, summary *models.Summary)
- func Load(afs *afero.Afero, args []string) (scanned []models.ScannedFile, purls []string, licenses []string, err error)
- func LoadIgnore(afs *afero.Afero, ignoreFile string) (cves []string, err error)
- func ParseFailSeverity(s string) models.FailSeverity
- func ParseSeverity(severity string) int
- func Rating(score float64) string
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 Load ¶
func Load(afs *afero.Afero, args []string) (scanned []models.ScannedFile, purls []string, licenses []string, err error)
Load retrieves a slice of Purls from various types of SBOMs
func LoadIgnore ¶ added in v0.4.1
LoadIgnore loads a list of CVEs entered one on each line from the filename provided
func ParseFailSeverity ¶ added in v0.4.5
func ParseFailSeverity(s string) models.FailSeverity
ParseFailSeverity takes a string and returns a FailSeverity enum
func ParseSeverity ¶ added in v0.4.5
ParseSeverity takes a severity string and returns an int
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package enrichment contains functionality to enrich vulnerability data from other sources
|
Package enrichment contains functionality to enrich vulnerability data from other sources |
Package filters provides functionality to filter vulnerability output
|
Package filters provides functionality to filter vulnerability output |
Click to show internal directories.
Click to hide internal directories.