DockerCLI/cli/command/formatter
Albin Kerouanton 964155cd27 cli/formatter: bracket IPv6 addrs prepended to ports
On `docker ps`, port bindings with an IPv6 HostIP should have their
addresses put into brackets when joining them to their ports.

RFC 3986 (Section 3.2.2) stipulates that IPv6 addresses should be
enclosed within square brackets. This RFC is only about URIs. However,
doing so here helps user identifier what's part of the IP address and
what's the port. It also makes it easier to copy/paste that
'[addr]:port' into other software (including browsers).

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
2024-08-20 17:32:27 +02:00
..
tabwriter Correct typos in the cli/ folder 2024-06-04 03:08:56 +00:00
testdata formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
buildcache.go golangci-lint: enable perfsprint linter 2023-11-20 16:18:19 +01:00
container.go cli/formatter: bracket IPv6 addrs prepended to ports 2024-08-20 17:32:27 +02:00
container_test.go cli/formatter: bracket IPv6 addrs prepended to ports 2024-08-20 17:32:27 +02:00
context.go context list: temporarily add ContextType to JSON output 2024-05-31 13:08:31 +02:00
custom.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
disk_usage.go replace uses of deprecated API types 2024-07-04 15:22:18 +02:00
disk_usage_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
displayutils.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
displayutils_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
formatter.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
formatter_test.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
image.go golangci-lint: revive: enable empty-lines 2023-11-20 19:52:45 +01:00
image_test.go golangci-lint: enable more linters 2023-11-20 19:52:46 +01:00
reflect.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
reflect_test.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
volume.go linting: Consider pre-allocating sliceVar (prealloc) 2023-11-20 16:02:16 +01:00
volume_test.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00