feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame^] | 1 | package volumeactions |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func attachURL(c *gophercloud.ServiceClient, id string) string { |
| 6 | return c.ServiceURL("volumes", id, "action") |
| 7 | } |
| 8 | |
| 9 | func detachURL(c *gophercloud.ServiceClient, id string) string { |
| 10 | return attachURL(c, id) |
| 11 | } |
| 12 | |
| 13 | func reserveURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return attachURL(c, id) |
| 15 | } |
| 16 | |
| 17 | func unreserveURL(c *gophercloud.ServiceClient, id string) string { |
| 18 | return attachURL(c, id) |
| 19 | } |
| 20 | |
| 21 | func initializeConnectionURL(c *gophercloud.ServiceClient, id string) string { |
| 22 | return attachURL(c, id) |
| 23 | } |
| 24 | |
| 25 | func teminateConnectionURL(c *gophercloud.ServiceClient, id string) string { |
| 26 | return attachURL(c, id) |
| 27 | } |