Ash Wilson | e47ea9e | 2014-09-10 16:03:44 -0400 | [diff] [blame] | 1 | package objects |
| 2 | |
Jon Perritt | ea4e301 | 2014-10-09 22:03:19 -0500 | [diff] [blame] | 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | ) |
Ash Wilson | e47ea9e | 2014-09-10 16:03:44 -0400 | [diff] [blame] | 6 | |
Jon Perritt | ea4e301 | 2014-10-09 22:03:19 -0500 | [diff] [blame] | 7 | func listURL(c *gophercloud.ServiceClient, container string) string { |
| 8 | return c.ServiceURL(container) |
| 9 | } |
| 10 | |
| 11 | func copyURL(c *gophercloud.ServiceClient, container, object string) string { |
Ash Wilson | e47ea9e | 2014-09-10 16:03:44 -0400 | [diff] [blame] | 12 | return c.ServiceURL(container, object) |
| 13 | } |
| 14 | |
Jon Perritt | ea4e301 | 2014-10-09 22:03:19 -0500 | [diff] [blame] | 15 | func createURL(c *gophercloud.ServiceClient, container, object string) string { |
| 16 | return copyURL(c, container, object) |
| 17 | } |
| 18 | |
| 19 | func getURL(c *gophercloud.ServiceClient, container, object string) string { |
| 20 | return copyURL(c, container, object) |
| 21 | } |
| 22 | |
| 23 | func deleteURL(c *gophercloud.ServiceClient, container, object string) string { |
| 24 | return copyURL(c, container, object) |
| 25 | } |
| 26 | |
| 27 | func downloadURL(c *gophercloud.ServiceClient, container, object string) string { |
| 28 | return copyURL(c, container, object) |
| 29 | } |
| 30 | |
| 31 | func updateURL(c *gophercloud.ServiceClient, container, object string) string { |
| 32 | return copyURL(c, container, object) |
Ash Wilson | e47ea9e | 2014-09-10 16:03:44 -0400 | [diff] [blame] | 33 | } |