| Joe Topjian | c9fb21b | 2015-02-22 05:55:48 +0000 | [diff] [blame] | 1 | package servergroups | 
 | 2 |  | 
 | 3 | import "github.com/rackspace/gophercloud" | 
 | 4 |  | 
 | 5 | const resourcePath = "os-server-groups" | 
 | 6 |  | 
 | 7 | func resourceURL(c *gophercloud.ServiceClient) string { | 
 | 8 | 	return c.ServiceURL(resourcePath) | 
 | 9 | } | 
 | 10 |  | 
 | 11 | func listURL(c *gophercloud.ServiceClient) string { | 
 | 12 | 	return resourceURL(c) | 
 | 13 | } | 
 | 14 |  | 
 | 15 | func createURL(c *gophercloud.ServiceClient) string { | 
 | 16 | 	return resourceURL(c) | 
 | 17 | } | 
 | 18 |  | 
 | 19 | func getURL(c *gophercloud.ServiceClient, id string) string { | 
 | 20 | 	return c.ServiceURL(resourcePath, id) | 
 | 21 | } | 
 | 22 |  | 
 | 23 | func deleteURL(c *gophercloud.ServiceClient, id string) string { | 
 | 24 | 	return getURL(c, id) | 
 | 25 | } |