code: func NewRepository(name reference.Named, baseURL string, transport http.RoundTripper) (distribution.Repository, error) {
  	ub, err := v2.NewURLBuilderFromString(baseURL, false)
  	if err != nil {
  		return nil, err
  	}
  
  	client := &http.Client{
  		Transport:     transport,
  		CheckRedirect: checkHTTPRedirect,
  		// TODO(dmcgowan): create cookie jar
  	}
  
  	return &repository{
  		client: client,
  		ub:     ub,
  		name:   name,
  	}, nil
  }
docs: // NewRepository creates a new Repository for the given repository name and base URL.