Versions in this module Expand all Collapse all v0 v0.9.0 Jan 20, 2015 Changes in this version + func FromObject(obj runtime.Object) error + func IsAlreadyExists(err error) bool + func IsBadRequest(err error) bool + func IsConflict(err error) bool + func IsInvalid(err error) bool + func IsMethodNotSupported(err error) bool + func IsNotFound(err error) bool + func NewAlreadyExists(kind, name string) error + func NewBadRequest(reason string) error + func NewConflict(kind, name string, err error) error + func NewForbidden(kind, name string, err error) error + func NewInternalError(err error) error + func NewInvalid(kind, name string, errs ValidationErrorList) error + func NewMethodNotSupported(kind, action string) error + func NewNotFound(kind, name string) error + type StatusError struct + ErrStatus api.Status + func (e *StatusError) Error() string + func (e *StatusError) Status() api.Status + type UnexpectedObjectError struct + Object runtime.Object + func (u *UnexpectedObjectError) Error() string + type ValidationError struct + BadValue interface{} + Detail string + Field string + Type ValidationErrorType + func NewFieldDuplicate(field string, value interface{}) *ValidationError + func NewFieldForbidden(field string, value interface{}) *ValidationError + func NewFieldInvalid(field string, value interface{}, detail string) *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 ValidationErrorList []error + func (list ValidationErrorList) Prefix(prefix string) ValidationErrorList + func (list ValidationErrorList) PrefixIndex(index int) ValidationErrorList + type ValidationErrorType string + const ValidationErrorTypeDuplicate + const ValidationErrorTypeForbidden + const ValidationErrorTypeInvalid + const ValidationErrorTypeNotFound + const ValidationErrorTypeNotSupported + const ValidationErrorTypeRequired + func (t ValidationErrorType) String() string