blob: 047b9ae174bf93849c01dd39ef6240519fc00422 [file] [log] [blame]
jrperrittc5c590a2016-11-04 14:41:15 -05001package imagedata
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
jrperrittc5c590a2016-11-04 14:41:15 -05004
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}