2023-05-08 13:21:31 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package buildr.rpc.v1;
|
|
|
|
|
2023-07-01 11:19:06 +00:00
|
|
|
import "rpc/v1/spec.proto";
|
|
|
|
|
2023-05-08 13:21:31 +00:00
|
|
|
message Buildr {
|
|
|
|
message Repo {
|
|
|
|
string root = 1;
|
|
|
|
}
|
|
|
|
message GitHub {
|
|
|
|
string api_token = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
Repo repo = 1;
|
|
|
|
GitHub github = 2;
|
2023-05-24 20:11:05 +00:00
|
|
|
string bin_dir = 3;
|
|
|
|
string out_dir = 4;
|
2023-05-08 13:21:31 +00:00
|
|
|
}
|
|
|
|
|
2023-05-13 15:46:09 +00:00
|
|
|
message TaskReference {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
ModuleReference module = 3;
|
2023-05-08 13:21:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message StartTaskRequest {
|
2023-05-13 15:46:09 +00:00
|
|
|
TaskReference reference = 1;
|
2023-05-08 13:21:31 +00:00
|
|
|
Buildr buildr = 2;
|
2023-08-15 19:46:02 +00:00
|
|
|
ModuleSpec spec = 3;
|
2023-05-08 13:21:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message TaskResult {
|
|
|
|
string error = 1;
|
|
|
|
string modified_files_archive_path = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TaskLog {
|
|
|
|
message LogAttribute {
|
|
|
|
string key = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
int64 time = 1;
|
|
|
|
string message = 2;
|
|
|
|
int32 level = 3;
|
|
|
|
repeated LogAttribute attributes = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetState {
|
|
|
|
bytes key = 1;
|
|
|
|
bytes data = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetStateRequest {
|
|
|
|
bytes key = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetStateResponse {
|
|
|
|
bytes key = 1;
|
|
|
|
bytes data = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Result {
|
|
|
|
bool success = 1;
|
|
|
|
string error = 2;
|
2023-05-13 15:46:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PluginInventory {
|
|
|
|
repeated ModuleReference modules = 1;
|
2023-05-08 13:21:31 +00:00
|
|
|
}
|