urls.go 911 B

12345678910111213141516171819202122232425262728293031323334
  1. package objects
  2. import (
  3. "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  4. )
  5. func listURL(c *gophercloud.ServiceClient, container string) string {
  6. return c.ServiceURL(container)
  7. }
  8. func copyURL(c *gophercloud.ServiceClient, container, object string) string {
  9. return c.ServiceURL(container, object)
  10. }
  11. func createURL(c *gophercloud.ServiceClient, container, object string) string {
  12. return copyURL(c, container, object)
  13. }
  14. func getURL(c *gophercloud.ServiceClient, container, object string) string {
  15. return copyURL(c, container, object)
  16. }
  17. func deleteURL(c *gophercloud.ServiceClient, container, object string) string {
  18. return copyURL(c, container, object)
  19. }
  20. func downloadURL(c *gophercloud.ServiceClient, container, object string) string {
  21. return copyURL(c, container, object)
  22. }
  23. func updateURL(c *gophercloud.ServiceClient, container, object string) string {
  24. return copyURL(c, container, object)
  25. }