Documentation ¶
Index ¶
- Variables
- func ContainerCheck(fl validator.FieldLevel) string
- func IsDNS1123Label(fl validator.FieldLevel) string
- func IsQuantity(fl validator.FieldLevel) string
- func IsSupportsWorkLoads(fl validator.FieldLevel) string
- func IsSyncMode(fl validator.FieldLevel) string
- func IsSyncType(fl validator.FieldLevel) string
- func LanguageCheck(fl validator.FieldLevel) string
- func PortCheck(fl validator.FieldLevel) string
- func PortForwardCheck(fl validator.FieldLevel) string
- func PrepareForConfigurationValidate(client *clientgoutils.ClientGoUtils, containers []v1.Container)
- func StorageClassSupported(fl validator.FieldLevel) string
- func Validate(s *profile.ServiceConfigV2) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DNS1123 = "DNS1123" WorkLoads = "WorkLoads" SyncType = "SyncType" SyncMode = "SyncMode" Quantity = "Quantity" StorageClass = "StorageClass" PortForward = "PortForward" Port = "Port" Container = "Container" Language = "Language" SUPPORT_SC = "NOCALHOST_SUPPORT_SC" CONTAINERS = "NOCALHOST_CONTAINERS" )
Functions ¶
func ContainerCheck ¶
func ContainerCheck(fl validator.FieldLevel) string
func IsDNS1123Label ¶
func IsDNS1123Label(fl validator.FieldLevel) string
func IsQuantity ¶
func IsQuantity(fl validator.FieldLevel) string
func IsSupportsWorkLoads ¶
func IsSupportsWorkLoads(fl validator.FieldLevel) string
func IsSyncMode ¶
func IsSyncMode(fl validator.FieldLevel) string
func IsSyncType ¶
func IsSyncType(fl validator.FieldLevel) string
func LanguageCheck ¶
func LanguageCheck(fl validator.FieldLevel) string
func PortForwardCheck ¶
func PortForwardCheck(fl validator.FieldLevel) string
func PrepareForConfigurationValidate ¶
func PrepareForConfigurationValidate(client *clientgoutils.ClientGoUtils, containers []v1.Container)
PrepareForConfigurationValidate some validation relies on K8s resource, etc. so we should query them first and use os.setEnv to pass those condition
func StorageClassSupported ¶
func StorageClassSupported(fl validator.FieldLevel) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.