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

     1  package topics
     2  
     3  import (
     4  	"github.com/chnsz/golangsdk"
     5  )
     6  
     7  const (
     8  	resourcePath = "instances"
     9  	topicPath    = "topics"
    10  )
    11  
    12  // rootURL will build the url of create, update and list
    13  func rootURL(client *golangsdk.ServiceClient, instanceID string) string {
    14  	return client.ServiceURL(client.ProjectID, resourcePath, instanceID, topicPath)
    15  }
    16  
    17  // deleteURL will build the url of delete
    18  func deleteURL(client *golangsdk.ServiceClient, instanceID string) string {
    19  	return client.ServiceURL(client.ProjectID, resourcePath, instanceID, topicPath, "delete")
    20  }