feat(3p/nix): Add path query ops
Add QueryValidPaths and QuerySubstitutablePaths, both of which filter a list of paths based on a set of criteria. Change-Id: I6aa4647efe82b82dc9582a311643d5f9b6d521d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1203 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
863a77dd2a
commit
143ef52592
1 changed files with 6 additions and 0 deletions
6
third_party/nix/src/proto/worker.proto
vendored
6
third_party/nix/src/proto/worker.proto
vendored
|
@ -68,6 +68,12 @@ service Worker {
|
|||
|
||||
// TODO: What is a HashPart?
|
||||
rpc QueryPathFromHashPart(HashPart) returns (StorePath);
|
||||
|
||||
// Query which of the given paths is valid.
|
||||
rpc QueryValidPaths(StorePaths) returns (StorePaths);
|
||||
|
||||
// Query which of the given paths have substitutes.
|
||||
rpc QuerySubstitutablePaths(StorePaths) returns (StorePaths);
|
||||
}
|
||||
|
||||
enum HashType {
|
||||
|
|
Loading…
Reference in a new issue