Jamie Hannaford | 339394c | 2014-11-04 16:16:21 +0100 | [diff] [blame] | 1 | package acl |
Jamie Hannaford | f84f5fc | 2014-11-04 16:45:28 +0100 | [diff] [blame] | 2 | |
| 3 | import ( |
| 4 | "strconv" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
| 9 | const ( |
| 10 | path = "loadbalancers" |
| 11 | aclPath = "accesslist" |
| 12 | ) |
| 13 | |
| 14 | func resourceURL(c *gophercloud.ServiceClient, lbID, networkID int) string { |
| 15 | return c.ServiceURL(path, strconv.Itoa(lbID), aclPath, strconv.Itoa(networkID)) |
| 16 | } |
| 17 | |
| 18 | func rootURL(c *gophercloud.ServiceClient, lbID int) string { |
| 19 | return c.ServiceURL(path, strconv.Itoa(lbID), aclPath) |
| 20 | } |