From 143ef525921ee42180cd8ec186a3c6f6ca8bacfb Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 15 Jul 2020 22:05:19 -0400 Subject: 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 --- third_party/nix/src/proto/worker.proto | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'third_party/nix/src/proto/worker.proto') diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto index 9ba5ac852a..d018fe2479 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 { -- cgit 1.4.1