github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/fgs/v2/trigger/urls.go (about) 1 package trigger 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 FGS = "fgs" 7 TRIGGER = "triggers" 8 ) 9 10 func listURL(c *golangsdk.ServiceClient, functionUrn string) string { 11 return c.ServiceURL(FGS, TRIGGER, functionUrn) 12 } 13 14 func createURL(c *golangsdk.ServiceClient, functionUrn string) string { 15 return listURL(c, functionUrn) 16 } 17 18 func deleteAllURL(c *golangsdk.ServiceClient, functionUrn string) string { 19 return listURL(c, functionUrn) 20 } 21 22 func deleteURL(c *golangsdk.ServiceClient, functionUrn, triggerTypeCode, triggerId string) string { 23 return resourceURL(c, functionUrn, triggerTypeCode, triggerId) 24 } 25 26 func resourceURL(c *golangsdk.ServiceClient, functionUrn, triggerTypeCode, triggerId string) string { 27 return c.ServiceURL(FGS, TRIGGER, functionUrn, triggerTypeCode, triggerId) 28 }