code: func (store *store) ReferencesByName(ref reference.Named) []Association {
  	refName := reference.FamiliarName(ref)
  
  	store.mu.RLock()
  	defer store.mu.RUnlock()
  
  	repository, exists := store.Repositories[refName]
  	if !exists {
  		return nil
  	}
  
  	var associations []Association
  	for refStr, refID := range repository {
  		ref, err := reference.ParseNormalizedNamed(refStr)
  		if err != nil {
  			// Should never happen
  			return nil
  		}
  		associations = append(associations,
  			Association{
  				Ref: ref,
  				ID:  refID,
  			})
  	}
  
  	sort.Sort(lexicalAssociations(associations))
  
  	return associations
  }
docs: // ReferencesByName returns the references for a given repository name.
  // If there are no references known for this repository name,
  // ReferencesByName returns nil.