Files
runner-api/api/v2/api.proto
T

38 lines
704 B
Protocol Buffer

syntax = "proto3";
option go_package = "git.ohea.xyz/cursorius/runner-api/go/api/v2;apiv2";
message Register {
string secret = 1;
string id = 2;
repeated string tags = 3;
}
message RunCommand {
string command = 1;
repeated string args = 2;
}
message RunCommandPartialResponse {
string stdout = 1;
string stderr = 2;
}
message RunCommandFinalResponse {
int64 return_code = 1;
RunCommandPartialResponse partial_response = 2;
}
message ServerToRunnerMsg {
oneof msg {
RunCommand RunCommandMsg = 1;
}
}
message RunnerToServerMsg {
oneof msg {
RunCommandPartialResponse RunCommandPartialResponseMsg = 1;
RunCommandFinalResponse RunCommandFinalResponseMsg = 2;
}
}