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

     1  package stackresources
     2  
     3  import "github.com/gophercloud/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  }
    32  
    33  func markUnhealthyURL(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) string {
    34  	return c.ServiceURL("stacks", stackName, stackID, "resources", resourceName)
    35  }