Skip to content

Commit d78d02d

Browse files
Add instance alias for /apps/id/instances alias (#1707)
* Update godo version to v1.151.0 to include instance_alias * Add instance alias in displayer
1 parent 3422710 commit d78d02d

File tree

10 files changed

+207
-44
lines changed

10 files changed

+207
-44
lines changed

commands/displayers/apps.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ func (a AppInstances) Cols() []string {
512512
"Name",
513513
"ComponentName",
514514
"ComponentType",
515+
"InstanceAlias",
515516
}
516517
}
517518

@@ -520,6 +521,7 @@ func (a AppInstances) ColMap() map[string]string {
520521
"Name": "Name",
521522
"ComponentName": "ComponentName",
522523
"ComponentType": "ComponentType",
524+
"InstanceAlias": "InstanceAlias",
523525
}
524526
}
525527

@@ -531,6 +533,7 @@ func (a AppInstances) KV() []map[string]any {
531533
"Name": appInstance.InstanceName,
532534
"ComponentName": appInstance.ComponentName,
533535
"ComponentType": appInstance.ComponentType,
536+
"InstanceAlias": appInstance.InstanceAlias,
534537
}
535538
}
536539
return out

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.24
55
require (
66
github.com/blang/semver v3.5.1+incompatible
77
github.com/creack/pty v1.1.21
8-
github.com/digitalocean/godo v1.150.0
8+
github.com/digitalocean/godo v1.151.0
99
github.com/docker/cli v24.0.5+incompatible
1010
github.com/docker/docker v25.0.6+incompatible
1111
github.com/docker/docker-credential-helpers v0.7.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
9191
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
9292
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
9393
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
94-
github.com/digitalocean/godo v1.150.0 h1:nCWjjMixyFDmS6NrY0TajtP8bzYVk0+7tqcHk9MkanM=
95-
github.com/digitalocean/godo v1.150.0/go.mod h1:tYeiWY5ZXVpU48YaFv0M5irUFHXGorZpDNm7zzdWMzM=
94+
github.com/digitalocean/godo v1.151.0 h1:rB0FHowi95jQ4XxmP1wmqgWrx8fjGiwi5qVMqZPiIcY=
95+
github.com/digitalocean/godo v1.151.0/go.mod h1:tYeiWY5ZXVpU48YaFv0M5irUFHXGorZpDNm7zzdWMzM=
9696
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
9797
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
9898
github.com/docker/cli v24.0.5+incompatible h1:WeBimjvS0eKdH4Ygx+ihVq1Q++xg36M/rMi4aXAvodc=

vendor/github.com/digitalocean/godo/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/digitalocean/godo/apps.gen.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/digitalocean/godo/apps_accessors.go

Lines changed: 24 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)