Skip to content

Commit 4fb218e

Browse files
committed
updater/driver: add the ability to signal "removal" in an update
Signed-off-by: Hank Donnay <[email protected]>
1 parent e59ef5d commit 4fb218e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

updater/driver/v1/types.go

+11-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ type EnrichmentRecord struct {
2626
// ParsedVulnerabilities is an entity-component system describing discovered
2727
// vulnerabilities.
2828
type ParsedVulnerabilities struct {
29-
Updater string
29+
// Updater is an ID for the Updater that produced this set of
30+
// Vulnerabilities.
31+
Updater string
32+
// Vulnerability is the set of new and modified Vulnerabilities.
3033
Vulnerability []Vulnerability
31-
Package []Package
32-
Distribution []Distribution
33-
Repository []Repository
34+
// The following are indexed into via Vulnerability structs.
35+
Package []Package
36+
Distribution []Distribution
37+
Repository []Repository
38+
// Removed is a list of Vulnerabilities (the "Name" member) removed in the
39+
// current set of Vulnerabilities.
40+
Removed []string
3441
}
3542

3643
// Vulnerability is all per-vulnerability information.

0 commit comments

Comments
 (0)