moby/opts
Sebastiaan van Stijn 1eadfb0e28
opts: ValidateIPAddress: improve error, godoc, and tests
- document accepted values
- add test-coverage for the function's behavior (including whitespace handling),
  and use sub-tests.
- improve error-message to use uppercase for "IP", and to use a common prefix.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-11-11 15:31:19 +01:00
..
address_pools.go opts: use strings.Cut() and refactor parseDaemonHost() 2022-12-21 11:09:02 +01:00
address_pools_test.go opts: format code with gofumpt 2023-06-29 00:31:49 +02:00
env.go opts: use strings.Cut() and refactor parseDaemonHost() 2022-12-21 11:09:02 +01:00
env_test.go opts: simplify ValidateEnv to use os.LookupEnv 2020-08-14 16:58:30 +02:00
hosts.go opts: use strings.Cut() and refactor parseDaemonHost() 2022-12-21 11:09:02 +01:00
hosts_test.go opts: format code with gofumpt 2023-06-29 00:31:49 +02:00
hosts_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
hosts_windows.go opts: unify host-options, and use consts 2020-10-31 16:44:21 +01:00
opts.go opts: ValidateIPAddress: improve error, godoc, and tests 2023-11-11 15:31:19 +01:00
opts_test.go opts: ValidateIPAddress: improve error, godoc, and tests 2023-11-11 15:31:19 +01:00
runtime.go api/types: move system info types to api/types/system 2023-07-07 13:01:36 +02:00
ulimit.go goimports: fix imports 2019-09-18 12:56:54 +02:00
ulimit_test.go TestUlimitOpt: fix composite literal uses unkeyed fields (govet) 2019-09-18 12:57:34 +02:00