blob: 0b0b70e47a0849b85eab888561825c8c5202cd71 [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)
}
func CreateURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(Version, "networks")
}