Skip to content

Commit

Permalink
claircore: add Enrichments to VulnerabilityReport
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Jul 12, 2021
1 parent bec40e2 commit 68e107a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vulnerabilityreport.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package claircore

import "encoding/json"

// VulnerabilityReport provides a report of packages and their
// associated vulnerabilities.
type VulnerabilityReport struct {
Expand All @@ -17,4 +19,6 @@ type VulnerabilityReport struct {
Vulnerabilities map[string]*Vulnerability `json:"vulnerabilities"`
// a lookup table associating package ids with 1 or more vulnerability ids. keyed by package id
PackageVulnerabilities map[string][]string `json:"package_vulnerabilities"`
// a map of enrichments keyed by a type.
Enrichments map[string][]json.RawMessage `json:"enrichments"`
}

0 comments on commit 68e107a

Please sign in to comment.