summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-04-28 11:15:57 +0200
committerMartin Polden <mpolden@mpolden.no>2022-04-28 11:16:03 +0200
commitd76f3eaf68868e38df6a085ddfec2ba483599289 (patch)
tree43afd993da7fcff43b548801de37fcde5c338afe /client
parent85616cb51526df13605e4e87745a0ec14d479d2b (diff)
Add String method
Diffstat (limited to 'client')
-rw-r--r--client/go/vespa/deploy.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/go/vespa/deploy.go b/client/go/vespa/deploy.go
index 4fa0bb5b839..ad4fc5f3022 100644
--- a/client/go/vespa/deploy.go
+++ b/client/go/vespa/deploy.go
@@ -68,6 +68,10 @@ func (a ApplicationID) SerializedForm() string {
return fmt.Sprintf("%s:%s:%s", a.Tenant, a.Application, a.Instance)
}
+func (z ZoneID) String() string {
+ return fmt.Sprintf("%s.%s", z.Environment, z.Region)
+}
+
func (d Deployment) String() string {
return fmt.Sprintf("deployment of %s in %s", d.Application, d.Zone)
}