1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/opts
Brian Goff ebcb7d6b40 Remove string checking in API error handling
Use strongly typed errors to set HTTP status codes.
Error interfaces are defined in the api/errors package and errors
returned from controllers are checked against these interfaces.

Errors can be wraeped in a pkg/errors.Causer, as long as somewhere in the
line of causes one of the interfaces is implemented. The special error
interfaces take precedence over Causer, meaning if both Causer and one
of the new error interfaces are implemented, the Causer is not
traversed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-08-15 16:01:11 -04:00
..
env.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
env_test.go
hosts.go Merge pull request #29697 from yuexiao-wang/fix-docker-daemon 2017-01-04 11:55:38 +01:00
hosts_test.go
hosts_unix.go
hosts_windows.go
ip.go Spelling fixes 2017-07-03 13:13:09 -07:00
ip_test.go
opts.go Added support for Generic Resources 2017-07-24 17:49:56 -07:00
opts_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
opts_unix.go
opts_windows.go
quotedstring.go Trim quotes from TLS flags. 2017-01-03 15:58:41 -05:00
quotedstring_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
runtime.go
ulimit.go add NamedUlimitOpt implement NamedOption to fix 32528 2017-06-16 10:14:09 +08:00
ulimit_test.go