move auth to the client WIP
This commit is contained in:
parent
e742b3efb6
commit
e6cc4ff646
1 changed files with 1 additions and 4 deletions
|
@ -466,10 +466,7 @@ type Registry struct {
|
|||
authConfig *auth.AuthConfig
|
||||
}
|
||||
|
||||
func NewRegistry(root string) *Registry {
|
||||
// If the auth file does not exist, keep going
|
||||
authConfig, _ := auth.LoadConfig(root)
|
||||
|
||||
func NewRegistry(root string, authConfig *auth.AuthConfig) *Registry {
|
||||
r := &Registry{
|
||||
authConfig: authConfig,
|
||||
client: &http.Client{},
|
||||
|
|
Loading…
Reference in a new issue