Documentation ¶
Index ¶
- Variables
- func GetRequiresNamespace(obj runtime.Object) (bool, error)
- func HasObjectMeta(obj runtime.Object) bool
- type RuntimeObjectValidator
- type RuntimeObjectValidatorInfo
- type RuntimeObjectsValidator
- func (v *RuntimeObjectsValidator) GetInfo(obj runtime.Object) (RuntimeObjectValidatorInfo, bool)
- func (v *RuntimeObjectsValidator) Register(obj runtime.Object, validateFunction interface{}, ...) error
- func (v *RuntimeObjectsValidator) Validate(obj runtime.Object) fielderrors.ValidationErrorList
- func (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) fielderrors.ValidationErrorList
- type WrappingValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var Validator = &RuntimeObjectsValidator{map[reflect.Type]RuntimeObjectValidatorInfo{}}
Functions ¶
func GetRequiresNamespace ¶ added in v0.6.1
func HasObjectMeta ¶ added in v0.6.1
Types ¶
type RuntimeObjectValidator ¶ added in v0.6.1
type RuntimeObjectValidator interface { Validate(obj runtime.Object) fielderrors.ValidationErrorList ValidateUpdate(obj, old runtime.Object) fielderrors.ValidationErrorList }
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) Register ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) Register(obj runtime.Object, validateFunction interface{}, validateUpdateFunction interface{}) error
func (*RuntimeObjectsValidator) Validate ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) Validate(obj runtime.Object) fielderrors.ValidationErrorList
func (*RuntimeObjectsValidator) ValidateUpdate ¶ added in v0.6.1
func (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) fielderrors.ValidationErrorList
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) fielderrors.ValidationErrorList
func (*WrappingValidator) ValidateUpdate ¶ added in v0.6.1
func (v *WrappingValidator) ValidateUpdate(obj, old runtime.Object) fielderrors.ValidationErrorList
Click to show internal directories.
Click to hide internal directories.