123456789101112131415161718192021 |
- package apiversions
- import (
- "net/url"
- "strings"
- "devel.mephi.ru/iacherepanov/openstack-gophercloud"
- )
- func getURL(c *gophercloud.ServiceClient, version string) string {
- u, _ := url.Parse(c.ServiceURL(""))
- u.Path = "/" + strings.TrimRight(version, "/") + "/"
- return u.String()
- }
- func listURL(c *gophercloud.ServiceClient) string {
- u, _ := url.Parse(c.ServiceURL(""))
- u.Path = "/"
- return u.String()
- }
|