Skip to content
This repository was archived by the owner on Jul 23, 2023. It is now read-only.

Commit 36cb3d3

Browse files
authored
Merge pull request #22 from armosec/cluster-short-name
cluster short name to vulnerability
2 parents 907606c + 328ca68 commit 36cb3d3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

containerscan/commonContainerVulnerabilityResultMethods.go

+8
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func (c *CommonContainerVulnerabilityResult) GetRelevantLabel() RelevantLabel {
6262
return c.RelevantLabel
6363
}
6464

65+
func (c *CommonContainerVulnerabilityResult) GetClusterShortName() string {
66+
return c.ClusterShortName
67+
}
68+
6569
func (c *CommonContainerVulnerabilityResult) SetDesignators(designators armotypes.PortalDesignator) {
6670
c.Designators = designators
6771
}
@@ -113,3 +117,7 @@ func (c *CommonContainerVulnerabilityResult) SetRelatedExceptions(relatedExcepti
113117
func (c *CommonContainerVulnerabilityResult) SetRelevantLabel(relevantLabel RelevantLabel) {
114118
c.RelevantLabel = relevantLabel
115119
}
120+
121+
func (c *CommonContainerVulnerabilityResult) SetClusterShortName(clusterShortName string) {
122+
c.ClusterShortName = clusterShortName
123+
}

containerscan/commondatastructures.go

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type CommonContainerVulnerabilityResult struct {
2727
IsLastScan int `json:"isLastScan"`
2828
IsFixed int `json:"isFixed"`
2929
RelevantLabel RelevantLabel `json:"relevantLabel"`
30+
ClusterShortName string `json:"clusterShortName"`
3031
}
3132

3233
type ESLayer struct {

containerscan/interfaces.go

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type ContainerScanVulnerabilityResult interface {
8686
GetRelatedExceptions() []armotypes.VulnerabilityExceptionPolicy
8787
GetVulnerability() VulnerabilityResult
8888
GetRelevantLabel() RelevantLabel
89+
GetClusterShortName() string
8990

9091
SetDesignators(designators armotypes.PortalDesignator)
9192
SetContext(context []armotypes.ArmoContext)
@@ -100,6 +101,7 @@ type ContainerScanVulnerabilityResult interface {
100101
SetRelevantLinks(relevantLinks []string)
101102
SetRelatedExceptions(relatedExceptions []armotypes.VulnerabilityExceptionPolicy)
102103
SetRelevantLabel(relevantLabel RelevantLabel)
104+
SetClusterShortName(clusterShortName string)
103105
}
104106

105107
type VulnerabilityResult interface {

0 commit comments

Comments
 (0)