// RetagCommands fetches all images in the provided source organization, and
// generates docker pull, tag, and push commands to be able to copy these
// in the provided destination registry and organization.
//
// N.B.: please avoid using this method, it is only kept here as more
// convenient for testing than in ./tools/pharos/retag
RetagCommands fetches all images in the provided source organization, and
generates docker pull, tag, and push commands to be able to copy these
in the provided destination registry and organization.

N.B.: please avoid using this method, it is only kept here as more
convenient for testing than in ./tools/pharos/retag
// RetagCommands fetches all images in the provided source organization and // generates docker pull tag and push commands to be able to copy these // in the provided destination registry and organization . // // N . B . : please avoid using this method it is only kept here as more // convenient for testing than in . / tools / pharos / retag
func RetagCommands(sourceOrg, destOrg, destRegistry string) ([]string, error) {
	sourceImages, err := ListImages(sourceOrg, version.AnyRange)
	if err != nil {
		return nil, err
	}
	commands := []string{}
	for _, sourceImage := range sourceImages {
		destImage := sourceImage
		destImage.Registry = destRegistry
		destImage.User = destOrg
		commands = append(commands, sourceImage.CommandsToRetagAs(destImage)...)
	}
	return commands, nil
}
func RetagCommands ( sourceOrg , destOrg , destRegistry string ) ( [ ] string , error ) { sourceImages , err := ListImages ( sourceOrg , version . AnyRange ) if err != nil { return nil , err } commands := [ ] string { } for _ , sourceImage := range sourceImages { destImage := sourceImage destImage . Registry = destRegistry destImage . User = destOrg commands = append ( commands , sourceImage . CommandsToRetagAs ( destImage ) ... ) } return commands , nil }
RetagCommands fetches all images in the provided source organization, and
generates docker pull, tag, and push commands to be able to copy these
in the provided destination registry and organization.
RetagCommands fetches all images in the provided source organization and generates docker pull tag and push commands to be able to copy these in the provided destination registry and organization .
// Make a copy of the source image and overrides the relevant "coordinates":