forked from TrueCloudLab/distribution
Allow to change login
This commit is contained in:
parent
a82a6bfdff
commit
4a0228fd8e
1 changed files with 5 additions and 0 deletions
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue