Signed-off-by: Shishir Mahajan <shishir.mahajan3@gmail.com>
| ... | ... |
@@ -757,19 +757,6 @@ func (r *Session) SearchRepositories(term string, limit int) (*registrytypes.Sea |
| 757 | 757 |
return result, json.NewDecoder(res.Body).Decode(result) |
| 758 | 758 |
} |
| 759 | 759 |
|
| 760 |
-// GetAuthConfig returns the authentication settings for a session |
|
| 761 |
-// TODO(tiborvass): remove this once registry client v2 is vendored |
|
| 762 |
-func (r *Session) GetAuthConfig(withPasswd bool) *types.AuthConfig {
|
|
| 763 |
- password := "" |
|
| 764 |
- if withPasswd {
|
|
| 765 |
- password = r.authConfig.Password |
|
| 766 |
- } |
|
| 767 |
- return &types.AuthConfig{
|
|
| 768 |
- Username: r.authConfig.Username, |
|
| 769 |
- Password: password, |
|
| 770 |
- } |
|
| 771 |
-} |
|
| 772 |
- |
|
| 773 | 760 |
func isTimeout(err error) bool {
|
| 774 | 761 |
type timeout interface {
|
| 775 | 762 |
Timeout() bool |