minor autogenpb fixes
This commit is contained in:
parent
afd0bd6428
commit
aeac6b5af7
2
Makefile
2
Makefile
|
@ -29,7 +29,7 @@ hypervisor.pb.go: hypervisor.proto
|
||||||
autogenpb --proto hypervisor.proto --mutex
|
autogenpb --proto hypervisor.proto --mutex
|
||||||
|
|
||||||
event.pb.go: event.proto
|
event.pb.go: event.proto
|
||||||
autogenpb --proto event.proto --mutex
|
autogenpb --proto event.proto --mutex --no-sort
|
||||||
|
|
||||||
experiments.pb.go: experiments.proto
|
experiments.pb.go: experiments.proto
|
||||||
autogenpb --proto experiments.proto --no-marshal --no-sort
|
autogenpb --proto experiments.proto --no-marshal --no-sort
|
||||||
|
|
|
@ -4,7 +4,7 @@ package virtbuf;
|
||||||
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
|
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
|
||||||
import "google/protobuf/any.proto"; // Import the well-known type for Timestamp
|
import "google/protobuf/any.proto"; // Import the well-known type for Timestamp
|
||||||
|
|
||||||
message Events {
|
message Events { // `autogenpb:marshal`
|
||||||
string uuid = 1; // I guess why not just have this on each file
|
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
|
string version = 2; // maybe can be used for protobuf schema change violations
|
||||||
int64 event_size = 3; // max events to store in a single
|
int64 event_size = 3; // max events to store in a single
|
||||||
|
@ -17,7 +17,7 @@ message Events {
|
||||||
// homelab clouds normally don't have many events.
|
// homelab clouds normally don't have many events.
|
||||||
// we are talking less than 1 a minute. even 1 an hour is often a lot
|
// we are talking less than 1 a minute. even 1 an hour is often a lot
|
||||||
message Event {
|
message Event {
|
||||||
int32 id = 1;
|
int32 id = 1; // `autogenpb:unique` // should be unique across the cluster
|
||||||
EventType etype = 2;
|
EventType etype = 2;
|
||||||
string droplet = 3; // name of the droplet
|
string droplet = 3; // name of the droplet
|
||||||
string droplet_uuid = 4; // uuid of the droplet
|
string droplet_uuid = 4; // uuid of the droplet
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package virtbuf;
|
package virtbuf;
|
||||||
|
|
||||||
message Hypervisors {
|
message Hypervisors { // `autogenpb:marshal`
|
||||||
string uuid = 1; // I guess why not just have this on each file
|
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
|
string version = 2; // maybe can be used for protobuf schema change violations
|
||||||
repeated Hypervisor hypervisors = 3;
|
repeated Hypervisor hypervisors = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Hypervisor {
|
message Hypervisor {
|
||||||
string uuid = 1;
|
string uuid = 1; // `autogenpb:unique`
|
||||||
string hostname = 2;
|
string hostname = 2; // `autogenpb:unique`
|
||||||
bool active = 3; // is allowed to start new droplets
|
bool active = 3; // is allowed to start new droplets
|
||||||
int64 cpus = 4;
|
int64 cpus = 4;
|
||||||
int64 memory = 5; // in bytes
|
int64 memory = 5; // in bytes
|
||||||
|
|
Loading…
Reference in New Issue