blob: cb7be28b78ae158393f26e85d4e904cb4a5c3f54 [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}
Jon Perritt1d4aca02015-02-06 12:29:16 -070033
34// Schema retreives the schema for the given resource type.
35func Schema(c *gophercloud.ServiceClient, resourceType string) os.SchemaResult {
36 return os.Schema(c, resourceType)
37}
Jon Perrittb1e303a2015-02-06 22:15:44 -070038
39// Template retreives the template representation for the given resource type.
40func Template(c *gophercloud.ServiceClient, resourceType string) os.TemplateResult {
41 return os.Template(c, resourceType)
42}