Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + const ERR_CONFLICT + const ERR_FAILED + const ERR_INVALID + const ERR_INVALID_RESPONSE + const ERR_NAMESPACED + const ERR_NON_UNIQUE_MAPPING + const ERR_NOT_FOUND + const ERR_NOT_NAMESPACED + const ERR_NO_LIST_TYPE + const ERR_NO_STATUS_SUBRESOURCE + const ERR_OBJECT_REJECTED + const ERR_PERMISSION_DENIED + const ERR_RESOURCE_MISMATCH + const ERR_TYPE_MISMATCH + const ERR_UNEXPECTED_RESOURCE + const ERR_UNEXPECTED_TYPE + const ERR_UNKNOWN + const ERR_UNKNOWN_RESOURCE + const GROUP + var ErrFailed = errors.DeclareFormalType(GROUP, ERR_FAILED, "%s failed: %s") + var ErrNamespaced = errors.DeclareFormalType(GROUP, ERR_NAMESPACED, "resource is namespaced: %s") + var ErrNoStatusSubResource = errors.DeclareFormalType(GROUP, ERR_NO_STATUS_SUBRESOURCE, "resource %q has no status sub resource") + var ErrNotFound = errors.DeclareFormalType(GROUP, ERR_NOT_FOUND, "%s not found: %s") + var ErrNotNamespaced = errors.DeclareFormalType(GROUP, ERR_NOT_NAMESPACED, "resource is not namespaced: %s") + var ErrResourceMismatch = errors.DeclareFormalType(GROUP, ERR_RESOURCE_MISMATCH, ...) + var ErrTypeMismatch = errors.DeclareFormalType(GROUP, ERR_TYPE_MISMATCH, "unexpected type %T (expected %s)") + var ErrUnexpectedResource = errors.DeclareFormalType(GROUP, ERR_UNEXPECTED_RESOURCE, "unexpected resource for %s: %s") + var ErrUnexpectedType = errors.DeclareFormalType(GROUP, ERR_UNEXPECTED_TYPE, "unexpected type for %s: %T") + var ErrUnknown = errors.DeclareFormalType(GROUP, ERR_UNKNOWN, "unknown %s") + var ErrUnknownResource = errors.DeclareFormalType(GROUP, ERR_UNKNOWN_RESOURCE, "unknown resource for %s %q") + func IsGroup(err error) bool + func IsKind(name string, err error) bool + func New(kind string, msgfmt string, args ...interface{}) error + func NewForObject(o interface{}, kind string, msgfmt string, args ...interface{}) error + func NewForObjects(o []interface{}, kind string, msgfmt string, args ...interface{}) error + func NewInvalid(msgfmt string, elem interface{}) error + func NewNotFound(msgfmt string, elem interface{}) error + func Wrap(err error, kind string, msgfmt string, args ...interface{}) error + func WrapForObject(err error, o interface{}, kind string, msgfmt string, args ...interface{}) error + func WrapForObjects(err error, o []interface{}, kind string, msgfmt string, args ...interface{}) error