github.com/gophercloud/gophercloud@v1.11.0/openstack/identity/v2/tenants/urls.go (about)

     1  package tenants
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func listURL(client *gophercloud.ServiceClient) string {
     6  	return client.ServiceURL("tenants")
     7  }
     8  
     9  func getURL(client *gophercloud.ServiceClient, tenantID string) string {
    10  	return client.ServiceURL("tenants", tenantID)
    11  }
    12  
    13  func createURL(client *gophercloud.ServiceClient) string {
    14  	return client.ServiceURL("tenants")
    15  }
    16  
    17  func deleteURL(client *gophercloud.ServiceClient, tenantID string) string {
    18  	return client.ServiceURL("tenants", tenantID)
    19  }
    20  
    21  func updateURL(client *gophercloud.ServiceClient, tenantID string) string {
    22  	return client.ServiceURL("tenants", tenantID)
    23  }