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 }
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, ".") }