urls.go 422 B

1234567891011121314
  1. package imagedata
  2. import "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  3. // `imageDataURL(c,i)` is the URL for the binary image data for the
  4. // image identified by ID `i` in the service `c`.
  5. func uploadURL(c *gophercloud.ServiceClient, imageID string) string {
  6. return c.ServiceURL("images", imageID, "file")
  7. }
  8. func downloadURL(c *gophercloud.ServiceClient, imageID string) string {
  9. return uploadURL(c, imageID)
  10. }