Skip to main content

Module blobstore

Module blobstore 

Source
Expand description

BlobMeta storage, used to assemble blobs from more granular Chunks.

Modulesยง

blob_meta ๐Ÿ”’
blob_reader ๐Ÿ”’
blob_writer ๐Ÿ”’
combinators
Combinators that compose multiple BlobStore implementations.
grpc
A gRPC client implementation.
memory
In-memory implementation, using a HashMap.
mock_writer ๐Ÿ”’ mocks
A super::Writer that can be used for tests
object_store
Object-store backend, also supporting the local filesystem.

Structsยง

BlobMeta
Describes information to assemble a Blob.
BlobWriter
Writes bytes to a ChunkStore, returning the BlobMeta and B3Digest on close.
Error
Error returned from all BlobStores.
MockWritermocks
Implements super::Writer and panics if the expected data wasnโ€™t written on close.

Enumsยง

BlobReader
A reader for one Blob.

Traitsยง

BlobStore
Retrieves and stores BlobMeta about Blobs. Blobs can consist of multiple Chunks. Blobs are keyed by the BLAKE3 digest of their entire data.
LimitBlobReader
Limited reads from a blob (starting from offset, up to size)
Reader
BlobReader is a tokio::io::AsyncRead that also allows seeking.
Writer
A tokio::io::AsyncWrite that the user needs to close() afterwards to persist. On success, it returns the digest of the written blob.

Functionsยง

register_blob_stores ๐Ÿ”’
Registers the builtin BlobStores with the registry.