add machine list command and corresponding RPC endpoint

This commit is contained in:
Pavel Sviderski
2024-09-12 14:52:07 +10:00
parent 47073f017f
commit 4e042be7b7
10 changed files with 521 additions and 188 deletions
+6
View File
@@ -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;
}