Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBlobKeyNotFound = errors.New("blob key not found")
ErrBlobKeyNotFound is returned by blob operations when a key is missing
ErrBlobStoreUnavailable is returned when blob store cannot be accessed
var ErrNilTxn = errors.New("nil transaction")
ErrNilTxn is returned when a nil transaction is provided where a valid transaction is required
var ErrNoStoreAvailable = errors.New("no store available")
ErrNoStoreAvailable is returned when no blob or metadata store is available
var ErrTxnWrongType = errors.New("invalid transaction type")
ErrTxnWrongType is returned when a transaction has the wrong type
Functions ¶
This section is empty.
Types ¶
type BlobIterator ¶ added in v0.19.0
type BlobIterator interface {
Rewind()
Seek(prefix []byte)
Valid() bool
ValidForPrefix(prefix []byte) bool
Next()
Item() BlobItem
Close()
Err() error
}
BlobIterator provides key iteration over the blob store.
Important lifecycle constraint: items returned by `Item()` must only be accessed while the underlying transaction used to create the iterator is still active. Implementations may validate transaction state at access time (for example `ValueCopy` may fail if the transaction has been committed or rolled back). Typical usage iterates and accesses item values within the same transaction scope.
type BlobIteratorOptions ¶ added in v0.19.0
BlobIteratorOptions configures blob iterator creation