Jon Perritt | a065da1 | 2015-02-06 10:20:16 -0700 | [diff] [blame^] | 1 | package stackresources |
| 2 | |
| 3 | import ( |
| 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. |
| 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 | // Get retreives data for the given stack resource. |
| 20 | func 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. |
| 25 | func 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. |
| 30 | func ListTypes(c *gophercloud.ServiceClient) pagination.Pager { |
| 31 | return os.ListTypes(c) |
| 32 | } |