about summary refs log tree commit diff
path: root/third_party/nix/src/proto/worker.proto
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-16T01·42-0400
committerglittershark <grfn@gws.fyi>2020-07-16T01·54+0000
commit17c09628023f7c5612a7644b5942e0d2dcb014ce (patch)
tree4dd1b906365180cab36e82629162837bf873856b /third_party/nix/src/proto/worker.proto
parent0386fad78fadb8d7632f6af5d8c11d5b7dafb2e7 (diff)
feat(3p/nix): Add proto for QueryPathInfo r/1314
Change-Id: I10ec338ef2d5360954abdc5bb3d4789f34b031fc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1200
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/proto/worker.proto')
-rw-r--r--third_party/nix/src/proto/worker.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto
index ec4e062a05b0..a0be48aacda3 100644
--- a/third_party/nix/src/proto/worker.proto
+++ b/third_party/nix/src/proto/worker.proto
@@ -1,6 +1,7 @@
 syntax = "proto3";
 
 import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
 
 package nix.proto;
 
@@ -58,6 +59,9 @@ service Worker {
 
   // Query all valid paths in the store
   rpc QueryAllValidPaths(google.protobuf.Empty) returns (StorePaths);
+
+  // TODO: What does this do?
+  rpc QueryPathInfo(StorePath) returns (QueryPathInfoResponse);
 }
 
 enum HashType {
@@ -194,3 +198,17 @@ message SubstitutablePathInfos {
 
   repeated PathInfo path_infos = 1;
 }
+
+message QueryPathInfoResponse {
+    StorePath deriver = 1;
+    string nar_hash = 2;
+    repeated string references = 3;
+    google.protobuf.Timestamp registration_time = 4;
+    uint64 nar_size = 5;
+    // Whether the path is ultimately trusted, that is, it's a derivation
+    // output that was built locally.
+    bool ultimate = 6;
+    repeated string sigs = 7;
+    // If non-empty, an assertion that the path is content-addressed
+    string ca = 8;
+};