feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame] | 1 | package volumeactions |
| 2 | |
jrperritt | 9b7b9e6 | 2016-07-11 22:30:50 -0500 | [diff] [blame] | 3 | import "github.com/gophercloud/gophercloud" |
feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame] | 4 | |
| 5 | func attachURL(c *gophercloud.ServiceClient, id string) string { |
| 6 | return c.ServiceURL("volumes", id, "action") |
| 7 | } |
| 8 | |
Eugene Yakubovich | b3a4f33 | 2016-10-13 11:01:06 -0700 | [diff] [blame] | 9 | func beginDetachingURL(c *gophercloud.ServiceClient, id string) string { |
| 10 | return attachURL(c, id) |
| 11 | } |
| 12 | |
feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame] | 13 | func detachURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return attachURL(c, id) |
| 15 | } |
| 16 | |
Joe Topjian | 48f36ae | 2017-02-20 14:36:44 -0700 | [diff] [blame^] | 17 | func uploadURL(c *gophercloud.ServiceClient, id string) string { |
| 18 | return attachURL(c, id) |
| 19 | } |
| 20 | |
feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame] | 21 | func reserveURL(c *gophercloud.ServiceClient, id string) string { |
| 22 | return attachURL(c, id) |
| 23 | } |
| 24 | |
| 25 | func unreserveURL(c *gophercloud.ServiceClient, id string) string { |
| 26 | return attachURL(c, id) |
| 27 | } |
| 28 | |
| 29 | func initializeConnectionURL(c *gophercloud.ServiceClient, id string) string { |
| 30 | return attachURL(c, id) |
| 31 | } |
| 32 | |
| 33 | func teminateConnectionURL(c *gophercloud.ServiceClient, id string) string { |
| 34 | return attachURL(c, id) |
| 35 | } |
Mario Luan | a4d4930 | 2016-09-02 11:37:24 -0400 | [diff] [blame] | 36 | |
| 37 | func extendSizeURL(c *gophercloud.ServiceClient, id string) string { |
| 38 | return attachURL(c, id) |
| 39 | } |