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