blob: 65d843b9b62321c37fbe4e322b1522bdf6795676 [file] [log] [blame]
Jon Perritt24270c42014-10-21 21:11:04 -05001package networks
2
3import "github.com/rackspace/gophercloud"
4
5func resourceURL(c *gophercloud.ServiceClient, id string) string {
6 return c.ServiceURL("os-networksv2", id)
7}
8
9func rootURL(c *gophercloud.ServiceClient) string {
10 return c.ServiceURL("networks")
11}
12
13func getURL(c *gophercloud.ServiceClient, id string) string {
14 return resourceURL(c, id)
15}
16
17func listURL(c *gophercloud.ServiceClient) string {
18 return rootURL(c)
19}
20
21func createURL(c *gophercloud.ServiceClient) string {
22 return rootURL(c)
23}
24
25func deleteURL(c *gophercloud.ServiceClient, id string) string {
26 return resourceURL(c, id)
27}