Skip to content

Commit 90af1ed

Browse files
committed
claircore: invert flag to Vulnerability
See-also: https://issues.redhat.com/browse/CLAIRDEV-85 Change-Id: I4053d16eb2589dc2eb24fc194c19537b954e065d Signed-off-by: Hank Donnay <hdonnay@redhat.com>
1 parent 54cf871 commit 90af1ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vulnerability.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ type Vulnerability struct {
5050
// For instances from a claircore "datastore" implementation, this will also
5151
// include the "Self" alias.
5252
Aliases []Alias
53+
54+
// Invert means this Vulnerability should be interpreted as an assertion
55+
// that matched packages are NOT vulnerable to the indicated flaw.
56+
Invert bool
5357
}
5458

5559
// CheckVulnernableFunc takes a vulnerability and an indexRecord and checks if the record is

0 commit comments

Comments
 (0)