urls.go 549 B

123456789101112131415161718192021222324
  1. package volumes
  2. import "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  3. func createURL(c *gophercloud.ServiceClient) string {
  4. return c.ServiceURL("volumes")
  5. }
  6. func listURL(c *gophercloud.ServiceClient) string {
  7. return c.ServiceURL("volumes", "detail")
  8. }
  9. func deleteURL(c *gophercloud.ServiceClient, id string) string {
  10. return c.ServiceURL("volumes", id)
  11. }
  12. func getURL(c *gophercloud.ServiceClient, id string) string {
  13. return deleteURL(c, id)
  14. }
  15. func updateURL(c *gophercloud.ServiceClient, id string) string {
  16. return deleteURL(c, id)
  17. }