Module object_store

Module object_store 

Source

Modulesยง

aws ๐Ÿ”’ cloud
Custom AWS logic to configure the AWS object_store. Upstream doesnโ€™t support the AWS credential chain.

Structsยง

ObjectStoreBlobService
Uses any object storage supported by the object_store crate to provide a snix-castore BlobService.
ObjectStoreBlobServiceConfig
ObjectStoreBlobWriter
Takes care of blob uploads. All writes are relayed to self.writer, and we continuously poll the future (which will internally read from the other side of the pipe and upload chunks). Our BlobWriter::close() needs to drop self.writer, so the other side will read EOF and can finalize the blob. The future should then resolve and return the blob digest.

Constantsยง

CONCURRENT_CHUNK_UPLOADS ๐Ÿ”’
The number of chunks that will be uploaded in parallel, per blob.

Functionsยง

chunk_and_upload ๐Ÿ”’
Reads blob contents from a AsyncRead, chunks and uploads them. On success, returns a StatBlobResponse pointing to the individual chunks.
default_avg_chunk_size ๐Ÿ”’
derive_blob_path ๐Ÿ”’
derive_chunk_path ๐Ÿ”’
upload_chunk ๐Ÿ”’
upload chunk if it doesnโ€™t exist yet.