Documentation
¶
Overview ¶
Package errors defines the typed error hierarchy for the blobstore. All errors returned by the public API are either one of these types or wrap one of them — callers can use errors.As to inspect them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyExistsError ¶
type AlreadyExistsError struct {
NamespaceID string
}
AlreadyExistsError is returned when creating a namespace that already exists.
func (*AlreadyExistsError) Error ¶
func (e *AlreadyExistsError) Error() string
type ClosedError ¶
type ClosedError struct{}
ClosedError is returned when an operation is attempted on a closed Store.
func (*ClosedError) Error ¶
func (e *ClosedError) Error() string
type CorruptionError ¶
CorruptionError is returned when a CRC or integrity check fails. This indicates physical data corruption in a segment file.
func (*CorruptionError) Error ¶
func (e *CorruptionError) Error() string
type InvalidKeyError ¶
InvalidKeyError is returned when a key contains illegal characters or violates naming constraints.
func (*InvalidKeyError) Error ¶
func (e *InvalidKeyError) Error() string
type InvalidNamespaceIDError ¶
InvalidNamespaceIDError is returned when a namespace ID is malformed.
func (*InvalidNamespaceIDError) Error ¶
func (e *InvalidNamespaceIDError) Error() string
type NotFoundError ¶
NotFoundError is returned when a key or namespace does not exist.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type QuotaExceededError ¶
type QuotaExceededError struct {
NamespaceID string
Dimension string // "bytes", "blob_count", "blob_size"
Limit int64
Requested int64
}
QuotaExceededError is returned when a write would exceed a namespace quota.
func (*QuotaExceededError) Error ¶
func (e *QuotaExceededError) Error() string