github.com/gophercloud/gophercloud@v1.11.0/openstack/baremetal/v1/allocations/urls.go (about)

     1  package allocations
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func createURL(client *gophercloud.ServiceClient) string {
     6  	return client.ServiceURL("allocations")
     7  }
     8  
     9  func listURL(client *gophercloud.ServiceClient) string {
    10  	return createURL(client)
    11  }
    12  
    13  func resourceURL(client *gophercloud.ServiceClient, id string) string {
    14  	return client.ServiceURL("allocations", id)
    15  }
    16  
    17  func deleteURL(client *gophercloud.ServiceClient, id string) string {
    18  	return resourceURL(client, id)
    19  }
    20  
    21  func getURL(client *gophercloud.ServiceClient, id string) string {
    22  	return resourceURL(client, id)
    23  }