mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
* bump version Signed-off-by: David Wertenteil <dwertent@armosec.io> * change default view Signed-off-by: David Wertenteil <dwertent@armosec.io> * fixed tests Signed-off-by: David Wertenteil <dwertent@armosec.io> * fixed go mod Signed-off-by: David Wertenteil <dwertent@armosec.io> --------- Signed-off-by: David Wertenteil <dwertent@armosec.io>
19 lines
432 B
Go
19 lines
432 B
Go
package shared
|
|
|
|
import "github.com/kubescape/kubescape/v3/core/cautils"
|
|
|
|
type ImageCredentials struct {
|
|
Username string
|
|
Password string
|
|
}
|
|
|
|
// ValidateImageScanInfo validates the ScanInfo struct for image scanning commands
|
|
func ValidateImageScanInfo(scanInfo *cautils.ScanInfo) error {
|
|
severity := scanInfo.FailThresholdSeverity
|
|
|
|
if err := ValidateSeverity(severity); severity != "" && err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|