{"modulePath":"github.com/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package validation\n\n## Variables\n\n```go\nvar Validator = \u0026RuntimeObjectsValidator{map[reflect.Type]RuntimeObjectValidatorInfo{}}\n```\n\n## Functions\n\n```go\nfunc GetRequiresNamespace(obj runtime.Object) (bool, error)\n```\n\n```go\nfunc HasObjectMeta(obj runtime.Object) bool\n```\n\n## Types\n\n```go\ntype RuntimeObjectValidator interface {\n\tValidate(obj runtime.Object) field.ErrorList\n\tValidateUpdate(obj, old runtime.Object) field.ErrorList\n}\n```\n\n```go\ntype RuntimeObjectValidatorInfo struct {\n\tValidator     RuntimeObjectValidator\n\tIsNamespaced  bool\n\tHasObjectMeta bool\n\tUpdateAllowed bool\n}\n```\n\n```go\ntype RuntimeObjectsValidator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v *RuntimeObjectsValidator) GetInfo(obj runtime.Object) (RuntimeObjectValidatorInfo, bool)\n```\n\n```go\nfunc (v *RuntimeObjectsValidator) MustRegister(obj runtime.Object, validateFunction interface{}, validateUpdateFunction interface{})\n```\n\n```go\nfunc (v *RuntimeObjectsValidator) Register(obj runtime.Object, validateFunction interface{}, validateUpdateFunction interface{}) error\n```\n\n```go\nfunc (v *RuntimeObjectsValidator) Validate(obj runtime.Object) field.ErrorList\n```\n\n```go\nfunc (v *RuntimeObjectsValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList\n```\n\n```go\ntype WrappingValidator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewValidationWrapper(validateFunction interface{}, validateUpdateFunction interface{}) (*WrappingValidator, error)\n```\n\n```go\nfunc (v *WrappingValidator) Validate(obj runtime.Object) field.ErrorList\n```\n\n```go\nfunc (v *WrappingValidator) ValidateUpdate(obj, old runtime.Object) field.ErrorList\n```\n\n","path":"github.com/openshift/origin/pkg/api/validation","name":"validation","synopsis":"","isRedistributable":true}
