Jamie Hannaford | 924c09d | 2014-11-19 12:05:38 +0100 | [diff] [blame] | 1 | package secgroups |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | const ( |
| 6 | secgrouppath = "os-security-groups" |
| 7 | ) |
| 8 | |
| 9 | func resourceURL(c *gophercloud.ServiceClient, id string) string { |
| 10 | return c.ServiceURL(secgrouppath, id) |
| 11 | } |
| 12 | |
| 13 | func rootURL(c *gophercloud.ServiceClient) string { |
| 14 | return c.ServiceURL(secgrouppath) |
| 15 | } |
Jamie Hannaford | 1915179 | 2014-11-19 12:46:47 +0100 | [diff] [blame] | 16 | |
| 17 | func listByServerURL(c *gophercloud.ServiceClient, serverID string) string { |
| 18 | return c.ServiceURL(secgrouppath, "servers", serverID, secgrouppath) |
| 19 | } |