blob: 9a1f99b199734f8b82df317a77980b2a5bcb52de [file] [log] [blame]
Joe Topjianc9fb21b2015-02-22 05:55:48 +00001package servergroups
2
Jon Perritt27249f42016-02-18 10:35:59 -06003import "github.com/gophercloud/gophercloud"
Joe Topjianc9fb21b2015-02-22 05:55:48 +00004
5const resourcePath = "os-server-groups"
6
7func resourceURL(c *gophercloud.ServiceClient) string {
8 return c.ServiceURL(resourcePath)
9}
10
11func listURL(c *gophercloud.ServiceClient) string {
12 return resourceURL(c)
13}
14
15func createURL(c *gophercloud.ServiceClient) string {
16 return resourceURL(c)
17}
18
19func getURL(c *gophercloud.ServiceClient, id string) string {
20 return c.ServiceURL(resourcePath, id)
21}
22
23func deleteURL(c *gophercloud.ServiceClient, id string) string {
24 return getURL(c, id)
25}