blob: bbddc69cbcda540ba6a024c68318a129d1dace26 [file] [log] [blame]
Jon Perritt3711cd02014-12-22 22:20:15 -07001package stackresources
2
Jon Perritt27249f42016-02-18 10:35:59 -06003import "github.com/gophercloud/gophercloud"
Jon Perritt3711cd02014-12-22 22:20:15 -07004
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}