1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
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
..
backend Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
blkiodev
container Implement none, private, and shareable ipc modes 2017-08-14 10:50:39 +03:00
events make engine support cluster config event 2017-07-11 17:21:15 +08:00
filters Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
image
mount Windows: Add named pipe mount support 2017-08-07 11:34:36 -07:00
network
plugins/logdriver
registry
strslice
swarm Add API documentation for plugable secret backends 2017-07-28 00:00:53 +02:00
time
versions
volume
auth.go
client.go Add long-running client session endpoint 2017-06-22 11:22:41 -07:00
configs.go LCOW: Builder plumbing 2017-06-20 19:49:53 -07:00
error_response.go
graph_driver_data.go
id_response.go
image_delete_response_item.go
image_summary.go
plugin.go Update API plugin response examples 2017-07-27 18:43:13 +02:00
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go Remove unused constants in plugin_responses 2017-07-25 17:07:04 +02:00
port.go
seccomp.go
service_update_response.go
stats.go
types.go Added support for Generic Resources 2017-07-24 17:49:56 -07:00
volume.go Merge pull request #34186 from thaJeztah/api-update-example-data 2017-07-20 09:38:28 +02:00