tvl-depot/tvix/store/protos
Florian Klink 616fa4476f refactor(tvix/store): remove ChunkService
Whether chunking is involved or not, is an implementation detail of each
Blobstore. Consumers of a whole blob shouldn't need to worry about that.
It currently is not visible in the gRPC interface either. It
shouldn't bleed into everything.

Let the BlobService trait provide `open_read` and `open_write` methods,
which return handles providing io::Read or io::Write, and leave the
details up to the implementation.

This means, our custom BlobReader module can go away, and all the
chunking bits in there, too.

In the future, we might still want to add more chunking-aware syncing,
but as a syncing strategy some stores can expose, not as a fundamental
protocol component.

This currently needs "SyncReadIntoAsyncRead", taken and vendored in from
https://github.com/tokio-rs/tokio/pull/5669.
It provides a AsyncRead for a sync Read, which is necessary to connect
our (sync) BlobReader interface to a GRPC server implementation.

As an alternative, we could also make the BlobReader itself async, and
let consumers of the trait (EvalIO) deal with the async-ness, but this
is less of a change for now.

In terms of vendoring, I initially tried to move our tokio crate to
these commits, but ended up in version incompatibilities, so let's
vendor it in for now.

Change-Id: I5969ebbc4c0e1ceece47981be3b9e7cfb3f59ad0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8551
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2023-05-11 14:27:57 +00:00
..
castore.go chore(tvix/store/protos): more idiomatic go 2022-12-30 15:18:02 +00:00
castore.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
castore.proto feat(tvix/store/protos): add go_package option 2022-12-26 11:38:52 +00:00
castore_test.go feat(tvix/store/protos): implement Directory.Validate() 2022-12-27 21:31:33 +00:00
default.nix refactor(tvix/store): move protobuf build config one level up 2023-01-06 17:57:06 +00:00
go.mod feat(tvix/store/protos): implement Size() and Digest() for Directory 2022-12-27 21:31:33 +00:00
go.sum feat(tvix/store/protos): implement Size() and Digest() for Directory 2022-12-27 21:31:33 +00:00
LICENSE chore(tvix/store): move castore.proto 2022-12-04 10:41:39 +00:00
pathinfo.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
pathinfo.proto chore(tvix/store/protos): drop non-sha256 NAR hashes 2022-12-28 13:55:18 +00:00
rpc_blobstore.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
rpc_blobstore.proto refactor(tvix/store): remove ChunkService 2023-05-11 14:27:57 +00:00
rpc_blobstore_grpc.pb.go refactor(tvix/store): remove ChunkService 2023-05-11 14:27:57 +00:00
rpc_directory.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
rpc_directory.proto feat(tvix/store/protos): add go_package option 2022-12-26 11:38:52 +00:00
rpc_directory_grpc.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
rpc_pathinfo.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00
rpc_pathinfo.proto chore(tvix/store/protos): add PathInfoService::CalculateNAR() 2022-12-28 13:55:18 +00:00
rpc_pathinfo_grpc.pb.go chore(3p/sources): Bump channels & overlays 2023-03-21 01:31:48 +00:00