blob: d2ae7c36c2227893bb6bdf5be48104746cbbb444 [file] [log] [blame]
Jamie Hannafordb6927c12014-11-03 10:31:26 +01001package nodes
Jamie Hannaford3cfa00a2014-11-03 11:16:35 +01002
3import (
4 "strconv"
5
6 "github.com/rackspace/gophercloud"
7)
8
9const (
10 lbPath = "loadbalancers"
11 nodePath = "nodes"
12)
13
14func resourceURL(c *gophercloud.ServiceClient, lbID, nodeID int) string {
15 return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath, strconv.Itoa(nodeID))
16}
17
18func rootURL(c *gophercloud.ServiceClient, lbID int) string {
19 return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath)
20}