blob: 03f080d445b9cad67685b6365f779fca80074a2a [file] [log] [blame]
Jon Perritta065da12015-02-06 10:20:16 -07001package stackresources
2
3import (
4 "github.com/rackspace/gophercloud"
5 os "github.com/rackspace/gophercloud/openstack/orchestration/v1/stackresources"
6 "github.com/rackspace/gophercloud/pagination"
7)
8
9// Find retreives stack resources 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// Get retreives data for the given stack resource.
20func Get(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) os.GetResult {
21 return os.Get(c, stackName, stackID, resourceName)
22}
23
24// Metadata retreives the metadata for the given stack resource.
25func Metadata(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) os.MetadataResult {
26 return os.Metadata(c, stackName, stackID, resourceName)
27}
28
29// ListTypes makes a request against the API to list resource types.
30func ListTypes(c *gophercloud.ServiceClient) pagination.Pager {
31 return os.ListTypes(c)
32}