feat(3p/nix): Add QueryPathFromHashPart
Change-Id: I0a31557f4cf585d3e539e29ef1a07b443aeec9fc Reviewed-on: https://cl.tvl.fyi/c/depot/+/1202 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
d470ec0d29
commit
863a77dd2a
1 changed files with 19 additions and 12 deletions
31
third_party/nix/src/proto/worker.proto
vendored
31
third_party/nix/src/proto/worker.proto
vendored
|
|
@ -65,6 +65,9 @@ service Worker {
|
||||||
|
|
||||||
// Query the output names of the given derivation
|
// Query the output names of the given derivation
|
||||||
rpc QueryDerivationOutputNames(StorePath) returns (DerivationOutputNames);
|
rpc QueryDerivationOutputNames(StorePath) returns (DerivationOutputNames);
|
||||||
|
|
||||||
|
// TODO: What is a HashPart?
|
||||||
|
rpc QueryPathFromHashPart(HashPart) returns (StorePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HashType {
|
enum HashType {
|
||||||
|
|
@ -203,19 +206,23 @@ message SubstitutablePathInfos {
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryPathInfoResponse {
|
message QueryPathInfoResponse {
|
||||||
StorePath deriver = 1;
|
StorePath deriver = 1;
|
||||||
string nar_hash = 2;
|
string nar_hash = 2;
|
||||||
repeated string references = 3;
|
repeated string references = 3;
|
||||||
google.protobuf.Timestamp registration_time = 4;
|
google.protobuf.Timestamp registration_time = 4;
|
||||||
uint64 nar_size = 5;
|
uint64 nar_size = 5;
|
||||||
// Whether the path is ultimately trusted, that is, it's a derivation
|
// Whether the path is ultimately trusted, that is, it's a derivation
|
||||||
// output that was built locally.
|
// output that was built locally.
|
||||||
bool ultimate = 6;
|
bool ultimate = 6;
|
||||||
repeated string sigs = 7;
|
repeated string sigs = 7;
|
||||||
// If non-empty, an assertion that the path is content-addressed
|
// If non-empty, an assertion that the path is content-addressed
|
||||||
string ca = 8;
|
string ca = 8;
|
||||||
};
|
};
|
||||||
|
|
||||||
message DerivationOutputNames {
|
message DerivationOutputNames {
|
||||||
repeated string names = 1;
|
repeated string names = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message HashPart {
|
||||||
|
string hash_part = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue