summaryrefslogtreecommitdiff
path: root/machine.proto
blob: b0bf5aa24c8a775a5672b4f58e1f9021a9e34024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
syntax = "proto3";

package gitpb;

import "package.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

// global settings for autogenpb `autogenpb:mutex`

message Machine {			// `autogenpb:marshal`
  string hostname 		= 1;	// `autogenpb:unique`
  int64 memory 			= 2;
  int64 cpus			= 3;
  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
}

message Machines {			// `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 Machine 	machines = 3;
}