blob: 3df99ab4bdd1a4321c65954534122a40c79ec563 [file] [log] [blame]
Jamie Hannafordfba65af2014-11-03 10:32:37 +01001package lbs
Jamie Hannaford186d4e22014-10-31 12:26:11 +01002
Jamie Hannaford5f95e6a2014-10-31 16:13:44 +01003import (
4 "strconv"
5
6 "github.com/rackspace/gophercloud"
7)
Jamie Hannaford186d4e22014-10-31 12:26:11 +01008
9const path = "loadbalancers"
10
Jamie Hannaford5f95e6a2014-10-31 16:13:44 +010011func resourceURL(c *gophercloud.ServiceClient, id int) string {
12 return c.ServiceURL(path, strconv.Itoa(id))
Jamie Hannaford186d4e22014-10-31 12:26:11 +010013}
14
15func rootURL(c *gophercloud.ServiceClient) string {
16 return c.ServiceURL(path)
17}