github.com/gophercloud/gophercloud@v1.11.0/openstack/identity/v3/policies/urls.go (about) 1 package policies 2 3 import "github.com/gophercloud/gophercloud" 4 5 const policyPath = "policies" 6 7 func listURL(client *gophercloud.ServiceClient) string { 8 return client.ServiceURL(policyPath) 9 } 10 11 func createURL(client *gophercloud.ServiceClient) string { 12 return client.ServiceURL(policyPath) 13 } 14 15 func getURL(client *gophercloud.ServiceClient, policyID string) string { 16 return client.ServiceURL(policyPath, policyID) 17 } 18 19 func updateURL(client *gophercloud.ServiceClient, policyID string) string { 20 return client.ServiceURL(policyPath, policyID) 21 } 22 23 func deleteURL(client *gophercloud.ServiceClient, policyID string) string { 24 return client.ServiceURL(policyPath, policyID) 25 }