mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
added ElasticContainerScanSummaryResult Validate function doc string
Signed-off-by: cbrom <kb.cbrom@gmail.com>
This commit is contained in:
@@ -86,6 +86,7 @@ type ElasticContainerScanSummaryResult struct {
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
// Validate checks if the ElasticContainerScanSummaryResult object is valid.
|
||||
func (summary *ElasticContainerScanSummaryResult) Validate() bool {
|
||||
return summary.CustomerGUID != "" && summary.ContainerScanID != "" && (summary.ImgTag != "" || summary.ImgHash != "") && summary.Timestamp > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user