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 Set expected response headers for Ping. 2017-01-03 11:47:47 -05:00
mount Windows: Add named pipe mount support 2017-08-07 11:34:36 -07:00
network Adding network specific options to service create/update 2017-05-17 18:46:34 -07:00
plugins/logdriver Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
registry Merge pull request #33237 from aaronlehmann/oci-types 2017-05-17 02:40:11 +02:00
strslice
swarm Add API documentation for plugable secret backends 2017-07-28 00:00:53 +02:00
time fix typo in api/types/time/timestamp.go 2017-01-14 14:16:03 +08:00
versions Merge pull request #28651 from YuPengZTE/devMD002 2016-11-22 13:11:37 +01:00
volume hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
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 Update to inline comments. 2016-10-31 11:13:41 -04:00
graph_driver_data.go Generate GraphDriver from spec, and fix up image spec. 2017-01-03 11:47:47 -05:00
id_response.go Add an IDResponse type 2016-10-31 11:16:02 -04:00
image_delete_response_item.go Generate ImageDeleteResponse from swagger spec. 2017-01-03 11:47:47 -05:00
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 change minor mistake of spelling 2016-12-20 21:05:19 +08:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Correct CPU usage calculation in presence of offline CPUs and newer Linux 2017-03-10 10:24:33 +00:00
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