add Name and allow multiple URLs
This commit is contained in:
parent
a510dd6474
commit
63148556af
|
@ -5,8 +5,9 @@ import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
message Cluster {
|
message Cluster {
|
||||||
string uuid = 1; // `autogenpb:unique`
|
string uuid = 1; // `autogenpb:unique`
|
||||||
string URL = 2; // `autogenpb:unique`
|
string name = 2;
|
||||||
google.protobuf.Timestamp ctime = 3; // when the cluster was created
|
repeated string URL = 3;
|
||||||
|
google.protobuf.Timestamp ctime = 4; // when the cluster was created
|
||||||
}
|
}
|
||||||
|
|
||||||
message Clusters { // `autogenpb:marshal`
|
message Clusters { // `autogenpb:marshal`
|
||||||
|
|
|
@ -55,19 +55,18 @@ message Archive {
|
||||||
google.protobuf.Timestamp when = 2; // when it was archived
|
google.protobuf.Timestamp when = 2; // when it was archived
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual machine state
|
|
||||||
enum DropletState {
|
enum DropletState {
|
||||||
ON = 0;
|
ON = 0;
|
||||||
OFF = 1;
|
OFF = 1;
|
||||||
UNKNOWN = 2; // qemu says 'Shutdown'
|
UNKNOWN = 2; // qemu says 'Shutdown'
|
||||||
PAUSED = 3;
|
PAUSED = 3;
|
||||||
CRASHED = 4;
|
CRASHED = 4;
|
||||||
INMIGRATE = 5;
|
INMIGRATE = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DropletArchive {
|
enum DropletArchive {
|
||||||
DUP = 0;
|
DUP = 0;
|
||||||
USER = 1;
|
USER = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Network {
|
message Network {
|
||||||
|
|
26
event.proto
26
event.proto
|
@ -35,17 +35,17 @@ message Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum EventType {
|
enum EventType {
|
||||||
ADD = 0;
|
ADD = 0;
|
||||||
DELETE = 1;
|
DELETE = 1;
|
||||||
POWERON = 2;
|
POWERON = 2;
|
||||||
POWEROFF = 3; // should indicate a "normal" shutdown
|
POWEROFF = 3; // should indicate a "normal" shutdown
|
||||||
HIBERNATE = 4;
|
HIBERNATE = 4;
|
||||||
MIGRATE = 5;
|
MIGRATE = 5;
|
||||||
DEMO = 6;
|
DEMO = 6;
|
||||||
GET = 7; // request something
|
GET = 7; // request something
|
||||||
LOGIN = 8; // attempt to login
|
LOGIN = 8; // attempt to login
|
||||||
OK = 9; // everything is ok
|
OK = 9; // everything is ok
|
||||||
FAIL = 10; // everything failed
|
FAIL = 10; // everything failed
|
||||||
CRASH = 11; // droplet hard crashed
|
CRASH = 11; // droplet hard crashed
|
||||||
CHANGE = 12; // droplet or hypervisor config change
|
CHANGE = 12; // droplet or hypervisor config change
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,8 @@ message Hypervisor {
|
||||||
google.protobuf.Timestamp lastPoll = 10; // the last time we heard anything
|
google.protobuf.Timestamp lastPoll = 10; // the last time we heard anything
|
||||||
}
|
}
|
||||||
|
|
||||||
// think about this more
|
|
||||||
enum HypervisorArch {
|
enum HypervisorArch {
|
||||||
RISCV64 = 0;
|
RISCV64 = 0;
|
||||||
X86_64 = 1;
|
X86_64 = 1;
|
||||||
ARM64 = 2;
|
ARM64 = 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue