Merge pull request #4445 from tonistiigi/auth-refactor
docker: split private token helper functions to reusable pkg
This commit is contained in:
@@ -41,10 +41,6 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrNoToken is returned if a request is successful but the body does not
|
||||
// contain an authorization token.
|
||||
ErrNoToken = errors.New("authorization server did not include a token in the response")
|
||||
|
||||
// ErrInvalidAuthorization is used when credentials are passed to a server but
|
||||
// those credentials are rejected.
|
||||
ErrInvalidAuthorization = errors.New("authorization failed")
|
||||
|
||||
Reference in New Issue
Block a user