control: introduce protocol for alternative image specs

This commit is contained in:
Alex Zenla
2024-03-08 08:47:18 +00:00
parent bbf4d403f4
commit 7507f17d99
3 changed files with 78 additions and 17 deletions

View File

@ -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;