refactor(snix/castore-http/cli): ask for root directory digest
Restrict the CLI to only root directories, passing the blake3 digest of the root directory. Usually we want to serve a directory, and we now have a `snix-castore ingest` sucommand, and copying the output from that command is much less effort than constructing a proto message. More advanced usecases can still use the get_root_node_contents library function and pass in other nodes. Change-Id: I66c2c0a15723b43b5b0cffc1c201391df57dd602 Reviewed-on: https://cl.snix.dev/c/snix/+/30321 Reviewed-by: Stefan Junker <mail@stefanjunker.de> Tested-by: besadii
This commit is contained in:
parent
fd5f316fb8
commit
d1990c9a93
5 changed files with 16 additions and 62 deletions
|
|
@ -13966,19 +13966,11 @@ rec {
|
|||
name = "axum-range";
|
||||
packageId = "axum-range";
|
||||
}
|
||||
{
|
||||
name = "bytes";
|
||||
packageId = "bytes";
|
||||
}
|
||||
{
|
||||
name = "clap";
|
||||
packageId = "clap";
|
||||
features = [ "derive" ];
|
||||
}
|
||||
{
|
||||
name = "data-encoding";
|
||||
packageId = "data-encoding";
|
||||
}
|
||||
{
|
||||
name = "mime";
|
||||
packageId = "mime";
|
||||
|
|
@ -13991,10 +13983,6 @@ rec {
|
|||
name = "path-clean";
|
||||
packageId = "path-clean";
|
||||
}
|
||||
{
|
||||
name = "prost";
|
||||
packageId = "prost";
|
||||
}
|
||||
{
|
||||
name = "snix-castore";
|
||||
packageId = "snix-castore";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue