code: func (r repositoryEndpoint) Name() string {
  	repoName := r.info.Name.Name()
  	// If endpoint does not support CanonicalName, use the RemoteName instead
  	if r.endpoint.TrimHostname {
  		repoName = reference.Path(r.info.Name)
  	}
  	return repoName
  }
docs: // Name returns the repository name