blob: 70cc6e1170d07ffa1139e78b14e7c7231e883b18 [file] [log] [blame]
package networks
import (
"strings"
"github.com/rackspace/gophercloud"
)
const Version = "v2.0"
func APIVersionsURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("")
}
func APIInfoURL(c *gophercloud.ServiceClient, version string) string {
return c.ServiceURL(strings.TrimRight(version, "/") + "/")
}
func ExtensionURL(c *gophercloud.ServiceClient, name string) string {
return c.ServiceURL(Version, "extensions", name)
}
func NetworkURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL(Version, "networks", id)
}