diff options
Diffstat (limited to 'third_party/nix')
-rw-r--r-- | third_party/nix/src/proto/worker.proto | 18 |
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; +}; |