Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct { Vulnerability Vulnerability `json:"vulnerability"` MatchDetails MatchDetails `json:"matched-by"` Artifact syftJson.Artifact `json:"artifact"` }
Finding is a single item for the JSON array reported
type MatchDetails ¶
MatchDetails contains all data that indicates how the result match was found
type Presenter ¶
type Presenter struct {
// contains filtered or unexported fields
}
Presenter is a generic struct for holding fields needed for reporting
func NewPresenter ¶
func NewPresenter(results result.Result, catalog *pkg.Catalog, theScope scope.Scope, metadataProvider vulnerability.MetadataProvider) *Presenter
NewPresenter is a *Presenter constructor
type Vulnerability ¶
type Vulnerability struct { ID string `json:"id"` Severity string `json:"severity,omitempty"` Links []string `json:"links,omitempty"` Description string `json:"description,omitempty"` CvssV2 *Cvss `json:"cvss-v2,omitempty"` CvssV3 *Cvss `json:"cvss-v3,omitempty"` }
func NewVulnerability ¶
func NewVulnerability(m match.Match, metadata *vulnerability.Metadata) Vulnerability
Click to show internal directories.
Click to hide internal directories.