func normalizeRepoDetailsCommon(repoDetails *docker.ImageRepoDetails) {
	if repoDetails.ServerAddress != "" {
		return
	}
	// We have validated the repository in top level.
	// It should not raise errors here.
	named, _ := reference.ParseNormalizedNamed(repoDetails.Repository)
	domain := reference.Domain(named)
	if domain != "" {
		repoDetails.ServerAddress = domain
	}
}
// normalizeRepoDetailsCommon pre-processes ImageRepoDetails before Match().
normalizeRepoDetailsCommon pre-processes ImageRepoDetails before Match().
// normalizeRepoDetailsCommon pre - processes ImageRepoDetails before Match () .
func normalizeRepoDetailsCommon(repoDetails *docker.ImageRepoDetails) {
	if repoDetails.ServerAddress != "" {
		return
	}
	named, _ := reference.ParseNormalizedNamed(repoDetails.Repository)
	domain := reference.Domain(named)
	if domain != "" {
		repoDetails.ServerAddress = domain
	}
}
func normalizeRepoDetailsCommon ( repoDetails * docker . ImageRepoDetails ) { if repoDetails . ServerAddress != " " { return } named , _ := reference . ParseNormalizedNamed ( repoDetails . Repository ) domain := reference . Domain ( named ) if domain != " " { repoDetails . ServerAddress = domain } }
normalizeRepoDetailsCommon pre-processes ImageRepoDetails before Match().
normalizeRepoDetailsCommon pre - processes ImageRepoDetails before Match () .
// We have validated the repository in top level. // It should not raise errors here.