Jamie Hannaford | fba65af | 2014-11-03 10:32:37 +0100 | [diff] [blame^] | 1 | package lbs |
Jamie Hannaford | 186d4e2 | 2014-10-31 12:26:11 +0100 | [diff] [blame] | 2 | |
Jamie Hannaford | 5f95e6a | 2014-10-31 16:13:44 +0100 | [diff] [blame] | 3 | import ( |
| 4 | "strconv" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
Jamie Hannaford | 186d4e2 | 2014-10-31 12:26:11 +0100 | [diff] [blame] | 8 | |
| 9 | const path = "loadbalancers" |
| 10 | |
Jamie Hannaford | 5f95e6a | 2014-10-31 16:13:44 +0100 | [diff] [blame] | 11 | func resourceURL(c *gophercloud.ServiceClient, id int) string { |
| 12 | return c.ServiceURL(path, strconv.Itoa(id)) |
Jamie Hannaford | 186d4e2 | 2014-10-31 12:26:11 +0100 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | func rootURL(c *gophercloud.ServiceClient) string { |
| 16 | return c.ServiceURL(path) |
| 17 | } |