tvl-depot/tvix/store/protos
Florian Klink e6ba84ea50 feat(tvix/store/protos): add Export
Export will traverse a given PathInfo structure, and write the contents
in NAR format to the passed Writer.
It uses directoryLookupFn and blobLookupFn to resolve references.

This is being moved over from nar-bridge. We need to keep the code there
around until we can bump go.mod to storev1 with this merged, but the
tests can already be moved entirely.

Change-Id: Ie0de3077b09344cafa00ff1e2ddb8b52e9e631bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9602
Tested-by: BuildkiteCI
Reviewed-by: Brian McGee <brian@bmcgee.ie>
Autosubmit: flokli <flokli@flokli.de>
2023-10-10 18:55:49 +00:00
..
testdata feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
export.go feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
export_test.go feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
go.mod feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
go.sum feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
LICENSE chore(tvix/store): move castore.proto 2022-12-04 10:41:39 +00:00
pathinfo.go feat(tvix/store/protos): add Validate() method to pathinfo.go 2023-10-05 18:42:58 +00:00
pathinfo.pb.go refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
pathinfo.proto refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
pathinfo_test.go test(tvix/store/protos): add go tests for Validate() 2023-10-09 22:01:59 +00:00
pick_next_node_test.go feat(tvix/store/protos): add Export 2023-10-10 18:55:49 +00:00
rpc_pathinfo.pb.go refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
rpc_pathinfo.proto refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
rpc_pathinfo_grpc.pb.go refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00