snix/snix/castore-go
Florian Klink 06ffeec464 refactor(snix/castore): rename proto node to entry
In the castore Rust types, nodes don't have names, they only get names
my the mapping happening in a Directory struct.

However, in proto land, they do, as Directories are not maps, but three
(individually sorted) lists.

This has caused some confusion in the past. Let's fix this, by renaming
what used to be proto nodes to "Entry".

We also use this "entry" in a very similar fashion in the NAR reader,
describing something with a name, so this should be more consistent
and understandable. There's no change in the wire representation.

Change-Id: Ie6184d9a6e00c8114fc2a46bfd2bc90208a1d623
Reviewed-on: https://cl.snix.dev/c/snix/+/30296
Tested-by: besadii
Reviewed-by: Vova Kryachko <v.kryachko@gmail.com>
Autosubmit: Florian Klink <flokli@flokli.de>
2025-04-04 23:19:07 +00:00
..
castore.go refactor(snix/castore): rename proto node to entry 2025-04-04 23:19:07 +00:00
castore.pb.go refactor(snix/castore): rename proto node to entry 2025-04-04 23:19:07 +00:00
castore_test.go refactor(snix/castore): rename proto node to entry 2025-04-04 23:19:07 +00:00
default.nix chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
go.mod chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
go.sum chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
LICENSE chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
README.md chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
rename_entry.go refactor(snix/castore): rename proto node to entry 2025-04-04 23:19:07 +00:00
rpc_blobstore.pb.go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
rpc_blobstore_grpc.pb.go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
rpc_directory.pb.go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
rpc_directory_grpc.pb.go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00

castore-go

This directory contains generated golang bindings, both for the snix-castore data models, as well as the gRPC bindings.

They are generated with mg run //snix/castore-go:regenerate. These files end with .pb.go, and are ensured to be up to date by a CI check.

Additionally, code useful when interacting with these data structures (ending just with .go) is provided.