mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
27 lines
568 B
Protocol Buffer
27 lines
568 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
option go_package = "github.com/psviderski/uncloud/internal/machine/api/pb";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
import "internal/machine/api/pb/machine.proto";
|
|
|
|
service Cluster {
|
|
rpc AddMachine(AddMachineRequest) returns (AddMachineResponse);
|
|
rpc ListMachines(google.protobuf.Empty) returns (ListMachinesResponse);
|
|
}
|
|
|
|
message AddMachineRequest {
|
|
string name = 1;
|
|
NetworkConfig network = 2;
|
|
}
|
|
|
|
message AddMachineResponse {
|
|
MachineInfo machine = 1;
|
|
}
|
|
|
|
message ListMachinesResponse {
|
|
repeated MachineInfo machines = 1;
|
|
}
|