code: func (s *DefaultService) ResolveRepository(name reference.Named) (*RepositoryInfo, error) {
  	s.mu.Lock()
  	defer s.mu.Unlock()
  	return newRepositoryInfo(s.config, name)
  }
docs: // ResolveRepository splits a repository name into its components
  // and configuration of the associated registry.