blob: 5955f4cdef94e39c6e9057fee707528d6aa3f978 [file] [log] [blame]
Jamie Hannaford2a4beaa2015-02-09 17:27:18 +01001package instances
2
3import "github.com/rackspace/gophercloud"
4
5func baseURL(c *gophercloud.ServiceClient) string {
6 return c.ServiceURL("instances")
7}
8
9func createURL(c *gophercloud.ServiceClient) string {
10 return baseURL(c)
11}
Jamie Hannaford936a5472015-02-10 14:38:28 +010012
Jamie Hannafordf77fc102015-02-10 14:56:02 +010013func resourceURL(c *gophercloud.ServiceClient, id string) string {
14 return c.ServiceURL("instances", id)
15}
16
17func configURL(c *gophercloud.ServiceClient, id string) string {
Jamie Hannaford936a5472015-02-10 14:38:28 +010018 return c.ServiceURL("instances", id, "configuration")
19}
Jamie Hannaford2e817322015-02-16 15:29:17 +010020
21func backupsURL(c *gophercloud.ServiceClient, id string) string {
22 return c.ServiceURL("instances", id, "backups")
23}