mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
add machine list command and corresponding RPC endpoint
This commit is contained in:
1 parent
47073f017f
commit
4e042be7b7
10 files changed
+521
-188
No files matched your search
@@ -10,6 +10,7 @@ import "internal/machine/api/pb/cluster.proto";
|
||||
|
||||
service Machine {
|
||||
rpc InitCluster(InitClusterRequest) returns (InitClusterResponse);
|
||||
rpc JoinCluster(JoinClusterRequest) returns (google.protobuf.Empty);
|
||||
rpc Token(google.protobuf.Empty) returns (TokenResponse);
|
||||
}
|
||||
|
||||
@@ -23,6 +24,11 @@ message InitClusterResponse {
|
||||
MachineInfo machine = 1;
|
||||
}
|
||||
|
||||
message JoinClusterRequest {
|
||||
MachineInfo machine = 1;
|
||||
repeated MachineInfo other_machines = 3;
|
||||
}
|
||||
|
||||
message TokenResponse {
|
||||
string token = 1;
|
||||
}
|
||||
Reference in new issue
Block a user