code: func GetAuthConfigKey(index *registrytypes.IndexInfo) string {
  	if index.Official {
  		return IndexServer
  	}
  	return index.Name
  }
docs: // GetAuthConfigKey special-cases using the full index address of the official
  // index as the AuthConfig key, and uses the (host)name[:port] for private indexes.