mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
add Machine gRPC service
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api;
|
||||
|
||||
option go_package = "github.com/psviderski/uncloud/internal/machine/api/pb";
|
||||
|
||||
import "internal/machine/api/pb/common.proto";
|
||||
import "internal/machine/api/pb/cluster.proto";
|
||||
|
||||
service Machine {
|
||||
rpc InitCluster(InitClusterRequest) returns (InitClusterResponse);
|
||||
}
|
||||
|
||||
message InitClusterRequest {
|
||||
string machineName = 1;
|
||||
IPPrefix network = 2;
|
||||
User user = 3;
|
||||
}
|
||||
|
||||
message InitClusterResponse {
|
||||
MachineInfo machine = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user