Adding the ability to list LB protocols
diff --git a/rackspace/lb/v1/lbs/urls.go b/rackspace/lb/v1/lbs/urls.go
index 3df99ab..1de038c 100644
--- a/rackspace/lb/v1/lbs/urls.go
+++ b/rackspace/lb/v1/lbs/urls.go
@@ -6,7 +6,10 @@
"github.com/rackspace/gophercloud"
)
-const path = "loadbalancers"
+const (
+ path = "loadbalancers"
+ protocolsPath = "protocols"
+)
func resourceURL(c *gophercloud.ServiceClient, id int) string {
return c.ServiceURL(path, strconv.Itoa(id))
@@ -15,3 +18,7 @@
func rootURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(path)
}
+
+func protocolsURL(c *gophercloud.ServiceClient) string {
+ return c.ServiceURL(path, protocolsPath)
+}