moby--moby/registry
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
..
resumable Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
auth.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
auth_test.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
config.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
config_test.go Add daemon option to push foreign layers 2017-05-16 14:36:36 -07:00
config_unix.go Disable legacy (v1) registries by default 2017-06-12 11:04:28 +02:00
config_windows.go Remove old cli framework. 2016-08-25 13:09:04 -04:00
endpoint_test.go Login update and endpoint refactor 2016-03-01 11:52:32 -08:00
endpoint_v1.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
errors.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
registry.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
registry_mock_test.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
registry_test.go Add daemon option to push foreign layers 2017-05-16 14:36:36 -07:00
service.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
service_v1.go Disable v1 protocol for the default registry 2016-11-11 00:23:25 -08:00
service_v1_test.go Disable v1 protocol for the default registry 2016-11-11 00:23:25 -08:00
service_v2.go Add daemon option to push foreign layers 2017-05-16 14:36:36 -07:00
session.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
types.go Use distribution reference 2017-02-07 11:08:37 -08:00