summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 09:28:45 -0500
committerJeff Carr <[email protected]>2024-10-31 09:28:45 -0500
commitf4cb9e27ce6d963d6fa613ab8131945e833443ce (patch)
treedf1219f9c3d76414e798e68aca928b97b1cba618
parent08757bc3150953870b2e56ec82bb82027ffbaa7a (diff)
attempt at hypervisor arch
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--droplet.proto1
-rw-r--r--hypervisor.proto22
2 files changed, 15 insertions, 8 deletions
diff --git a/droplet.proto b/droplet.proto
index c40d730..adf1299 100644
--- a/droplet.proto
+++ b/droplet.proto
@@ -1,7 +1,6 @@
syntax = "proto3";
package virtbuf;
-// import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
message Droplets {
diff --git a/hypervisor.proto b/hypervisor.proto
index 7e9d6be..ccbbb6b 100644
--- a/hypervisor.proto
+++ b/hypervisor.proto
@@ -8,11 +8,19 @@ message Hypervisors {
}
message Hypervisor {
- string uuid = 1;
- string hostname = 2;
- 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
+ string uuid = 1;
+ string hostname = 2;
+ 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;
}