The toolkit to pack, ship, store, and deliver container content
Find a file
Stephen J Day 7b56d10076 Lock down HTTP API error codes
This commit locks down the set of http error codes that will be part of the
inital V2 specification, proposed in docker/docker#9015. The naming order has
been slightly changed and there are few tweaks to ensure all conditions are
captured but this will be set the docker core will be impleemnted against.

To support this, the errors have been moved into an api/errors package. A new
type, ErrorDescriptor, has been defined to centralize the code, message and
definitions used with each type. The information therein can be used to
generate documentation and response code mappings (yet to come...).

In addition to the refactoring that came along with this change, several tests
have been added to ensure serialization round trips are reliable. This allows
better support for using these error types on the client and server side. This
is coupled with some tweaks in the client code to fix issues with error
reporting.

Other fixes in the client include moving client-specific errors out of the base
package and ensuring that we have correct parameters for finishing uploads.
2014-12-10 11:49:04 -08:00
api/errors Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
client Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
cmd Disable s3 and ipc executable entry points 2014-12-05 14:34:22 -08:00
common Uses new digest package instead of string digests 2014-11-19 18:54:11 -08:00
configuration configuration.Parse should take io.Reader 2014-12-01 17:32:31 -08:00
digest Clean up layer storage layout 2014-11-25 09:57:43 -08:00
open-design Initial open-design proposal 2014-11-10 09:39:20 -08:00
project/dev-image Correct ENV declaration in Dockerfile 2014-11-26 13:19:45 -08:00
storage Remove errant log message 2014-12-09 14:19:07 -08:00
storagedriver Improves storagedriver concurrency testing 2014-12-10 10:57:47 -08:00
.drone.yml Fix goverall 2014-11-22 10:17:14 -08:00
api_test.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
app.go Initial implementation of Manifest HTTP API 2014-11-26 13:35:07 -08:00
app_test.go Update routes to reflect specification changes 2014-11-18 20:39:32 -08:00
circle.yml Disabling go vet until we get bug fixed 2014-12-10 11:41:49 -08:00
context.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
CONTRIBUTING.md Initial open-design proposal 2014-11-10 09:39:20 -08:00
helpers.go Initial implementation of Manifest HTTP API 2014-11-26 13:35:07 -08:00
images.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
layer.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
layerupload.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
LICENSE Update LICENSE 2014-12-10 10:10:20 -08:00
MAINTAINERS Initial open-design proposal 2014-11-06 13:28:27 -08:00
README.md Test drone 2014-11-13 13:58:52 -08:00
routes.go Update routes to reflect specification changes 2014-11-18 20:39:32 -08:00
routes_test.go Update routes to reflect specification changes 2014-11-18 20:39:32 -08:00
tags.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
urls.go Test Tags HTTP API methods during manifest upload 2014-12-09 15:36:26 -08:00
util.go Carve out initial application structure 2014-11-10 19:03:49 -08:00

docker-registry

Coverage Status Build Status

## TL;DR

License

Apache License