blob: ef078d9c9b4dc7aada384247b6cbbbdb4a273ecf [file] [log] [blame]
Jon Perritt3711cd02014-12-22 22:20:15 -07001package stackresources
2
3import "github.com/rackspace/gophercloud"
4
5func findURL(c *gophercloud.ServiceClient, stackName string) string {
6 return c.ServiceURL("stacks", stackName, "resources")
7}
8
9func listURL(c *gophercloud.ServiceClient, stackName, stackID string) string {
10 return c.ServiceURL("stacks", stackName, stackID, "resources")
11}
12
13func getURL(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) string {
14 return c.ServiceURL("stacks", stackName, stackID, "resources", resourceName)
15}
16
17func metadataURL(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) string {
18 return c.ServiceURL("stacks", stackName, stackID, "resources", resourceName, "metadata")
19}
20
21func listTypesURL(c *gophercloud.ServiceClient) string {
22 return c.ServiceURL("resource_types")
23}
24
25func schemaURL(c *gophercloud.ServiceClient, typeName string) string {
26 return c.ServiceURL("resource_types", typeName)
27}
28
29func templateURL(c *gophercloud.ServiceClient, typeName string) string {
30 return c.ServiceURL("resource_types", typeName, "template")
31}