analyzer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SeverityRanking = map[string]int{
	"Unknown":    0,
	"Negligible": 1,
	"Low":        2,
	"Medium":     3,
	"High":       4,
	"Critical":   5,
}

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(vulnerabilityReport *apiclair.VulnerabilityReport) (*AnalyzerResult, error)

func (*Analyzer) Load

func (a *Analyzer) Load() error

func (*Analyzer) PrintResult

func (a *Analyzer) PrintResult(result *AnalyzerResult, quiet bool)

type AnalyzerResult

type AnalyzerResult struct {
	OK                       bool
	Rows                     []*AnalyzerResultRow
	CountTotal               int
	CountNotOKWhitelisted    int
	CountNotOKNotWhitelisted int
}

type AnalyzerResultRow

type AnalyzerResultRow struct {
	VulnerabilityName  string
	Severity           string
	ComponentNamespace string
	ComponentName      string
	Version            string
	FixedIn            string
	Whitelisted        bool
}

Jump to

Keyboard shortcuts

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