예제 #1
0
func listImages(imageSClient *srpc.Client) error {
	imageNames, err := client.ListImages(imageSClient)
	if err != nil {
		return err
	}
	verstr.Sort(imageNames)
	for _, name := range imageNames {
		fmt.Println(name)
	}
	return nil
}
예제 #2
0
func bulkAddReplaceImages(imageSClient *srpc.Client,
	objectClient *objectclient.ObjectClient, layerImageNames []string) error {
	imageNames, err := client.ListImages(imageSClient)
	if err != nil {
		return err
	}
	err = bulkAddReplaceImagesSep(imageSClient, objectClient, layerImageNames,
		imageNames, "/")
	if err != nil {
		return err
	}
	return bulkAddReplaceImagesSep(imageSClient, objectClient, layerImageNames,
		imageNames, ".")
}