36 lines
728 B
Protocol Buffer
36 lines
728 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package quixos.runtime;
|
|
|
|
import "camino/api.proto";
|
|
import "quixos/refs.proto";
|
|
|
|
service PackageRuntime {
|
|
rpc Handshake(HandshakeRequest) returns (HandshakeResponse);
|
|
rpc Invoke(InvokeRequest) returns (InvokeResponse);
|
|
}
|
|
|
|
message HandshakeRequest {
|
|
string orch_protocol_version = 1;
|
|
}
|
|
|
|
message HandshakeResponse {
|
|
string package_namespace = 1;
|
|
string package_name = 2;
|
|
string runtime_protocol_version = 3;
|
|
repeated quixos.FunctionRef functions = 4;
|
|
}
|
|
|
|
message InvokeRequest {
|
|
string invocation_id = 1;
|
|
quixos.FunctionRef function = 2;
|
|
string object_id = 3;
|
|
map<string, camino.Value> input = 4;
|
|
}
|
|
|
|
message InvokeResponse {
|
|
bool ok = 1;
|
|
camino.Value result = 2;
|
|
string error = 3;
|
|
}
|