github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dms/v1/queues/urls.go (about)

     1  package queues
     2  
     3  import (
     4  	"github.com/chnsz/golangsdk"
     5  )
     6  
     7  // endpoint/queues
     8  const resourcePath = "queues"
     9  
    10  // createURL will build the rest query url of creation
    11  func createURL(client *golangsdk.ServiceClient) string {
    12  	return client.ServiceURL(client.ProjectID, resourcePath)
    13  }
    14  
    15  // deleteURL will build the url of deletion
    16  func deleteURL(client *golangsdk.ServiceClient, id string) string {
    17  	return client.ServiceURL(client.ProjectID, resourcePath, id)
    18  }
    19  
    20  // getURL will build the get url of get function
    21  func getURL(client *golangsdk.ServiceClient, id string) string {
    22  	return client.ServiceURL(client.ProjectID, resourcePath, id)
    23  }
    24  
    25  // listURL will build the list url of list function
    26  func listURL(client *golangsdk.ServiceClient) string {
    27  	return client.ServiceURL(client.ProjectID, resourcePath)
    28  }