code: func (c *ChartDownloader) setCredentials(r *repo.ChartRepository) {
  	if t, ok := r.Client.(*getter.HttpGetter); ok {
  		t.SetCredentials(c.getRepoCredentials(r))
  	}
  }
docs: // setCredentials if HttpGetter is used, this method sets the configured repository credentials on the HttpGetter.