Jamie Hannaford | f0cd165 | 2014-11-04 10:54:11 +0100 | [diff] [blame] | 1 | package vips |
Jamie Hannaford | 0cebb06 | 2014-11-04 10:59:38 +0100 | [diff] [blame] | 2 | |
| 3 | import ( |
| 4 | "strconv" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
| 9 | const ( |
| 10 | lbPath = "loadbalancers" |
| 11 | vipPath = "virtualips" |
| 12 | ) |
| 13 | |
| 14 | func resourceURL(c *gophercloud.ServiceClient, lbID, nodeID int) string { |
| 15 | return c.ServiceURL(lbPath, strconv.Itoa(lbID), vipPath, strconv.Itoa(nodeID)) |
| 16 | } |
| 17 | |
| 18 | func rootURL(c *gophercloud.ServiceClient, lbID int) string { |
| 19 | return c.ServiceURL(lbPath, strconv.Itoa(lbID), vipPath) |
| 20 | } |