add Name and allow multiple URLs

This commit is contained in:
Jeff Carr 2025-04-12 11:28:05 -05:00
parent a510dd6474
commit 63148556af
4 changed files with 27 additions and 28 deletions

View File

@ -5,8 +5,9 @@ import "google/protobuf/timestamp.proto";
message Cluster {
string uuid = 1; // `autogenpb:unique`
string URL = 2; // `autogenpb:unique`
google.protobuf.Timestamp ctime = 3; // when the cluster was created
string name = 2;
repeated string URL = 3;
google.protobuf.Timestamp ctime = 4; // when the cluster was created
}
message Clusters { // `autogenpb:marshal`

View File

@ -55,19 +55,18 @@ message Archive {
google.protobuf.Timestamp when = 2; // when it was archived
}
// virtual machine state
enum DropletState {
ON = 0;
OFF = 1;
UNKNOWN = 2; // qemu says 'Shutdown'
PAUSED = 3;
CRASHED = 4;
INMIGRATE = 5;
ON = 0;
OFF = 1;
UNKNOWN = 2; // qemu says 'Shutdown'
PAUSED = 3;
CRASHED = 4;
INMIGRATE = 5;
}
enum DropletArchive {
DUP = 0;
USER = 1;
DUP = 0;
USER = 1;
}
message Network {

View File

@ -35,17 +35,17 @@ message Event {
}
enum EventType {
ADD = 0;
DELETE = 1;
POWERON = 2;
POWEROFF = 3; // should indicate a "normal" shutdown
HIBERNATE = 4;
MIGRATE = 5;
DEMO = 6;
GET = 7; // request something
LOGIN = 8; // attempt to login
OK = 9; // everything is ok
FAIL = 10; // everything failed
CRASH = 11; // droplet hard crashed
CHANGE = 12; // droplet or hypervisor config change
ADD = 0;
DELETE = 1;
POWERON = 2;
POWEROFF = 3; // should indicate a "normal" shutdown
HIBERNATE = 4;
MIGRATE = 5;
DEMO = 6;
GET = 7; // request something
LOGIN = 8; // attempt to login
OK = 9; // everything is ok
FAIL = 10; // everything failed
CRASH = 11; // droplet hard crashed
CHANGE = 12; // droplet or hypervisor config change
}

View File

@ -22,9 +22,8 @@ message Hypervisor {
google.protobuf.Timestamp lastPoll = 10; // the last time we heard anything
}
// think about this more
enum HypervisorArch {
RISCV64 = 0;
X86_64 = 1;
ARM64 = 2;
RISCV64 = 0;
X86_64 = 1;
ARM64 = 2;
}