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:
Griffin Smith 2020-07-15 22:05:19 -04:00 committed by glittershark
parent 863a77dd2a
commit 143ef52592

View file

@ -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 {