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 ¶ added in v0.6.1
Types ¶
type RuntimeObjectValidator ¶ added in v0.6.1
type RuntimeObjectValidatorInfo ¶ added in v0.6.1
type RuntimeObjectValidatorInfo struct { Validator RuntimeObjectValidator IsNamespaced bool HasObjectMeta bool UpdateAllowed bool }
type RuntimeObjectsValidator ¶ added in v0.6.1
type RuntimeObjectsValidator struct {
// contains filtered or unexported fields
}
func (*RuntimeObjectsValidator) GetInfo ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) GetInfo(obj runtime.Object) (RuntimeObjectValidatorInfo, bool)
func (*RuntimeObjectsValidator) GetRequiresNamespace ¶
func (v *RuntimeObjectsValidator) GetRequiresNamespace(obj runtime.Object) (bool, error)
func (*RuntimeObjectsValidator) MustRegister ¶ added in v1.1.3
func (v *RuntimeObjectsValidator) MustRegister(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, validateUpdateFunction interface{})
func (*RuntimeObjectsValidator) Register ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) Register(obj runtime.Object, namespaceScoped bool, validateFunction interface{}, validateUpdateFunction interface{}) error
func (*RuntimeObjectsValidator) Validate ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) Validate(obj runtime.Object) field.ErrorList
func (*RuntimeObjectsValidator) ValidateUpdate ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList
type WrappingValidator ¶ added in v0.6.1
type WrappingValidator struct {
// contains filtered or unexported fields
}
func NewValidationWrapper ¶ added in v0.6.1
func NewValidationWrapper(validateFunction interface{}, validateUpdateFunction interface{}) (*WrappingValidator, error)
func (*WrappingValidator) Validate ¶ added in v0.6.1
func (v *WrappingValidator) Validate(obj runtime.Object) field.ErrorList
func (*WrappingValidator) ValidateUpdate ¶ added in v0.6.1
func (v *WrappingValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList
Click to show internal directories.
Click to hide internal directories.