feat(tvix/castore/blobsvc): add Chunked{Blob,Reader}
These provide seekable access into a Blob for which we have more granular chunking information. There's no support for verified streaming in here yet, this simply produces a stream of readers for each chunk, skipping irrelevant chunks and data from the first chunk at the beginning. A seek simply does produce a new reader using the same process. Change-Id: I37f76b752adce027586770475435f3990a6dee0b Reviewed-on: https://cl.tvl.fyi/c/depot/+/10731 Reviewed-by: Connor Brewster <cbrewster@hey.com> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
8699a2b945
commit
d10c5309bc
2 changed files with 489 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ use tonic::async_trait;
|
|||
use crate::proto::stat_blob_response::ChunkMeta;
|
||||
use crate::B3Digest;
|
||||
|
||||
mod chunked_reader;
|
||||
mod combinator;
|
||||
mod from_addr;
|
||||
mod grpc;
|
||||
|
|
@ -15,6 +16,7 @@ mod sled;
|
|||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
pub use self::chunked_reader::ChunkedReader;
|
||||
pub use self::combinator::CombinedBlobService;
|
||||
pub use self::from_addr::from_addr;
|
||||
pub use self::grpc::GRPCBlobService;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue