Documentation ¶
Index ¶
- Variables
- func HasObjectMeta(obj runtime.Object) bool
- type RuntimeObjectValidator
- type RuntimeObjectValidatorInfo
- type RuntimeObjectsValidator
- func (v *RuntimeObjectsValidator) GetInfo(obj runtime.Object) (RuntimeObjectValidatorInfo, bool)
- func (v *RuntimeObjectsValidator) GetRequiresNamespace(obj runtime.Object) (bool, error)
- func (v *RuntimeObjectsValidator) MustRegister(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, ...)
- func (v *RuntimeObjectsValidator) Register(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, ...) error
- func (v *RuntimeObjectsValidator) Validate(obj runtime.Object) field.ErrorList
- func (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList
- type WrappingValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var Validator = &RuntimeObjectsValidator{map[reflect.Type]RuntimeObjectValidatorInfo{}}
Functions ¶
func HasObjectMeta ¶
Types ¶
type RuntimeObjectValidator ¶
type RuntimeObjectValidatorInfo ¶
type RuntimeObjectValidatorInfo struct { Validator RuntimeObjectValidator IsNamespaced bool HasObjectMeta bool UpdateAllowed bool }
type RuntimeObjectsValidator ¶
type RuntimeObjectsValidator struct {
// contains filtered or unexported fields
}
func (*RuntimeObjectsValidator) GetInfo ¶
func (v *RuntimeObjectsValidator) GetInfo(obj runtime.Object) (RuntimeObjectValidatorInfo, bool)
func (*RuntimeObjectsValidator) GetRequiresNamespace ¶
func (v *RuntimeObjectsValidator) GetRequiresNamespace(obj runtime.Object) (bool, error)
func (*RuntimeObjectsValidator) MustRegister ¶
func (v *RuntimeObjectsValidator) MustRegister(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, validateUpdateFunction interface{})
func (*RuntimeObjectsValidator) Register ¶
func (v *RuntimeObjectsValidator) Register(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, validateUpdateFunction interface{}) error
func (*RuntimeObjectsValidator) Validate ¶
func (v *RuntimeObjectsValidator) Validate(obj runtime.Object) field.ErrorList
func (*RuntimeObjectsValidator) ValidateUpdate ¶
func (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList
type WrappingValidator ¶
type WrappingValidator struct {
// contains filtered or unexported fields
}
func NewValidationWrapper ¶
func NewValidationWrapper(validateFunction interface{}, validateUpdateFunction interface{}) (*WrappingValidator, error)
func (*WrappingValidator) Validate ¶
func (v *WrappingValidator) Validate(obj runtime.Object) field.ErrorList
func (*WrappingValidator) ValidateUpdate ¶
func (v *WrappingValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList
Click to show internal directories.
Click to hide internal directories.