blob: ccd6416e53eaa4ac025da635554a2c1bf25f5a9c [file] [log] [blame]
package imagedata
import "github.com/gophercloud/gophercloud"
// `imageDataURL(c,i)` is the URL for the binary image data for the
// image identified by ID `i` in the service `c`.
func uploadURL(c *gophercloud.ServiceClient, imageID string) string {
return c.ServiceURL("images", imageID, "file")
}
func downloadURL(c *gophercloud.ServiceClient, imageID string) string {
return uploadURL(c, imageID)
}