switched virtigo to DropletState enum
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
4404eb588d
commit
c3aebcdcf2
|
@ -12,7 +12,7 @@ message Droplet {
|
||||||
string hostname = 2; // should be unique and work in DNS
|
string hostname = 2; // should be unique and work in DNS
|
||||||
int64 cpus = 3; // what's the point of int64 vs int32
|
int64 cpus = 3; // what's the point of int64 vs int32
|
||||||
int64 memory = 4; // in bytes
|
int64 memory = 4; // in bytes
|
||||||
string start_state = 5; // what the state of the droplet is SUPPOSED TO BE ('on' or 'off')
|
DropletState start_state = 5; // what the state of the droplet is SUPPOSED TO BE ('on' or 'off')
|
||||||
string notes = 6; // maybe useful for something
|
string notes = 6; // maybe useful for something
|
||||||
string preferred_hypervisor = 7; // the hypervisor to prefer to run the droplet on
|
string preferred_hypervisor = 7; // the hypervisor to prefer to run the droplet on
|
||||||
string qemu_arch = 8; // what arch. example: "x86_64" or "riscv64"
|
string qemu_arch = 8; // what arch. example: "x86_64" or "riscv64"
|
||||||
|
@ -23,11 +23,19 @@ message Droplet {
|
||||||
repeated Network networks = 12; // really just mac addresses. should be unique across cluster
|
repeated Network networks = 12; // really just mac addresses. should be unique across cluster
|
||||||
repeated Disk disks = 13; // disks to attach
|
repeated Disk disks = 13; // disks to attach
|
||||||
|
|
||||||
|
DropletState state = 14; // if the droplet is on, off, etc
|
||||||
|
|
||||||
// trying to figure out how this stuff should work
|
// trying to figure out how this stuff should work
|
||||||
google.protobuf.Any testany = 14;
|
google.protobuf.Any testany = 15;
|
||||||
StorageInfo humantest = 15;
|
StorageInfo humantest = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum DropletState {
|
||||||
|
ON = 0;
|
||||||
|
OFF = 1;
|
||||||
|
UNKNOWN = 2;
|
||||||
|
MIGRATING = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message Network {
|
message Network {
|
||||||
string mac = 1;
|
string mac = 1;
|
||||||
|
|
Loading…
Reference in New Issue