validation

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: Apache-2.0 Imports: 28 Imported by: 0

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