blob: 8b5eceb1704c2eb2766253b666aacc5458d9fb01 [file] [log] [blame]
Jon Perritt7cbb42c2015-02-08 21:13:08 -07001package stackevents
2
3import "github.com/rackspace/gophercloud"
4
5func findURL(c *gophercloud.ServiceClient, stackName string) string {
6 return c.ServiceURL("stacks", stackName, "events")
7}
8
9func listURL(c *gophercloud.ServiceClient, stackName, stackID string) string {
10 return c.ServiceURL("stacks", stackName, stackID, "events")
11}
12
13func listResourceEventsURL(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) string {
14 return c.ServiceURL("stacks", stackName, stackID, "resources", resourceName, "events")
15}
16
17func getURL(c *gophercloud.ServiceClient, stackName, stackID, resourceName, eventID string) string {
18 return c.ServiceURL("stacks", stackName, stackID, "resources", resourceName, "events", eventID)
19}