code: func (r *ChartRepository) Index() error {
  	err := r.generateIndex()
  	if err != nil {
  		return err
  	}
  	return r.saveIndexFile()
  }
docs: // Index generates an index for the chart repository and writes an index.yaml file.