houston package 독립

This commit is contained in:
2023-05-21 23:37:54 +09:00
commit 3e8c79a48b
20 changed files with 3152 additions and 0 deletions

46
protos/operation.proto Normal file
View File

@ -0,0 +1,46 @@
syntax = "proto3";
option go_package = "common/protos";
import "protos/empty.proto";
service Operation {
rpc Query(stream OperationQueryRequest) returns (stream OperationQueryResponse) {}
rpc Refresh(OperationQueryRequest) returns (Empty) {}
}
message VersionAndArgs {
string version = 1;
repeated string args = 2;
}
message DeployedVersions {
string name = 1;
repeated VersionAndArgs versions = 2;
}
message OperationQueryRequest {
string hostname = 1;
repeated ProcessDescription procs = 2;
repeated DeployedVersions deploys = 3;
}
enum ProcessState {
Stopped = 0;
Stopping = 1;
Running = 2;
Error = 3;
}
message ProcessDescription {
string name = 1;
repeated string args = 2;
string version = 3;
ProcessState state = 4;
int32 pid = 5;
int32 stdout_size = 6;
int32 stderr_size = 7;
}
message OperationQueryResponse {
string operation = 1;
map<string, string> args = 2;
}