2017-06-08 00:53:36 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package control;
|
|
|
|
|
|
|
|
service Control {
|
|
|
|
rpc DiskUsage(DiskUsageRequest) returns (DiskUsageResponse);
|
2017-06-08 22:56:44 +00:00
|
|
|
rpc Solve(SolveRequest) returns (SolveResponse);
|
|
|
|
// rpc Status() returns ();
|
2017-06-08 00:53:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DiskUsageRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message DiskUsageResponse {
|
|
|
|
repeated UsageRecord record = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UsageRecord {
|
|
|
|
string ID = 1;
|
|
|
|
bool Mutable = 2;
|
|
|
|
bool InUse = 3;
|
|
|
|
int64 Size = 4;
|
|
|
|
}
|
|
|
|
|
2017-06-08 22:56:44 +00:00
|
|
|
message SolveRequest {
|
|
|
|
string Ref = 1;
|
|
|
|
repeated bytes Definition = 2; // TODO: remove repeated
|
|
|
|
}
|
|
|
|
|
|
|
|
message SolveResponse {
|
|
|
|
repeated VertexStatus vertex = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message VertexStatus {
|
|
|
|
}
|