github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/qos/policies/urls.go (about)

     1  package policies
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const resourcePath = "qos/policies"
     6  
     7  func rootURL(c *gophercloud.ServiceClient) string {
     8  	return c.ServiceURL(resourcePath)
     9  }
    10  
    11  func resourceURL(c *gophercloud.ServiceClient, id string) string {
    12  	return c.ServiceURL(resourcePath, id)
    13  }
    14  
    15  func listURL(c *gophercloud.ServiceClient) string {
    16  	return rootURL(c)
    17  }
    18  
    19  func getURL(c *gophercloud.ServiceClient, id string) string {
    20  	return resourceURL(c, id)
    21  }
    22  
    23  func createURL(c *gophercloud.ServiceClient) string {
    24  	return rootURL(c)
    25  }
    26  
    27  func updateURL(c *gophercloud.ServiceClient, id string) string {
    28  	return resourceURL(c, id)
    29  }
    30  
    31  func deleteURL(c *gophercloud.ServiceClient, id string) string {
    32  	return resourceURL(c, id)
    33  }