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-18T18·22-0400
committerglittershark <grfn@gws.fyi>2020-07-18T19·52+0000
commitecf288e70aa32d532bed79f8d940c349419ce0e8 (patch)
treec4610fcacc7679cfb68764351da2ce2c962b15ec /third_party/nix/src/proto/worker.proto
parenta79df261b498473ae7c6d4a04f32c50d5954124f (diff)
feat(3p/nix/nix-daemon): Implement Worker::AddSignatures handler r/1383
I got the message proto wrong on this one as well - it needs both a path
and a signatures.

Change-Id: I9a489b1285bda61c15b2a3b47d9cfc3b50e387da
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1270
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/proto/worker.proto')
-rw-r--r--third_party/nix/src/proto/worker.proto7
1 files changed, 6 insertions, 1 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto
index 3dd83d9988f7..d8d2cc8bbd2e 100644
--- a/third_party/nix/src/proto/worker.proto
+++ b/third_party/nix/src/proto/worker.proto
@@ -92,7 +92,7 @@ service WorkerService {
 
   // Add signatures to the specified store path. The signatures are not
   // verified.
-  rpc AddSignatures(Signatures) returns (google.protobuf.Empty);
+  rpc AddSignatures(AddSignaturesRequest) returns (google.protobuf.Empty);
 
   // TODO: What does this do?
   rpc NarFromPath(StorePath) returns (StorePath);
@@ -314,6 +314,11 @@ message BuildDerivationResponse {
   string error_message = 2;
 }
 
+message AddSignaturesRequest {
+  StorePath path = 1;
+  Signatures sigs = 2;
+}
+
 message AddToStoreNarRequest {
   oneof add_oneoff {
     PathInfo path_info = 1;