Skip to content

Commit 68e107a

Browse files
committed
claircore: add Enrichments to VulnerabilityReport
Signed-off-by: Hank Donnay <[email protected]>
1 parent bec40e2 commit 68e107a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vulnerabilityreport.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package claircore
22

3+
import "encoding/json"
4+
35
// VulnerabilityReport provides a report of packages and their
46
// associated vulnerabilities.
57
type VulnerabilityReport struct {
@@ -17,4 +19,6 @@ type VulnerabilityReport struct {
1719
Vulnerabilities map[string]*Vulnerability `json:"vulnerabilities"`
1820
// a lookup table associating package ids with 1 or more vulnerability ids. keyed by package id
1921
PackageVulnerabilities map[string][]string `json:"package_vulnerabilities"`
22+
// a map of enrichments keyed by a type.
23+
Enrichments map[string][]json.RawMessage `json:"enrichments"`
2024
}

0 commit comments

Comments
 (0)