github.com/gophercloud/gophercloud@v1.11.0/openstack/orchestration/v1/stacks/urls.go (about)

     1  package stacks
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func createURL(c *gophercloud.ServiceClient) string {
     6  	return c.ServiceURL("stacks")
     7  }
     8  
     9  func adoptURL(c *gophercloud.ServiceClient) string {
    10  	return createURL(c)
    11  }
    12  
    13  func listURL(c *gophercloud.ServiceClient) string {
    14  	return createURL(c)
    15  }
    16  
    17  func getURL(c *gophercloud.ServiceClient, name, id string) string {
    18  	return c.ServiceURL("stacks", name, id)
    19  }
    20  
    21  func findURL(c *gophercloud.ServiceClient, identity string) string {
    22  	return c.ServiceURL("stacks", identity)
    23  }
    24  
    25  func updateURL(c *gophercloud.ServiceClient, name, id string) string {
    26  	return getURL(c, name, id)
    27  }
    28  
    29  func deleteURL(c *gophercloud.ServiceClient, name, id string) string {
    30  	return getURL(c, name, id)
    31  }
    32  
    33  func previewURL(c *gophercloud.ServiceClient) string {
    34  	return c.ServiceURL("stacks", "preview")
    35  }
    36  
    37  func abandonURL(c *gophercloud.ServiceClient, name, id string) string {
    38  	return c.ServiceURL("stacks", name, id, "abandon")
    39  }