func New(repoDetails docker.ImageRepoDetails) (Registry, error) {
	var provider internal.RegistryInternal = internal.NewBase(repoDetails, DefaultTransport)
	for _, providerNewer := range internal.Providers() {
		p := providerNewer(repoDetails, DefaultTransport)
		if p.Match() {
			logger.Tracef("found registry client %#v for %s", p, repoDetails)
			provider = p
			break
		}
	}
	if err := internal.InitProvider(provider); err != nil {
		return nil, errors.Trace(err)
	}
	return provider, nil
}
// New returns a Registry interface providing methods for interacting with registry APIs.
New returns a Registry interface providing methods for interacting with registry APIs.
// New returns a Registry interface providing methods for interacting with registry APIs .
func New(repoDetails docker.ImageRepoDetails) (Registry, error) {
	var provider internal.RegistryInternal = internal.NewBase(repoDetails, DefaultTransport)
	for _, providerNewer := range internal.Providers() {
		p := providerNewer(repoDetails, DefaultTransport)
		if p.Match() {
			logger.Tracef("found registry client %#v for %s", p, repoDetails)
			provider = p
			break
		}
	}
	if err := internal.InitProvider(provider); err != nil {
		return nil, errors.Trace(err)
	}
	return provider, nil
}
func New ( repoDetails docker . ImageRepoDetails ) ( Registry , error ) { var provider internal . RegistryInternal = internal . NewBase ( repoDetails , DefaultTransport ) for _ , providerNewer := range internal . Providers ( ) { p := providerNewer ( repoDetails , DefaultTransport ) if p . Match ( ) { logger . Tracef ( " " , p , repoDetails ) provider = p break } } if err := internal . InitProvider ( provider ) ; err != nil { return nil , errors . Trace ( err ) } return provider , nil }
New returns a Registry interface providing methods for interacting with registry APIs.
New returns a Registry interface providing methods for interacting with registry APIs .