code: func NewRegistryClient(resolver AuthConfigResolver, userAgent string, insecure bool) RegistryClient {
  	return &client{
  		authConfigResolver: resolver,
  		insecureRegistry:   insecure,
  		userAgent:          userAgent,
  	}
  }
docs: // NewRegistryClient returns a new RegistryClient with a resolver