code: func NewRegistry(baseURL string, transport http.RoundTripper) (Registry, error) {
  	ub, err := v2.NewURLBuilderFromString(baseURL, false)
  	if err != nil {
  		return nil, err
  	}
  
  	client := &http.Client{
  		Transport:     transport,
  		Timeout:       1 * time.Minute,
  		CheckRedirect: checkHTTPRedirect,
  	}
  
  	return &registry{
  		client: client,
  		ub:     ub,
  	}, nil
  }
docs: // NewRegistry creates a registry namespace which can be used to get a listing of repositories