docker-distribution/registry/client/auth
Derek McGowan c8fac94617 Separate version and challenge parsing from ping
Replace ping logic with individual functions to extract API version and authorization challenges. The response from a ping operation can be passed into these function. If an error occurs in parsing, the version or challenge will not be used. Sending the ping request is the responsibility of the caller.
APIVersion has been converted from a string to a structure type. A parse function was added to convert from string to the structure type.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-01 15:00:25 -07:00
..
api_version.go Separate version and challenge parsing from ping 2015-07-01 15:00:25 -07:00
authchallenge.go Separate version and challenge parsing from ping 2015-07-01 15:00:25 -07:00
authchallenge_test.go Refactor client auth 2015-07-01 15:00:25 -07:00
session.go Refactor client auth 2015-07-01 15:00:25 -07:00
session_test.go Separate version and challenge parsing from ping 2015-07-01 15:00:25 -07:00