- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsValidateFunc (0.16 sec)
-
pkg/config/schema/ast/ast.go
m.Resources = in.Resources seen := sets.New[string]() // Process resources. for i, r := range m.Resources { if r.Validate == "" { validateFn := "Validate" + asResourceVariableName(r.Kind) if !validation.IsValidateFunc(validateFn) { validateFn = "validation.EmptyValidate" } else { if r.Kind == "EnvoyFilter" { validateFn = "envoyfilter." + validateFn } else { validateFn = "validation." + validateFn }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/config/validation/validation.go
return Validation{Err: e} } // ValidateFunc defines a validation func for an API proto. type ValidateFunc func(config config.Config) (Warning, error) // IsValidateFunc indicates whether there is a validation function with the given name. func IsValidateFunc(name string) bool { return GetValidateFunc(name) != nil } // GetValidateFunc returns the validation function with the given name, or null if it does not exist.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)