github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/smn/v2/subscriptions/urls.go (about) 1 package subscriptions 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 const ( 6 rootPath = "subscriptions" 7 topicsPath = "topics" 8 ) 9 10 func createURL(c *golangsdk.ServiceClient, topicUrn string) string { 11 return c.ServiceURL(topicsPath, topicUrn, rootPath) 12 } 13 14 func deleteURL(c *golangsdk.ServiceClient, subscriptionUrn string) string { 15 return c.ServiceURL(rootPath, subscriptionUrn) 16 } 17 18 func listURL(c *golangsdk.ServiceClient) string { 19 return c.ServiceURL(rootPath) 20 } 21 22 func listFromTopicURL(c *golangsdk.ServiceClient, topicUrn string) string { 23 return c.ServiceURL(topicsPath, topicUrn, rootPath) 24 }