Documentation ¶
Index ¶
- func AsUnprocessibleEntity(err error, detail string, errTypes ...ApiError) error
- func ForbiddenAsNotFound(err error) error
- func FromK8sError(err error, resourceType string) error
- func NotFoundAsUnprocessableEntity(err error, detail string) error
- type ApiError
- type ForbiddenError
- type InvalidAuthError
- type InvalidRequestError
- type MessageParseError
- type NotAuthenticatedError
- type NotFoundError
- type PackageBitsAlreadyUploadedError
- func (e PackageBitsAlreadyUploadedError) Code() int
- func (e PackageBitsAlreadyUploadedError) Detail() string
- func (e PackageBitsAlreadyUploadedError) Error() string
- func (e PackageBitsAlreadyUploadedError) HttpStatus() int
- func (e PackageBitsAlreadyUploadedError) Title() string
- func (e PackageBitsAlreadyUploadedError) Unwrap() error
- type UniquenessError
- type UnknownError
- type UnknownKeyError
- type UnprocessableEntityError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsUnprocessibleEntity ¶
func ForbiddenAsNotFound ¶
func FromK8sError ¶
Types ¶
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func NewForbiddenError ¶
func NewForbiddenError(cause error, resourceType string) ForbiddenError
func (ForbiddenError) HttpStatus ¶
func (e ForbiddenError) HttpStatus() int
func (ForbiddenError) ResourceType ¶
func (e ForbiddenError) ResourceType() string
type InvalidAuthError ¶
type InvalidAuthError struct {
// contains filtered or unexported fields
}
func NewInvalidAuthError ¶
func NewInvalidAuthError(cause error) InvalidAuthError
func (InvalidAuthError) HttpStatus ¶
func (e InvalidAuthError) HttpStatus() int
type InvalidRequestError ¶
type InvalidRequestError struct {
// contains filtered or unexported fields
}
func NewInvalidRequestError ¶
func NewInvalidRequestError(cause error, detail string) InvalidRequestError
func (InvalidRequestError) HttpStatus ¶
func (e InvalidRequestError) HttpStatus() int
type MessageParseError ¶
type MessageParseError struct {
// contains filtered or unexported fields
}
func NewMessageParseError ¶
func NewMessageParseError(cause error) MessageParseError
func (MessageParseError) HttpStatus ¶
func (e MessageParseError) HttpStatus() int
type NotAuthenticatedError ¶
type NotAuthenticatedError struct {
// contains filtered or unexported fields
}
func NewNotAuthenticatedError ¶
func NewNotAuthenticatedError(cause error) NotAuthenticatedError
func (NotAuthenticatedError) HttpStatus ¶
func (e NotAuthenticatedError) HttpStatus() int
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func NewNotFoundError ¶
func NewNotFoundError(cause error, resourceType string) NotFoundError
func (NotFoundError) HttpStatus ¶
func (e NotFoundError) HttpStatus() int
type PackageBitsAlreadyUploadedError ¶
type PackageBitsAlreadyUploadedError struct {
// contains filtered or unexported fields
}
func NewPackageBitsAlreadyUploadedError ¶
func NewPackageBitsAlreadyUploadedError(cause error) PackageBitsAlreadyUploadedError
func (PackageBitsAlreadyUploadedError) Detail ¶
func (e PackageBitsAlreadyUploadedError) Detail() string
func (PackageBitsAlreadyUploadedError) Error ¶
func (e PackageBitsAlreadyUploadedError) Error() string
func (PackageBitsAlreadyUploadedError) HttpStatus ¶
func (e PackageBitsAlreadyUploadedError) HttpStatus() int
type UniquenessError ¶
type UniquenessError struct {
// contains filtered or unexported fields
}
func NewUniquenessError ¶
func NewUniquenessError(cause error, detail string) UniquenessError
func (UniquenessError) HttpStatus ¶
func (e UniquenessError) HttpStatus() int
type UnknownError ¶
type UnknownError struct {
// contains filtered or unexported fields
}
func NewUnknownError ¶
func NewUnknownError(cause error) UnknownError
func (UnknownError) HttpStatus ¶
func (e UnknownError) HttpStatus() int
type UnknownKeyError ¶
type UnknownKeyError struct {
// contains filtered or unexported fields
}
func NewUnknownKeyError ¶
func NewUnknownKeyError(cause error, validKeys []string) UnknownKeyError
func (UnknownKeyError) HttpStatus ¶
func (e UnknownKeyError) HttpStatus() int
type UnprocessableEntityError ¶
type UnprocessableEntityError struct {
// contains filtered or unexported fields
}
func NewUnprocessableEntityError ¶
func NewUnprocessableEntityError(cause error, detail string) UnprocessableEntityError
func (UnprocessableEntityError) HttpStatus ¶
func (e UnprocessableEntityError) HttpStatus() int
Click to show internal directories.
Click to hide internal directories.