blob: 4f817ae9af47d4f89b7a35a08015730fe4b09530 [file] [log] [blame]
Jon Perritt3711cd02014-12-22 22:20:15 -07001package stackresources
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
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}