From 7cff6fef316f4a9cf9f256e1e5e8739197de78dc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 23 Oct 2024 00:24:09 -0500 Subject: [PATCH] no idea the right way to do this Signed-off-by: Jeff Carr --- droplet.proto | 4 ++++ helpers.go | 4 ++++ 2 files changed, 8 insertions(+) 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; diff --git a/helpers.go b/helpers.go index 180452c..01ac4b6 100644 --- a/helpers.go +++ b/helpers.go @@ -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 {