This repository was archived by the owner on Jul 23, 2023. It is now read-only.
File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ func (c *CommonContainerVulnerabilityResult) GetRelevantLabel() RelevantLabel {
62
62
return c .RelevantLabel
63
63
}
64
64
65
+ func (c * CommonContainerVulnerabilityResult ) GetClusterShortName () string {
66
+ return c .ClusterShortName
67
+ }
68
+
65
69
func (c * CommonContainerVulnerabilityResult ) SetDesignators (designators armotypes.PortalDesignator ) {
66
70
c .Designators = designators
67
71
}
@@ -113,3 +117,7 @@ func (c *CommonContainerVulnerabilityResult) SetRelatedExceptions(relatedExcepti
113
117
func (c * CommonContainerVulnerabilityResult ) SetRelevantLabel (relevantLabel RelevantLabel ) {
114
118
c .RelevantLabel = relevantLabel
115
119
}
120
+
121
+ func (c * CommonContainerVulnerabilityResult ) SetClusterShortName (clusterShortName string ) {
122
+ c .ClusterShortName = clusterShortName
123
+ }
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ type CommonContainerVulnerabilityResult struct {
27
27
IsLastScan int `json:"isLastScan"`
28
28
IsFixed int `json:"isFixed"`
29
29
RelevantLabel RelevantLabel `json:"relevantLabel"`
30
+ ClusterShortName string `json:"clusterShortName"`
30
31
}
31
32
32
33
type ESLayer struct {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ type ContainerScanVulnerabilityResult interface {
86
86
GetRelatedExceptions () []armotypes.VulnerabilityExceptionPolicy
87
87
GetVulnerability () VulnerabilityResult
88
88
GetRelevantLabel () RelevantLabel
89
+ GetClusterShortName () string
89
90
90
91
SetDesignators (designators armotypes.PortalDesignator )
91
92
SetContext (context []armotypes.ArmoContext )
@@ -100,6 +101,7 @@ type ContainerScanVulnerabilityResult interface {
100
101
SetRelevantLinks (relevantLinks []string )
101
102
SetRelatedExceptions (relatedExceptions []armotypes.VulnerabilityExceptionPolicy )
102
103
SetRelevantLabel (relevantLabel RelevantLabel )
104
+ SetClusterShortName (clusterShortName string )
103
105
}
104
106
105
107
type VulnerabilityResult interface {
You can’t perform that action at this time.
0 commit comments