This repository was archived by the owner on Jul 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinterfaces.go
142 lines (133 loc) · 3.74 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package containerscan
import (
"github.com/armosec/armoapi-go/apis"
"github.com/armosec/armoapi-go/armotypes"
)
type ScanReport interface {
IsLastReport() bool
GetDesignators() armotypes.PortalDesignator
GetContainerScanID() string
GetTimestamp() int64
GetWorkloadHash() string
GetCustomerGUID() string
GetSummary() ContainerScanSummaryResult
GetVulnerabilities() []ContainerScanVulnerabilityResult
GetVersion() string
GetPaginationInfo() apis.PaginationMarks
Validate() bool
SetDesignators(armotypes.PortalDesignator)
SetContainerScanID(string)
SetTimestamp(int64)
SetWorkloadHash(string)
SetCustomerGUID(string)
}
type ContainerScanSummaryResult interface {
GetDesignators() armotypes.PortalDesignator
GetContext() []armotypes.ArmoContext
GetWLID() string
GetImageTag() string
GetImageID() string
GetSeverityStats() SeverityStats
GetSeveritiesStats() []SeverityStats
GetClusterName() string
GetClusterShortName() string
GetNamespace() string
GetContainerName() string
GetStatus() string
GetRegistry() string
GetRepository() string
GetImageTageSuffix() string
GetVersion() string
GetCustomerGUID() string
GetContainerScanID() string
GetTimestamp() int64
GetJobIDs() []string
GetRelevantLabel() RelevantLabel
Validate() bool
GetHasRelevancyData() bool
SetDesignators(armotypes.PortalDesignator)
SetContext([]armotypes.ArmoContext)
SetWLID(string)
SetImageTag(string)
SetImageID(string)
SetSeverityStats(SeverityStats)
SetSeveritiesStats([]SeverityStats)
SetClusterName(string)
SetClusterShortName(string)
SetNamespace(string)
SetContainerName(string)
SetStatus(string)
SetRegistry(string)
SetImageTageSuffix(string)
SetVersion(string)
SetCustomerGUID(string)
SetContainerScanID(string)
SetTimestamp(int64)
SetRelevantLabel(RelevantLabel)
SetHasRelevancyData(bool)
}
type ContainerScanVulnerabilityResult interface {
GetDesignators() armotypes.PortalDesignator
GetContext() []armotypes.ArmoContext
GetWLID() string
GetContainerScanID() string
GetLayers() []ESLayer
GetLayersNested() []ESLayer
GetTimestamp() int64
GetIsLastScan() int
GetIsFixed() int
GetIntroducedInLayer() string
GetRelevantLinks() []string
GetRelatedExceptions() []armotypes.VulnerabilityExceptionPolicy
GetVulnerability() VulnerabilityResult
GetRelevantLabel() RelevantLabel
GetClusterShortName() string
SetDesignators(designators armotypes.PortalDesignator)
SetContext(context []armotypes.ArmoContext)
SetWLID(wlid string)
SetContainerScanID(containerScanID string)
SetLayers(layers []ESLayer)
SetLayersNested(layersNested []ESLayer)
SetTimestamp(timestamp int64)
SetIsLastScan(isLastScan int)
SetIsFixed(isFixed int)
SetIntroducedInLayer(introducedInLayer string)
SetRelevantLinks(relevantLinks []string)
SetRelatedExceptions(relatedExceptions []armotypes.VulnerabilityExceptionPolicy)
SetRelevantLabel(relevantLabel RelevantLabel)
SetClusterShortName(clusterShortName string)
}
type VulnerabilityResult interface {
GetName() string
GetImageID() string
GetImageTag() string
GetRelatedPackageName() string
GetPackageVersion() string
GetLink() string
GetDescription() string
GetSeverity() string
GetSeverityScore() int
GetFixes() VulFixes
GetIsRelevant() *bool
GetUrgentCount() int
GetNeglectedCount() int
GetHealthStatus() string
GetCategories() VulnerabilityCategory
GetExceptionApplied() []armotypes.VulnerabilityExceptionPolicy
SetName(string)
SetImageID(string)
SetImageTag(string)
SetRelatedPackageName(string)
SetPackageVersion(string)
SetLink(string)
SetDescription(string)
SetSeverity(string)
SetSeverityScore(int)
SetFixes(VulFixes)
SetIsRelevant(*bool)
SetUrgentCount(int)
SetNeglectedCount(int)
SetHealthStatus(string)
SetCategories(VulnerabilityCategory)
SetExceptionApplied([]armotypes.VulnerabilityExceptionPolicy)
}