code: func findEntryByName(name string, cr *repo.ChartRepository) (repo.ChartVersions, error) {
  	for ename, entry := range cr.IndexFile.Entries {
  		if ename == name {
  			return entry, nil
  		}
  	}
  	return nil, errors.New("entry not found")
  }
docs: // findEntryByName finds an entry in the chart repository whose name matches the given name.
  //
  // It returns the ChartVersions for that entry.