mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-24 16:57:27 +00:00
Bump k8s.io/kube-openapi to commit ee342a809c29
Updates to consume the aggregated OpenAPI spec lazy-marshaling behaviour introduced with: https://github.com/kubernetes/kube-openapi/pull/251 Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
This commit is contained in:
16
vendor/k8s.io/kube-openapi/pkg/validation/validate/validator.go
generated
vendored
16
vendor/k8s.io/kube-openapi/pkg/validation/validate/validator.go
generated
vendored
@@ -21,15 +21,17 @@ import (
|
||||
"k8s.io/kube-openapi/pkg/validation/spec"
|
||||
)
|
||||
|
||||
// An EntityValidator is an interface for things that can validate entities
|
||||
type EntityValidator interface {
|
||||
Validate(interface{}) *Result
|
||||
}
|
||||
|
||||
// valueValidator validates the values it applies to.
|
||||
type valueValidator interface {
|
||||
// SetPath sets the exact path of the validator prior to calling Validate.
|
||||
// The exact path contains the map keys and array indices to locate the
|
||||
// value to be validated from the root data element.
|
||||
SetPath(path string)
|
||||
Applies(interface{}, reflect.Kind) bool
|
||||
Validate(interface{}) *Result
|
||||
// Applies returns true if the validator applies to the valueKind
|
||||
// from source. Validate will be called if and only if Applies returns true.
|
||||
Applies(source interface{}, valueKind reflect.Kind) bool
|
||||
// Validate validates the value.
|
||||
Validate(value interface{}) *Result
|
||||
}
|
||||
|
||||
type basicCommonValidator struct {
|
||||
|
||||
Reference in New Issue
Block a user