func splitReposSearchTerm(reposName string) (string, string) {
	nameParts := strings.SplitN(reposName, "/", 2)
	var indexName, remoteName string
	if len(nameParts) == 1 || (!strings.Contains(nameParts[0], ".") &&
		!strings.Contains(nameParts[0], ":") && nameParts[0] != "localhost") {
		// This is a Docker Index repos (ex: samalba/hipache or ubuntu)
		// 'docker.io'
		indexName = IndexName
		remoteName = reposName
	} else {
		indexName = nameParts[0]
		remoteName = nameParts[1]
	}
	return indexName, remoteName
}
// splitReposSearchTerm breaks a search term into an index name and remote name
splitReposSearchTerm breaks a search term into an index name and remote name
// splitReposSearchTerm breaks a search term into an index name and remote name
func splitReposSearchTerm(reposName string) (string, string) {
	nameParts := strings.SplitN(reposName, "/", 2)
	var indexName, remoteName string
	if len(nameParts) == 1 || (!strings.Contains(nameParts[0], ".") &&
		!strings.Contains(nameParts[0], ":") && nameParts[0] != "localhost") {
		indexName = IndexName
		remoteName = reposName
	} else {
		indexName = nameParts[0]
		remoteName = nameParts[1]
	}
	return indexName, remoteName
}
func splitReposSearchTerm ( reposName string ) ( string , string ) { nameParts := strings . SplitN ( reposName , " " , 2 ) var indexName , remoteName string if len ( nameParts ) == 1 || ( ! strings . Contains ( nameParts [ 0 ] , " " ) && ! strings . Contains ( nameParts [ 0 ] , " " ) && nameParts [ 0 ] != " " ) { indexName = IndexName remoteName = reposName } else { indexName = nameParts [ 0 ] remoteName = nameParts [ 1 ] } return indexName , remoteName }
splitReposSearchTerm breaks a search term into an index name and remote name
splitReposSearchTerm breaks a search term into an index name and remote name
// This is a Docker Index repos (ex: samalba/hipache or ubuntu) // 'docker.io'