blob: 78f9645bbec57b0c591492ef1f13d0410df6a7b8 [file] [log] [blame]
package apiversions
import (
"strings"
"net/url"
"github.com/rackspace/gophercloud"
)
func getURL(c *gophercloud.ServiceClient, version string) string {
return c.ServiceURL(strings.TrimRight(version, "/") + "/")
}
func listURL(c *gophercloud.ServiceClient) string {
u, _ := url.Parse(c.ServiceURL(""))
u.Path = "/"
return u.String()
}