summaryrefslogtreecommitdiff
path: root/droplet.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 18:41:00 -0600
committerJeff Carr <[email protected]>2024-12-01 18:41:00 -0600
commitafd0bd642841f4dee9ca29c4913a26319aa28dd9 (patch)
tree31d55b1e4b24fb26b2927ae7f1d86364345d90dc /droplet.proto
parent5b883de7b99fc15d92646a7c965fdf28f1946343 (diff)
switched to autogenpbv0.2.10
Diffstat (limited to 'droplet.proto')
-rw-r--r--droplet.proto8
1 files changed, 4 insertions, 4 deletions
diff --git a/droplet.proto b/droplet.proto
index dd1b30a..42eeec5 100644
--- a/droplet.proto
+++ b/droplet.proto
@@ -4,15 +4,15 @@ package virtbuf;
import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
-message Droplets {
+message Droplets { // `autogenpb:marshal`
string uuid = 1; // I guess why not just have this on each file
string version = 2; // maybe can be used for protobuf schema change violations
repeated Droplet droplets = 3;
}
-message Droplet {
- string uuid = 1; // should be unique across the cluster
- string hostname = 2; // should be unique and work in DNS
+message Droplet { // `autogenpb:marshal`
+ string uuid = 1; // `autogenpb:unique` // should be unique across the cluster
+ string hostname = 2; // `autogenpb:unique` // should be unique and work in DNS
int64 cpus = 3; // what's the point of int64 vs int32
int64 memory = 4; // in bytes
Current current = 5; // what the state and values of the droplet is