lib

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 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

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 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

func ParseSeverity(severity string) int

ParseSeverity takes a severity string and returns an int

func Rating added in v0.3.0

func Rating(score float64) string

Rating takes a CVSS score as input and returns a rating string based on the score

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