func NormalizeLocalName(name string) string {
	indexName, remoteName, err := loadRepositoryName(name, true)
	if err != nil {
		return name
	}

	var officialIndex bool
	// Return any configured index info, first.
	if index, ok := emptyServiceConfig.IndexConfigs[indexName]; ok {
		officialIndex = index.Official
	}

	if officialIndex {
		return normalizeLibraryRepoName(remoteName)
	}
	return localNameFromRemote(indexName, remoteName)
}
// NormalizeLocalName transforms a repository name into a normalize LocalName
// Passes through the name without transformation on error (image id, etc)
// It does not use the repository info because we don't want to load
// the repository index and do request over the network.
NormalizeLocalName transforms a repository name into a normalize LocalName
Passes through the name without transformation on error (image id, etc)
It does not use the repository info because we don't want to load
the repository index and do request over the network.
// NormalizeLocalName transforms a repository name into a normalize LocalName // Passes through the name without transformation on error ( image id etc ) // It does not use the repository info because we don ' t want to load // the repository index and do request over the network .
func NormalizeLocalName(name string) string {
	indexName, remoteName, err := loadRepositoryName(name, true)
	if err != nil {
		return name
	}
	var officialIndex bool
	if index, ok := emptyServiceConfig.IndexConfigs[indexName]; ok {
		officialIndex = index.Official
	}
	if officialIndex {
		return normalizeLibraryRepoName(remoteName)
	}
	return localNameFromRemote(indexName, remoteName)
}
func NormalizeLocalName ( name string ) string { indexName , remoteName , err := loadRepositoryName ( name , true ) if err != nil { return name } var officialIndex bool if index , ok := emptyServiceConfig . IndexConfigs [ indexName ] ; ok { officialIndex = index . Official } if officialIndex { return normalizeLibraryRepoName ( remoteName ) } return localNameFromRemote ( indexName , remoteName ) }
NormalizeLocalName transforms a repository name into a normalize LocalName
Passes through the name without transformation on error (image id, etc)
It does not use the repository info because we don't want to load
the repository index and do request over the network.
NormalizeLocalName transforms a repository name into a normalize LocalName Passes through the name without transformation on error ( image id etc ) It does not use the repository info because we don ' t want to load the repository index and do request over the network .
// Return any configured index info, first.