blob: 12f8d8343fd0060e7f18fece43a0cc7eb79a57d6 [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}