zoopb/machine.proto

27 lines
931 B
Protocol Buffer
Raw Normal View History

2024-11-15 20:59:55 -06:00
syntax = "proto3";
package gitpb;
import "package.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
2024-12-01 22:24:24 -06:00
// global settings for autogenpb `autogenpb:mutex`
2024-12-01 18:18:11 -06:00
message Machine { // `autogenpb:marshal`
string hostname = 1; // `autogenpb:unique`
2024-11-15 20:59:55 -06:00
int64 memory = 2;
int64 cpus = 3;
2024-11-15 21:51:57 -06:00
string distro = 4;
Packages packages = 5;
google.protobuf.Timestamp laststamp = 6; // the last time we heard anything from this machine
Packages installed = 7; // packages that are installed
Packages available = 8; // packages that are available
Packages wit = 9; // packages that are available from mirrors.wit.com
2024-11-15 20:59:55 -06:00
}
2024-12-01 18:18:11 -06:00
message Machines { // `autogenpb:marshal`
2024-11-15 20:59:55 -06:00
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;
}