jrperritt | c5c590a | 2016-11-04 14:41:15 -0500 | [diff] [blame] | 1 | package imagedata |
| 2 | |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame^] | 3 | import "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
jrperritt | c5c590a | 2016-11-04 14:41:15 -0500 | [diff] [blame] | 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 | } |