Skip to content

Commit eebf9e2

Browse files
committed
vmm: Add rpc UpdateVm replacing UpgradeApp and ResizeVm
1 parent 488ae32 commit eebf9e2

4 files changed

Lines changed: 162 additions & 125 deletions

File tree

vmm/rpc/proto/vmm_rpc.proto

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ message PortMapping {
118118
}
119119

120120
// Message for upgrading an app request
121-
message UpgradeAppRequest {
121+
message UpdateVmRequest {
122122
// ID of the VM
123123
string id = 1;
124124
// Compose file to be used for the VM
@@ -259,11 +259,13 @@ service Vmm {
259259
rpc StopVm(Id) returns (google.protobuf.Empty);
260260
// RPC to remove a VM
261261
rpc RemoveVm(Id) returns (google.protobuf.Empty);
262-
// RPC to upgrade an app
263-
rpc UpgradeApp(UpgradeAppRequest) returns (Id);
262+
// RPC to upgrade an app. Deprecated, use UpdateVm instead.
263+
rpc UpgradeApp(UpdateVmRequest) returns (Id);
264+
// RPC to update a VM
265+
rpc UpdateVm(UpdateVmRequest) returns (Id);
264266
// Shutdown a VM
265267
rpc ShutdownVm(Id) returns (google.protobuf.Empty);
266-
// RPC to resize a VM
268+
// RPC to resize a VM. Deprecated, use UpdateVm instead.
267269
rpc ResizeVm(ResizeVmRequest) returns (google.protobuf.Empty);
268270
// RPC to compute the compose hash, it's helpful for debugging & developing SDK.
269271
rpc GetComposeHash(VmConfiguration) returns (ComposeHash);

0 commit comments

Comments
 (0)