blob: 08675deac779a24101162c87d575f4c5951bd39b [file] [log] [blame]
Jon Perritt41078782015-02-08 21:13:39 -07001package stackevents
2
3import (
4 "github.com/rackspace/gophercloud"
5 os "github.com/rackspace/gophercloud/openstack/orchestration/v1/stackevents"
6 "github.com/rackspace/gophercloud/pagination"
7)
8
9// Find retreives stack events for the given stack name.
10func Find(c *gophercloud.ServiceClient, stackName string) os.FindResult {
11 return os.Find(c, stackName)
12}
13
14// List makes a request against the API to list resources for the given stack.
15func List(c *gophercloud.ServiceClient, stackName, stackID string, opts os.ListOptsBuilder) pagination.Pager {
16 return os.List(c, stackName, stackID, opts)
17}
18
19// ListResourceEvents makes a request against the API to list resources for the given stack.
20func ListResourceEvents(c *gophercloud.ServiceClient, stackName, stackID, resourceName string, opts os.ListResourceEventsOptsBuilder) pagination.Pager {
21 return os.ListResourceEvents(c, stackName, stackID, resourceName, opts)
22}
23
24// Get retreives data for the given stack resource.
25func Get(c *gophercloud.ServiceClient, stackName, stackID, resourceName, eventID string) os.GetResult {
26 return os.Get(c, stackName, stackID, resourceName, eventID)
27}