blob: e31e76cfebe4f59302235209875dfe532007fe93 [file] [log] [blame]
Jamie Hannaford4721abc2014-09-16 16:29:04 +02001package extensions
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02002
3import "github.com/rackspace/gophercloud"
4
Jamie Hannafordc65e1922014-09-22 13:20:58 +02005const version = "v2.0"
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02006
Jamie Hannafordc65e1922014-09-22 13:20:58 +02007func extensionURL(c *gophercloud.ServiceClient, name string) string {
8 return c.ServiceURL(version, "extensions", name)
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02009}
Jamie Hannaford4721abc2014-09-16 16:29:04 +020010
Jamie Hannafordc65e1922014-09-22 13:20:58 +020011func listExtensionURL(c *gophercloud.ServiceClient) string {
12 return c.ServiceURL(version, "extensions")
Jamie Hannaford4721abc2014-09-16 16:29:04 +020013}