moby--moby/distribution
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
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Spelling fixes 2017-07-03 13:13:09 -07:00
utils Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
xfer Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
config.go LCOW: pull goes to correct stores 2017-06-20 19:49:52 -07:00
errors.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
pull.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
pull_v1.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
pull_v2.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
pull_v2_test.go Use distribution reference 2017-02-07 11:08:37 -08:00
pull_v2_unix.go Removing old custom RootFS behavior on Windows. 2016-07-29 14:15:59 -07:00
pull_v2_windows.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
push.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
push_v1.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
push_v2.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
push_v2_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
registry.go Use distribution reference 2017-02-07 11:08:37 -08:00
registry_unit_test.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00