blob: 28f063a0f78b93dc2c076a178611c3648f9a5833 [file] [log] [blame]
Jamie Hannafordf0cd1652014-11-04 10:54:11 +01001package vips
Jamie Hannaford0cebb062014-11-04 10:59:38 +01002
3import (
4 "strconv"
5
6 "github.com/rackspace/gophercloud"
7)
8
9const (
10 lbPath = "loadbalancers"
11 vipPath = "virtualips"
12)
13
14func resourceURL(c *gophercloud.ServiceClient, lbID, nodeID int) string {
15 return c.ServiceURL(lbPath, strconv.Itoa(lbID), vipPath, strconv.Itoa(nodeID))
16}
17
18func rootURL(c *gophercloud.ServiceClient, lbID int) string {
19 return c.ServiceURL(lbPath, strconv.Itoa(lbID), vipPath)
20}