validation

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2015 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetRequiresNamespace added in v0.6.1

func GetRequiresNamespace(obj runtime.Object) (bool, error)

func HasObjectMeta added in v0.6.1

func HasObjectMeta(obj runtime.Object) bool

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 (*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 (*RuntimeObjectsValidator) ValidateUpdate added in v0.6.1

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 (*WrappingValidator) ValidateUpdate added in v0.6.1

func (v *WrappingValidator) ValidateUpdate(obj, old runtime.Object) fielderrors.ValidationErrorList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL