docker: split private token helper functions to reusable pkg
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		| @@ -40,10 +40,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
	 Tonis Tiigi
					Tonis Tiigi