Allow to change login

This commit is contained in:
Guillaume J. Charmes 2013-05-15 13:39:24 -07:00
parent a82a6bfdff
commit 4a0228fd8e

View file

@ -459,6 +459,11 @@ func (r *Registry) SearchRepositories(term string) (*SearchResults, error) {
return result, err return result, err
} }
func (r *Registry) ResetClient(authConfig *auth.AuthConfig) {
r.authConfig = authConfig
r.client.Jar = cookiejar.NewCookieJar()
}
type SearchResults struct { type SearchResults struct {
Query string `json:"query"` Query string `json:"query"`
NumResults int `json:"num_results"` NumResults int `json:"num_results"`