@@ -6,6 +6,12 @@ import (
6
6
"github.com/armosec/armoapi-go/armotypes"
7
7
)
8
8
9
+ type RelevantLabel string
10
+
11
+ const RelevantLabelYes RelevantLabel = "yes"
12
+ const RelevantLabelNo RelevantLabel = "no"
13
+ const RelevantLabelNotExists RelevantLabel = ""
14
+
9
15
type CommonContainerVulnerabilityResult struct {
10
16
Designators armotypes.PortalDesignator `json:"designators"`
11
17
IntroducedInLayer string `json:"layerHash"`
@@ -20,6 +26,7 @@ type CommonContainerVulnerabilityResult struct {
20
26
Timestamp int64 `json:"timestamp"`
21
27
IsLastScan int `json:"isLastScan"`
22
28
IsFixed int `json:"isFixed"`
29
+ RelevantLabel RelevantLabel `json:"relevantLabel"`
23
30
}
24
31
25
32
type ESLayer struct {
@@ -35,16 +42,16 @@ type LayerInfo struct {
35
42
}
36
43
37
44
type SeverityStats struct {
38
- Severity string `json:"severity,omitempty"`
39
- HealthStatus string `json:"healthStatus"`
40
- TotalCount int64 `json:"total"`
41
- RCEFixCount int64 `json:"rceFixCount"`
42
- FixAvailableOfTotalCount int64 `json:"fixedTotal "`
43
- RelevantCount int64 `json:"totalRelevant "`
44
- FixAvailableForRelevantCount int64 `json:"fixedRelevant "`
45
- RCECount int64 `json:"rceTotal"`
46
- UrgentCount int64 `json:"urgent"`
47
- NeglectedCount int64 `json:"neglected"`
45
+ Severity string `json:"severity,omitempty"`
46
+ HealthStatus string `json:"healthStatus"`
47
+ TotalCount int64 `json:"total"`
48
+ RCEFixCount int64 `json:"rceFixCount"`
49
+ RelevantFixCount int64 `json:"relevantFixCount "`
50
+ FixAvailableOfTotalCount int64 `json:"fixedTotal "`
51
+ RelevantCount int64 `json:"relevantTotal "`
52
+ RCECount int64 `json:"rceTotal"`
53
+ UrgentCount int64 `json:"urgent"`
54
+ NeglectedCount int64 `json:"neglected"`
48
55
}
49
56
50
57
type ShortVulnerabilityResult struct {
@@ -97,5 +104,6 @@ type CommonContainerScanSummaryResult struct {
97
104
Timestamp int64 `json:"timestamp"`
98
105
ImageSignatureValid bool `json:"imageSignatureValid,omitempty"`
99
106
ImageHasSignature bool `json:"imageHasSignature,omitempty"`
107
+ RelevantLabel RelevantLabel `json:"relevantLabel"`
100
108
HasRelevancyData bool `json:"hasRelevancyData"`
101
109
}
0 commit comments