func (index *IndexInfo) GetAuthConfigKey() string {
	if index.Official {
		return IndexServer
	}
	return index.Name
}
// 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.
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.
// 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 .
func (index *IndexInfo) GetAuthConfigKey() string {
	if index.Official {
		return IndexServer
	}
	return index.Name
}
func ( index * IndexInfo ) GetAuthConfigKey ( ) string { if index . Official { return IndexServer } return index . Name }
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.
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 .