summaryrefslogtreecommitdiff
path: root/machine.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 20:59:55 -0600
committerJeff Carr <[email protected]>2024-11-15 20:59:55 -0600
commitc10ff123cd90bf13ba737ec5ecb632accbffc7fa (patch)
tree36478b45bb422a9aabcfa66da86fd1df248aa298 /machine.proto
parent1fc481620f5d4a8b469a02fe5ff7e12871fe309f (diff)
sending a machine protobuf
Diffstat (limited to 'machine.proto')
-rw-r--r--machine.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/machine.proto b/machine.proto
new file mode 100644
index 0000000..55772aa
--- /dev/null
+++ b/machine.proto
@@ -0,0 +1,20 @@
+syntax = "proto3";
+
+package gitpb;
+
+import "package.proto";
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+message Machine {
+ string hostname = 1;
+ int64 memory = 2;
+ int64 cpus = 3;
+ Packages packages = 4;
+ google.protobuf.Timestamp laststamp = 5; // the last time we heard anything from this machine
+}
+
+message Machines {
+ 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 Machine machines = 3;
+}