mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
control: introduce protocol for alternative image specs
This commit is contained in:
@ -6,15 +6,29 @@ option java_outer_classname = "ControlProto";
|
||||
|
||||
package krata.control;
|
||||
|
||||
message GuestOciImageSpec {
|
||||
string image = 1;
|
||||
}
|
||||
|
||||
message GuestImageSpec {
|
||||
oneof image {
|
||||
GuestOciImageSpec oci = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message GuestNetworkInfo {
|
||||
string ipv4 = 1;
|
||||
string ipv6 = 2;
|
||||
}
|
||||
|
||||
message GuestInfo {
|
||||
string id = 1;
|
||||
string image = 2;
|
||||
string ipv4 = 3;
|
||||
string ipv6 = 4;
|
||||
GuestImageSpec image = 2;
|
||||
GuestNetworkInfo network = 3;
|
||||
}
|
||||
|
||||
message LaunchGuestRequest {
|
||||
string image = 1;
|
||||
GuestImageSpec image = 1;
|
||||
uint32 vcpus = 2;
|
||||
uint64 mem = 3;
|
||||
repeated string env = 4;
|
||||
|
Reference in New Issue
Block a user