2024-10-22 03:26:02 -05:00
|
|
|
syntax = "proto3";
|
2025-02-22 17:45:59 -06:00
|
|
|
package virtpb;
|
2024-10-22 03:26:02 -05:00
|
|
|
|
2025-02-23 04:27:14 -06:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2024-12-01 22:24:01 -06:00
|
|
|
|
2025-02-23 04:27:14 -06:00
|
|
|
message Hypervisors { // `autogenpb:marshal` `autogenpb:gui`
|
|
|
|
string uuid = 1; // `autogenpb:uuid:6e3aa8b9-cf98-40f6-af58-3c6ad1edf4d4`
|
|
|
|
string version = 2; // `autogenpb:version:v0.0.1`
|
|
|
|
repeated Hypervisor hypervisors = 3;
|
2024-10-24 16:57:50 -05:00
|
|
|
}
|
|
|
|
|
2024-10-22 03:26:02 -05:00
|
|
|
message Hypervisor {
|
2025-02-23 04:27:14 -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;
|
|
|
|
int64 killcount = 9; // in bytes
|
|
|
|
google.protobuf.Timestamp lastPoll = 10; // the last time we heard anything
|
2024-10-31 09:28:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// think about this more
|
|
|
|
enum HypervisorArch {
|
|
|
|
RISCV64 = 0;
|
|
|
|
X86_64 = 1;
|
|
|
|
ARM64 = 2;
|
2024-10-22 03:26:02 -05:00
|
|
|
}
|