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 @@ -34,6 +34,10 @@ func (summary *CommonContainerScanSummaryResult) GetClusterName() string {
34
34
return summary .ClusterName
35
35
}
36
36
37
+ func (summary * CommonContainerScanSummaryResult ) GetClusterShortName () string {
38
+ return summary .ClusterShortName
39
+ }
40
+
37
41
func (summary * CommonContainerScanSummaryResult ) GetNamespace () string {
38
42
return summary .Namespace
39
43
}
@@ -125,6 +129,10 @@ func (summary *CommonContainerScanSummaryResult) SetClusterName(clusterName stri
125
129
summary .ClusterName = clusterName
126
130
}
127
131
132
+ func (summary * CommonContainerScanSummaryResult ) SetClusterShortName (clusterShortName string ) {
133
+ summary .ClusterShortName = clusterShortName
134
+ }
135
+
128
136
func (summary * CommonContainerScanSummaryResult ) SetNamespace (namespace string ) {
129
137
summary .Namespace = namespace
130
138
}
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ type CommonContainerScanSummaryResult struct {
92
92
ImageID string `json:"imageHash"`
93
93
ImageTag string `json:"imageTag"`
94
94
ClusterName string `json:"cluster"`
95
+ ClusterShortName string `json:"clusterShortName"`
95
96
Namespace string `json:"namespace"`
96
97
ContainerName string `json:"containerName"`
97
98
ImageTagSuffix string `json:"versionImage"`
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ type ContainerScanSummaryResult interface {
34
34
GetSeverityStats () SeverityStats
35
35
GetSeveritiesStats () []SeverityStats
36
36
GetClusterName () string
37
+ GetClusterShortName () string
37
38
GetNamespace () string
38
39
GetContainerName () string
39
40
GetStatus () string
@@ -56,6 +57,7 @@ type ContainerScanSummaryResult interface {
56
57
SetSeverityStats (SeverityStats )
57
58
SetSeveritiesStats ([]SeverityStats )
58
59
SetClusterName (string )
60
+ SetClusterShortName (string )
59
61
SetNamespace (string )
60
62
SetContainerName (string )
61
63
SetStatus (string )
You can’t perform that action at this time.
0 commit comments