blob: 4a8e4fa3c8c12383a41d328584ea858a5472c8ec [file] [log] [blame]
Jon Perritt35e27e42014-12-05 11:10:46 -07001package stacks
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Jon Perritt35e27e42014-12-05 11:10:46 -07004
5func createURL(c *gophercloud.ServiceClient) string {
6 return c.ServiceURL("stacks")
7}
8
9func adoptURL(c *gophercloud.ServiceClient) string {
10 return createURL(c)
11}
12
13func listURL(c *gophercloud.ServiceClient) string {
14 return createURL(c)
15}
16
17func getURL(c *gophercloud.ServiceClient, name, id string) string {
18 return c.ServiceURL("stacks", name, id)
19}
20
21func updateURL(c *gophercloud.ServiceClient, name, id string) string {
22 return getURL(c, name, id)
23}
24
25func deleteURL(c *gophercloud.ServiceClient, name, id string) string {
26 return getURL(c, name, id)
27}
28
29func previewURL(c *gophercloud.ServiceClient) string {
30 return c.ServiceURL("stacks", "preview")
31}
32
33func abandonURL(c *gophercloud.ServiceClient, name, id string) string {
34 return c.ServiceURL("stacks", name, id, "abandon")
35}