registry/docs
Josh Hawn 6b400cd63c Adds support for v2 registry login
summary of changes:

registry/auth.go
  - More logging around the login functions
  - split Login() out to handle different code paths for v1 (unchanged logic)
    and v2 (does not currently do account creation)
  - handling for either basic or token based login attempts
registry/authchallenge.go
  - New File
  - credit to Brian Bland <brian.bland@docker.com> (github: BrianBland)
  - handles parsing of WWW-Authenticate response headers
registry/endpoint.go
  - EVEN MOAR LOGGING
  - Many edits throught to make the coad less dense. Sparse code is more
    readable code.
  - slit Ping() out to handle different code paths for v1 (unchanged logic)
    and v2.
  - Updated Endpoint struct type to include an entry for authorization
    challenges discovered during ping of a v2 registry.
  - If registry endpoint version is unknown, v2 code path is first attempted,
    then fallback to v1 upon failure.
registry/service.go
  - STILL MOAR LOGGING
  - simplified the logic around starting the 'auth' job.
registry/session.go
  - updated use of a registry.Endpoint struct field.
registry/token.go
  - New File
  - Handles getting token from the parameters of a token auth challenge.
  - Modified from function written by Brian Bland (see above credit).
registry/types.go
  - Removed 'DefaultAPIVersion' in lieu of 'APIVersionUnknown = 0'`

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-01-15 14:04:14 -08:00
..
auth.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
auth_test.go Fix format calls as suggested by vet 2015-01-14 14:12:03 -08:00
authchallenge.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
config.go Moving NewIndexInfo, NewRepositoryInfo and associated helpers into config.go 2015-01-08 20:15:00 +00:00
config_test.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
endpoint.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
endpoint_test.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
httpfactory.go registry.Registry -> registry.Session 2014-08-13 09:27:43 -04:00
MAINTAINERS update go import path and libcontainer 2014-07-24 22:19:50 +00:00
registry.go Moving NewIndexInfo, NewRepositoryInfo and associated helpers into config.go 2015-01-08 20:15:00 +00:00
registry_mock_test.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
registry_test.go Moving NewIndexInfo, NewRepositoryInfo and associated helpers into config.go 2015-01-08 20:15:00 +00:00
service.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
session.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
session_v2.go Use logrus everywhere for logging 2014-10-24 15:03:06 -07:00
token.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
types.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00