blob: 28c0bec3df5cffe33a6b380f5037c7df558af9c2 [file] [log] [blame]
Jamie Hannaford9fdda582015-02-10 12:15:43 +01001package instances
2
3import "github.com/rackspace/gophercloud"
4
5func baseURL(c *gophercloud.ServiceClient) string {
6 return c.ServiceURL("instances")
7}
Jamie Hannaford821015f2015-02-10 12:58:36 +01008
9func resourceURL(c *gophercloud.ServiceClient, id string) string {
10 return c.ServiceURL("instances", id)
11}
Jamie Hannaford94164fa2015-02-10 13:58:45 +010012
13func userRootURL(c *gophercloud.ServiceClient, id string) string {
14 return c.ServiceURL("instances", id, "root")
15}
Jamie Hannaford219ca592015-02-10 15:59:05 +010016
17func actionURL(c *gophercloud.ServiceClient, id string) string {
18 return c.ServiceURL("instances", id, "action")
19}