summaryrefslogtreecommitdiff
path: root/hypervisor.proto
blob: ecadd811ccb5b7e4b317d7c4c3fcf27f68316a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
syntax = "proto3";
package virtpb;

// global settings for autogenpb `autogenpb:mutex`

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

message Hypervisor {
        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;
}