urls.go 704 B

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