github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dli/v1/queues/urls.go (about)

     1  package queues
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const (
     6  	resourcePath = "queues"
     7  	actionPath   = "action"
     8  )
     9  
    10  func createURL(c *golangsdk.ServiceClient) string {
    11  	return c.ServiceURL(resourcePath)
    12  }
    13  
    14  func resourceURL(c *golangsdk.ServiceClient, queueName string) string {
    15  	return c.ServiceURL(resourcePath, queueName)
    16  }
    17  
    18  func queryAllURL(c *golangsdk.ServiceClient) string {
    19  	return c.ServiceURL(resourcePath)
    20  }
    21  
    22  func ActionURL(c *golangsdk.ServiceClient, queueName string) string {
    23  	return c.ServiceURL(resourcePath, queueName, actionPath)
    24  }