Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConflictError ¶
NewConflictError creates a new ConflictError with the given ID.
func NewInvalidRequestError ¶
NewInvalidRequestError creates a new InvalidRequestError with the given reason.
func NewNotFoundError ¶
NewNotFoundError creates a new NotFoundError with the given ID and path.
func NewStorageError ¶
NewStorageError creates a new StorageError with the given operation and error.
Types ¶
type ConflictError ¶
type ConflictError struct {
ID string
}
ConflictError is returned when a resource already exists
func (*ConflictError) Error ¶
func (e *ConflictError) Error() string
type InvalidRequestError ¶
type InvalidRequestError struct {
Reason string
}
InvalidRequestError is returned when the request is invalid
func (*InvalidRequestError) Error ¶
func (e *InvalidRequestError) Error() string
type NotFoundError ¶
NotFoundError is returned when a resource is not found
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type StorageError ¶
StorageError is returned when there's an error in storage operations
func (*StorageError) Error ¶
func (e *StorageError) Error() string
Click to show internal directories.
Click to hide internal directories.