Documentation ¶
Index ¶
- func IsSupportedIPFamily(ipFamily corev1.IPFamily) bool
- func ValidateEnum[E comparable](allowed sets.Set[E], value E, fldPath *field.Path, requiredDetail string) field.ErrorList
- func ValidateFieldAllowList(value interface{}, allowedFields sets.Set[string], errorText string, ...) field.ErrorList
- func ValidateIPFamilies(ipFamilies []corev1.IPFamily, fldPath *field.Path) field.ErrorList
- func ValidateIPFamily(ipFamily corev1.IPFamily, fldPath *field.Path) field.ErrorList
- func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList
- func ValidateImmutableFieldWithDiff(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList
- func ValidateNonNegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList
- func ValidatePositiveQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList
- func ValidatePowerOfTwo(value int64, fldPath *field.Path) field.ErrorList
- func ValidateProtocol(protocol corev1.Protocol, fldPath *field.Path) field.ErrorList
- func ValidateSetOnceField(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedIPFamily ¶
func ValidateEnum ¶
func ValidateFieldAllowList ¶
func ValidateFieldAllowList(value interface{}, allowedFields sets.Set[string], errorText string, fldPath *field.Path) field.ErrorList
ValidateFieldAllowList checks that only allowed fields are set. The value must be a struct (not a pointer to a struct!).
func ValidateIPFamilies ¶
func ValidateIPFamily ¶
func ValidateImmutableField ¶
func ValidateProtocol ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.