1234567891011121314151617181920212223242526272829303132 |
- package networks
- import "devel.mephi.ru/iacherepanov/openstack-gophercloud"
- func resourceURL(c *gophercloud.ServiceClient, id string) string {
- return c.ServiceURL("networks", id)
- }
- func rootURL(c *gophercloud.ServiceClient) string {
- return c.ServiceURL("networks")
- }
- func getURL(c *gophercloud.ServiceClient, id string) string {
- return resourceURL(c, id)
- }
- func listURL(c *gophercloud.ServiceClient) string {
- return rootURL(c)
- }
- func createURL(c *gophercloud.ServiceClient) string {
- return rootURL(c)
- }
- func updateURL(c *gophercloud.ServiceClient, id string) string {
- return resourceURL(c, id)
- }
- func deleteURL(c *gophercloud.ServiceClient, id string) string {
- return resourceURL(c, id)
- }
|