virtbuf/hypervisor.proto

29 lines
866 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package virtbuf;
// global settings for autogenpb `autogenpb:mutex`
2024-12-01 18:59:34 -06:00
message Hypervisors { // `autogenpb:marshal`
string uuid = 1; // I guess why not just have this on each file
string version = 2; // maybe can be used for protobuf schema change violations
repeated Hypervisor hypervisors = 3;
}
message Hypervisor {
2024-12-01 18:59:34 -06:00
string uuid = 1; // `autogenpb:unique`
string hostname = 2; // `autogenpb:unique`
bool active = 3; // is allowed to start new droplets
int64 cpus = 4;
int64 memory = 5; // in bytes
string comment = 6;
bool autoscan = 7; // to scan or not to scan by virtigo
HypervisorArch arch = 8;
}
// think about this more
enum HypervisorArch {
RISCV64 = 0;
X86_64 = 1;
ARM64 = 2;
}