distribution/client
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
..
client_test.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
client.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
errors.go Lock down HTTP API error codes 2014-12-10 11:49:04 -08:00
objectstore.go Address race condition in client tests (closes #784) 2014-11-26 15:37:27 -08:00
pull.go Merge pull request #780 from stevvooe/manifest-storage 2014-11-24 15:27:48 -08:00
push.go Merge pull request #780 from stevvooe/manifest-storage 2014-11-24 15:27:48 -08:00