| Ash Wilson | 61dcb02 | 2014-10-03 08:15:47 -0400 | [diff] [blame] | 1 | package extensions | 
 | 2 |  | 
 | 3 | import "github.com/rackspace/gophercloud" | 
 | 4 |  | 
| Ash Wilson | 05e4107 | 2014-10-03 16:33:42 -0400 | [diff] [blame] | 5 | // ExtensionURL generates the URL for an extension resource by name. | 
 | 6 | func ExtensionURL(c *gophercloud.ServiceClient, name string) string { | 
| Ash Wilson | a493187 | 2014-10-03 15:55:35 -0400 | [diff] [blame] | 7 | 	return c.ServiceURL("extensions", name) | 
| Ash Wilson | 61dcb02 | 2014-10-03 08:15:47 -0400 | [diff] [blame] | 8 | } | 
 | 9 |  | 
| Ash Wilson | 05e4107 | 2014-10-03 16:33:42 -0400 | [diff] [blame] | 10 | // ListExtensionURL generates the URL for the extensions resource collection. | 
 | 11 | func ListExtensionURL(c *gophercloud.ServiceClient) string { | 
| Ash Wilson | a493187 | 2014-10-03 15:55:35 -0400 | [diff] [blame] | 12 | 	return c.ServiceURL("extensions") | 
| Ash Wilson | 61dcb02 | 2014-10-03 08:15:47 -0400 | [diff] [blame] | 13 | } |