blob: 6460c66bc01e9f8d237ff4fd5f73917b3cfbd2c6 [file] [log] [blame]
Ash Wilson61dcb022014-10-03 08:15:47 -04001package extensions
2
3import "github.com/rackspace/gophercloud"
4
Ash Wilson05e41072014-10-03 16:33:42 -04005// ExtensionURL generates the URL for an extension resource by name.
6func ExtensionURL(c *gophercloud.ServiceClient, name string) string {
Ash Wilsona4931872014-10-03 15:55:35 -04007 return c.ServiceURL("extensions", name)
Ash Wilson61dcb022014-10-03 08:15:47 -04008}
9
Ash Wilson05e41072014-10-03 16:33:42 -040010// ListExtensionURL generates the URL for the extensions resource collection.
11func ListExtensionURL(c *gophercloud.ServiceClient) string {
Ash Wilsona4931872014-10-03 15:55:35 -040012 return c.ServiceURL("extensions")
Ash Wilson61dcb022014-10-03 08:15:47 -040013}