reporting

package
v0.0.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SummaryWidth = 30
	Width        = 100
)
View Source
const (
	ErrorExitCode   = 1
	SuccessExitCode = 0
)

Variables

This section is empty.

Functions

func Generate

func Generate(cfg *config.Config, results *results.ResultsServer, l log.Logger) (int, error)

func SeverityNames

func SeverityNames() []string

func ShowProgress

func ShowProgress(cfg *config.Config, results *results.ResultsServer, l log.Logger)

Types

type ExtendedVulnerability

type ExtendedVulnerability struct {
	*report.CheckData
	*report.Vulnerability
	Severity *Severity
	Excluded bool
}

Create a new extended entity to allow to filter by all the fields.

type Severity

type Severity struct {
	Name      string
	Threshold float32
	Exit      int
	Color     int
}

func FindSeverity

func FindSeverity(name string) (*Severity, error)

func FindSeverityByScore

func FindSeverityByScore(score float32) *Severity

Jump to

Keyboard shortcuts

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