blob: ccd6416e53eaa4ac025da635554a2c1bf25f5a9c [file] [log] [blame]
jrperrittc5c590a2016-11-04 14:41:15 -05001package imagedata
2
3import "github.com/gophercloud/gophercloud"
4
5// `imageDataURL(c,i)` is the URL for the binary image data for the
6// image identified by ID `i` in the service `c`.
7func uploadURL(c *gophercloud.ServiceClient, imageID string) string {
8 return c.ServiceURL("images", imageID, "file")
9}
10
11func downloadURL(c *gophercloud.ServiceClient, imageID string) string {
12 return uploadURL(c, imageID)
13}