lib

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package lib contains core functionality to load Software Bill of Materials and contains common functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustSummary added in v0.3.0

func AdjustSummary(severity string, summary *models.Summary)

AdjustSummary increments the counts of severities in a Summary struct based on the severity string passed in

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

func LoadIgnore(afs *afero.Afero, ignoreFile string) (cves []string, err error)

LoadIgnore loads a list of CVEs entered one on each line from the filename provided

func Rating added in v0.3.0

func Rating(score float64) string

Rating converts a CVSS score to a string

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

Jump to

Keyboard shortcuts

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