urls.go 684 B

1234567891011121314151617181920212223242526
  1. package policies
  2. import "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  3. const policyPath = "policies"
  4. func listURL(client *gophercloud.ServiceClient) string {
  5. return client.ServiceURL(policyPath)
  6. }
  7. func createURL(client *gophercloud.ServiceClient) string {
  8. return client.ServiceURL(policyPath)
  9. }
  10. func getURL(client *gophercloud.ServiceClient, policyID string) string {
  11. return client.ServiceURL(policyPath, policyID)
  12. }
  13. func updateURL(client *gophercloud.ServiceClient, policyID string) string {
  14. return client.ServiceURL(policyPath, policyID)
  15. }
  16. func deleteURL(client *gophercloud.ServiceClient, policyID string) string {
  17. return client.ServiceURL(policyPath, policyID)
  18. }