github.com/gophercloud/gophercloud@v1.11.0/openstack/containerinfra/v1/clustertemplates/urls.go (about)

     1  package clustertemplates
     2  
     3  import (
     4  	"github.com/gophercloud/gophercloud"
     5  )
     6  
     7  var apiName = "clustertemplates"
     8  
     9  func commonURL(client *gophercloud.ServiceClient) string {
    10  	return client.ServiceURL(apiName)
    11  }
    12  
    13  func idURL(client *gophercloud.ServiceClient, id string) string {
    14  	return client.ServiceURL(apiName, id)
    15  }
    16  
    17  func createURL(client *gophercloud.ServiceClient) string {
    18  	return commonURL(client)
    19  }
    20  
    21  func deleteURL(client *gophercloud.ServiceClient, id string) string {
    22  	return idURL(client, id)
    23  }
    24  
    25  func listURL(client *gophercloud.ServiceClient) string {
    26  	return commonURL(client)
    27  }
    28  
    29  func getURL(client *gophercloud.ServiceClient, id string) string {
    30  	return idURL(client, id)
    31  }
    32  
    33  func updateURL(client *gophercloud.ServiceClient, id string) string {
    34  	return idURL(client, id)
    35  }