mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove dead code: GetAuthConfig
Signed-off-by: Shishir Mahajan <shishir.mahajan3@gmail.com>
This commit is contained in:
parent
7cf17f95f8
commit
02a759fa96
1 changed files with 0 additions and 13 deletions
|
@ -757,19 +757,6 @@ func (r *Session) SearchRepositories(term string, limit int) (*registrytypes.Sea
|
||||||
return result, json.NewDecoder(res.Body).Decode(result)
|
return result, json.NewDecoder(res.Body).Decode(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAuthConfig returns the authentication settings for a session
|
|
||||||
// TODO(tiborvass): remove this once registry client v2 is vendored
|
|
||||||
func (r *Session) GetAuthConfig(withPasswd bool) *types.AuthConfig {
|
|
||||||
password := ""
|
|
||||||
if withPasswd {
|
|
||||||
password = r.authConfig.Password
|
|
||||||
}
|
|
||||||
return &types.AuthConfig{
|
|
||||||
Username: r.authConfig.Username,
|
|
||||||
Password: password,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func isTimeout(err error) bool {
|
func isTimeout(err error) bool {
|
||||||
type timeout interface {
|
type timeout interface {
|
||||||
Timeout() bool
|
Timeout() bool
|
||||||
|
|
Loading…
Reference in a new issue