github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/apiversions/urls.go (about)

     1  package apiversions
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/huaweicloud/golangsdk"
     7  )
     8  
     9  func apiVersionsURL(c *golangsdk.ServiceClient) string {
    10  	return c.Endpoint
    11  }
    12  
    13  func apiInfoURL(c *golangsdk.ServiceClient, version string) string {
    14  	return c.Endpoint + strings.TrimRight(version, "/") + "/"
    15  }