explain

package
v0.77.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Findings

type Findings map[string]ViewModel

func Doc

func Doc(doc *models.Document, requestedIDs []string) (Findings, error)

type ViewModel

type ViewModel struct {
	PrimaryVulnerability   models.VulnerabilityMetadata
	RelatedVulnerabilities []models.VulnerabilityMetadata
	MatchedPackages        []*explainedPackage // I think this needs a map of artifacts to explained evidence
	URLs                   []string
}

type VulnerabilityExplainer

type VulnerabilityExplainer interface {
	ExplainByID(IDs []string) error
	ExplainBySeverity(severity string) error
	ExplainAll() error
}

func NewVulnerabilityExplainer

func NewVulnerabilityExplainer(w io.Writer, doc *models.Document) VulnerabilityExplainer

Jump to

Keyboard shortcuts

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