Jamie Hannaford | b6927c1 | 2014-11-03 10:31:26 +0100 | [diff] [blame] | 1 | package nodes |
Jamie Hannaford | 3cfa00a | 2014-11-03 11:16:35 +0100 | [diff] [blame] | 2 | |
| 3 | import ( |
| 4 | "strconv" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
| 9 | const ( |
| 10 | lbPath = "loadbalancers" |
| 11 | nodePath = "nodes" |
| 12 | ) |
| 13 | |
| 14 | func resourceURL(c *gophercloud.ServiceClient, lbID, nodeID int) string { |
| 15 | return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath, strconv.Itoa(nodeID)) |
| 16 | } |
| 17 | |
| 18 | func rootURL(c *gophercloud.ServiceClient, lbID int) string { |
| 19 | return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath) |
| 20 | } |