diff options
| -rw-r--r-- | droplet.proto | 4 | ||||
| -rw-r--r-- | helpers.go | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/droplet.proto b/droplet.proto index c1cdf3d..1c1a3b6 100644 --- a/droplet.proto +++ b/droplet.proto @@ -3,6 +3,10 @@ package virtbuf; import "google/protobuf/any.proto"; +message Droplets { + repeated Droplet droplets = 1; +} + message Droplet { string uuid = 1; string name = 2; @@ -46,6 +46,10 @@ func (c *Cluster) FormatTEXT() string { return prototext.Format(c) } +func (d *Droplets) FormatTEXT() string { + return prototext.Format(d) +} + func (c *Cluster) FindDroplet(name string) *Droplet { for _, d := range c.Droplets { if d.Hostname == name { |
