blob: a61ee7d430ef6d8804fe095719ba16c2a9433af0 [file] [log] [blame]
feiskycf0c7fe2015-11-05 22:06:17 +08001package volumeactions
2
jrperritt9b7b9e62016-07-11 22:30:50 -05003import "github.com/gophercloud/gophercloud"
feiskycf0c7fe2015-11-05 22:06:17 +08004
5func attachURL(c *gophercloud.ServiceClient, id string) string {
6 return c.ServiceURL("volumes", id, "action")
7}
8
9func detachURL(c *gophercloud.ServiceClient, id string) string {
10 return attachURL(c, id)
11}
12
13func reserveURL(c *gophercloud.ServiceClient, id string) string {
14 return attachURL(c, id)
15}
16
17func unreserveURL(c *gophercloud.ServiceClient, id string) string {
18 return attachURL(c, id)
19}
20
21func initializeConnectionURL(c *gophercloud.ServiceClient, id string) string {
22 return attachURL(c, id)
23}
24
25func teminateConnectionURL(c *gophercloud.ServiceClient, id string) string {
26 return attachURL(c, id)
27}
Mario Luana4d49302016-09-02 11:37:24 -040028
29func extendSizeURL(c *gophercloud.ServiceClient, id string) string {
30 return attachURL(c, id)
31}