jrperritt | c5c590a | 2016-11-04 14:41:15 -0500 | [diff] [blame] | 1 | package imagedata |
2 | |||||
3 | import "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`. | ||||
7 | func uploadURL(c *gophercloud.ServiceClient, imageID string) string { | ||||
8 | return c.ServiceURL("images", imageID, "file") | ||||
9 | } | ||||
10 | |||||
11 | func downloadURL(c *gophercloud.ServiceClient, imageID string) string { | ||||
12 | return uploadURL(c, imageID) | ||||
13 | } |