move auth to the client WIP

This commit is contained in:
Victor Vieux 2013-05-30 15:39:43 +00:00
parent e742b3efb6
commit e6cc4ff646

View file

@ -466,10 +466,7 @@ type Registry struct {
authConfig *auth.AuthConfig authConfig *auth.AuthConfig
} }
func NewRegistry(root string) *Registry { func NewRegistry(root string, authConfig *auth.AuthConfig) *Registry {
// If the auth file does not exist, keep going
authConfig, _ := auth.LoadConfig(root)
r := &Registry{ r := &Registry{
authConfig: authConfig, authConfig: authConfig,
client: &http.Client{}, client: &http.Client{},