wasi-module-sdk-go/api/rpc/v1/executor.proto

64 lines
937 B
Protocol Buffer
Raw Normal View History

2023-05-08 13:21:31 +00:00
syntax = "proto3";
package buildr.rpc.v1;
message Buildr {
message Repo {
string root = 1;
}
message GitHub {
string api_token = 1;
}
Repo repo = 1;
GitHub github = 2;
}
message ModuleReference {
string task_id = 1;
string module_category = 2;
string module_type = 3;
string module_name = 4;
}
message StartTaskRequest {
ModuleReference reference = 1;
Buildr buildr = 2;
bytes raw_task = 3;
}
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;
}