Refactor proto package + bin names
This commit is contained in:
parent
e46fe9db87
commit
2b028c694f
9 changed files with 15 additions and 15 deletions
43
proto/interpreter.proto
Normal file
43
proto/interpreter.proto
Normal file
|
@ -0,0 +1,43 @@
|
|||
syntax = "proto3";
|
||||
package interpreter;
|
||||
|
||||
service Unix {
|
||||
// Message send by the command gateway to the daemon
|
||||
rpc authorize(AuthorizeRequest) returns (AuthorizeResponse);
|
||||
|
||||
// Message send when user quit shell
|
||||
rpc terminate(TerminateRequest) returns (TerminateResponse);
|
||||
}
|
||||
|
||||
message AuthorizeRequest {
|
||||
// identifier of the project
|
||||
string identifier = 1;
|
||||
// ssh_keys from ssh agent
|
||||
string token = 2;
|
||||
// command like /bin/bash
|
||||
string command = 3;
|
||||
}
|
||||
|
||||
enum AuthorizationStatus {
|
||||
AUTHORIZED = 0;
|
||||
PERMISSION_DENIED = 1;
|
||||
}
|
||||
|
||||
message AuthorizeResponse {
|
||||
AuthorizationStatus status = 1;
|
||||
string session_uuid = 2;
|
||||
}
|
||||
|
||||
message TerminateRequest {
|
||||
string session_uuid = 1;
|
||||
string log_file = 2;
|
||||
}
|
||||
|
||||
enum TerminateStatus {
|
||||
OK = 0;
|
||||
FAILED = 1;
|
||||
}
|
||||
|
||||
message TerminateResponse {
|
||||
TerminateStatus status = 1;
|
||||
}
|
Reference in a new issue