blob: e373fa1d809ea14daff1097fd2012c645fd87f34 [file] [log] [blame]
Jamie Hannaford339394c2014-11-04 16:16:21 +01001package acl
Jamie Hannafordf84f5fc2014-11-04 16:45:28 +01002
3import (
4 "strconv"
5
6 "github.com/rackspace/gophercloud"
7)
8
9const (
10 path = "loadbalancers"
11 aclPath = "accesslist"
12)
13
14func resourceURL(c *gophercloud.ServiceClient, lbID, networkID int) string {
15 return c.ServiceURL(path, strconv.Itoa(lbID), aclPath, strconv.Itoa(networkID))
16}
17
18func rootURL(c *gophercloud.ServiceClient, lbID int) string {
19 return c.ServiceURL(path, strconv.Itoa(lbID), aclPath)
20}