github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/common/extensions/urls.go (about)

     1  package extensions
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  // ExtensionURL generates the URL for an extension resource by name.
     6  func ExtensionURL(c *golangsdk.ServiceClient, name string) string {
     7  	return c.ServiceURL("extensions", name)
     8  }
     9  
    10  // ListExtensionURL generates the URL for the extensions resource collection.
    11  func ListExtensionURL(c *golangsdk.ServiceClient) string {
    12  	return c.ServiceURL("extensions")
    13  }