moby--moby/daemon/cluster
Sebastiaan van Stijn a3ae9a5956
opts: ParseTCPAddr(): extract parsing logic, consistent errors
Make sure we validate the default address given before using it, and
combine the parsing/validation logic so that it can be reused.

This patch also makes the errors more consistent, and uses pkg/errors
for generating them.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-05-01 19:53:40 +02:00
..
controllers/plugin Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
convert Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
executor update uses of container.ContainerCreateCreatedBody to CreateResponse 2022-04-28 22:39:20 +02:00
provider Add canonical import comment 2018-02-05 16:51:57 -05:00
cluster.go opts: ParseTCPAddr(): extract parsing logic, consistent errors 2022-05-01 19:53:40 +02:00
configs.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
filters.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
filters_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
helpers.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
listen_addr.go opts: ParseTCPAddr(): extract parsing logic, consistent errors 2022-05-01 19:53:40 +02:00
listen_addr_linux.go Add canonical import comment 2018-02-05 16:51:57 -05:00
listen_addr_others.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
networks.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
noderunner.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
nodes.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
secrets.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
services.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
swarm.go opts: ParseTCPAddr(): extract parsing logic, consistent errors 2022-05-01 19:53:40 +02:00
tasks.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
utils.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00