summaryrefslogtreecommitdiff
path: root/cluster.proto
blob: 7849b99bd7d8ae404abe09ab9c16f7754635de6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";
package virtpb;

import "google/protobuf/timestamp.proto";
import "droplet.proto";
import "hypervisor.proto";
import "event.proto";

message Cluster {                                         // `autogenpb:marshal`
        string                      uuid            = 1;  // `autogenpb:unique`
        string                      name            = 2;
        repeated string             URL             = 3;
        google.protobuf.Timestamp   ctime           = 4;  // when the cluster was created
        Droplets                    droplets        = 5;
        Hypervisors                 hypervisors     = 6;
        Events                      events          = 7;
}

message Clusters {                                        // `autogenpb:marshal`
        string                      uuid            = 1;  // `autogenpb:uuid:57ddd763-75f6-4003-bf0e-8dd0f8a44044`
        string                      version         = 2;  // `autogenpb:version:v0.0.1`
        repeated Cluster            clusters        = 3;
}