github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/rts/v1/stacks/urls.go (about) 1 package stacks 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 ) 6 7 func createURL(c *golangsdk.ServiceClient) string { 8 return c.ServiceURL("stacks") 9 } 10 func listURL(c *golangsdk.ServiceClient) string { 11 return createURL(c) 12 } 13 14 func getURL(c *golangsdk.ServiceClient, name string) string { 15 return c.ServiceURL("stacks", name) 16 } 17 func updateURL(c *golangsdk.ServiceClient, name, id string) string { 18 return c.ServiceURL("stacks", name, id) 19 } 20 21 func deleteURL(c *golangsdk.ServiceClient, name, id string) string { 22 return updateURL(c, name, id) 23 }