Jamie Hannaford | 17d2f87 | 2014-11-24 12:20:33 +0100 | [diff] [blame] | 1 | package defsecrules |
| 2 | |
Jamie Hannaford | 558572f | 2014-11-24 14:31:57 +0100 | [diff] [blame] | 3 | import ( |
| 4 | "strconv" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
Jamie Hannaford | 17d2f87 | 2014-11-24 12:20:33 +0100 | [diff] [blame] | 8 | |
| 9 | const rulepath = "os-security-group-default-rules" |
| 10 | |
Jamie Hannaford | 558572f | 2014-11-24 14:31:57 +0100 | [diff] [blame] | 11 | func resourceURL(c *gophercloud.ServiceClient, id int) string { |
| 12 | return c.ServiceURL(rulepath, strconv.Itoa(id)) |
Jamie Hannaford | 17d2f87 | 2014-11-24 12:20:33 +0100 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | func rootURL(c *gophercloud.ServiceClient) string { |
| 16 | return c.ServiceURL(rulepath) |
| 17 | } |