Module tvix_castore::blobservice::object_store
source · Structs§
- Uses any object storage supported by the object_store crate to provide a tvix-castore BlobService.
- 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.
Functions§
- chunk_
and_ πupload Reads blob contents from a AsyncRead, chunks and uploads them. On success, returns a StatBlobResponse pointing to the individual chunks. - derive_
blob_ πpath - derive_
chunk_ πpath - upload_
chunk πupload chunk if it doesnβt exist yet.