diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-16T02·05-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-16T21·40+0000 |
commit | 143ef525921ee42180cd8ec186a3c6f6ca8bacfb (patch) | |
tree | 0a5e2703eab89274b30c5e4dd458d646518eeefb /third_party | |
parent | 863a77dd2a4be271724404d412d41c6361355ce8 (diff) |
feat(3p/nix): Add path query ops r/1327
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>
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/nix/src/proto/worker.proto | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto index 9ba5ac852a4b..d018fe247938 100644 --- a/third_party/nix/src/proto/worker.proto +++ b/third_party/nix/src/proto/worker.proto @@ -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 { |