feat(3p/nix/proto): Add QueryMissing RPC call
Change-Id: I6a29c56a0f945afdef7434da539b4b91b2e4d2e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1222 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
afe99225b9
commit
ba11727ce0
1 changed files with 13 additions and 0 deletions
13
third_party/nix/src/proto/worker.proto
vendored
13
third_party/nix/src/proto/worker.proto
vendored
|
@ -100,6 +100,11 @@ service Worker {
|
||||||
// Upload & add a NAR to the daemon's Nix store.
|
// Upload & add a NAR to the daemon's Nix store.
|
||||||
rpc AddToStoreNar(stream AddToStoreNarRequest)
|
rpc AddToStoreNar(stream AddToStoreNarRequest)
|
||||||
returns (google.protobuf.Empty);
|
returns (google.protobuf.Empty);
|
||||||
|
|
||||||
|
// Given a set of paths that are to be built, return the set of
|
||||||
|
// derivations that will be built, and the set of output paths that
|
||||||
|
// will be substituted.
|
||||||
|
rpc QueryMissing(StorePaths) returns (QueryMissingResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HashType {
|
enum HashType {
|
||||||
|
@ -299,3 +304,11 @@ message AddToStoreNarRequest {
|
||||||
bytes chunk = 2;
|
bytes chunk = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message QueryMissingResponse {
|
||||||
|
repeated string will_build = 1;
|
||||||
|
repeated string will_substitute = 2;
|
||||||
|
repeated string unknown = 3;
|
||||||
|
uint64 download_size = 4;
|
||||||
|
uint64 nar_size = 5;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue