Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + func FromObject(obj runtime.Object) error + func IsAlreadyExists(err error) bool + func IsConflict(err error) bool + func IsInvalid(err error) bool + func IsNotFound(err error) bool + func NewAlreadyExists(kind, name string) error + func NewConflict(kind, name string, err error) error + func NewInvalid(kind, name string, errs ErrorList) error + func NewNotFound(kind, name string) error + func ValueOf(t ValidationErrorType) string + type ErrorList util.ErrorList + func (list ErrorList) Prefix(prefix string) ErrorList + func (list ErrorList) PrefixIndex(index int) ErrorList + func (list ErrorList) ToError() error + type ValidationError struct + BadValue interface{} + Field string + Type ValidationErrorType + func NewFieldDuplicate(field string, value interface{}) ValidationError + func NewFieldInvalid(field string, value interface{}) ValidationError + func NewFieldNotFound(field string, value interface{}) ValidationError + func NewFieldNotSupported(field string, value interface{}) ValidationError + func NewFieldRequired(field string, value interface{}) ValidationError + func (v ValidationError) Error() string + type ValidationErrorType string + const ValidationErrorTypeDuplicate + const ValidationErrorTypeInvalid + const ValidationErrorTypeNotFound + const ValidationErrorTypeNotSupported + const ValidationErrorTypeRequired