Jon Perritt | 4107878 | 2015-02-08 21:13:39 -0700 | [diff] [blame] | 1 | package stackevents |
| 2 | |
| 3 | import ( |
| 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. |
| 10 | func 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. |
| 15 | func 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. |
| 20 | func 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. |
| 25 | func Get(c *gophercloud.ServiceClient, stackName, stackID, resourceName, eventID string) os.GetResult { |
| 26 | return os.Get(c, stackName, stackID, resourceName, eventID) |
| 27 | } |