do a whole cluster protobuf at once
This commit is contained in:
parent
63148556af
commit
7cdb2a33ef
|
@ -2,16 +2,20 @@ syntax = "proto3";
|
||||||
package virtpb;
|
package virtpb;
|
||||||
|
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
import "droplet.proto";
|
||||||
|
import "hypervisor.proto";
|
||||||
|
|
||||||
message Cluster {
|
message Cluster {
|
||||||
string uuid = 1; // `autogenpb:unique`
|
string uuid = 1; // `autogenpb:unique`
|
||||||
string name = 2;
|
string name = 2;
|
||||||
repeated string URL = 3;
|
repeated string URL = 3;
|
||||||
google.protobuf.Timestamp ctime = 4; // when the cluster was created
|
google.protobuf.Timestamp ctime = 4; // when the cluster was created
|
||||||
|
repeated Droplet droplets = 5;
|
||||||
|
repeated Hypervisor hypervisors = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Clusters { // `autogenpb:marshal`
|
message Clusters { // `autogenpb:marshal`
|
||||||
string uuid = 1; // `autogenpb:uuid:57ddd763-75f6-4003-bf0e-8dd0f8a44044`
|
string uuid = 1; // `autogenpb:uuid:57ddd763-75f6-4003-bf0e-8dd0f8a44044`
|
||||||
string version = 2; // `autogenpb:version:v0.0.1`
|
string version = 2; // `autogenpb:version:v0.0.1`
|
||||||
repeated Cluster clusters = 3;
|
repeated Cluster clusters = 3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue