diff --git a/docs/registry.go b/docs/registry.go index d79b3e9f..7a075e0e 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -459,6 +459,11 @@ func (r *Registry) SearchRepositories(term string) (*SearchResults, error) { return result, err } +func (r *Registry) ResetClient(authConfig *auth.AuthConfig) { + r.authConfig = authConfig + r.client.Jar = cookiejar.NewCookieJar() +} + type SearchResults struct { Query string `json:"query"` NumResults int `json:"num_results"`