urls.go 311 B

12345678910111213141516
  1. package apiversions
  2. import (
  3. "strings"
  4. "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  5. )
  6. func apiVersionsURL(c *gophercloud.ServiceClient) string {
  7. return c.Endpoint
  8. }
  9. func apiInfoURL(c *gophercloud.ServiceClient, version string) string {
  10. return c.Endpoint + strings.TrimRight(version, "/") + "/"
  11. }