1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
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
endpoint_test.go
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