blob: 5dc469619e9aa37056cf732284e5d2fe37706a12 [file] [log] [blame]
Jamie Hannaford548d3402014-09-18 15:50:08 +02001package ports
2
3import "github.com/rackspace/gophercloud"
4
5const Version = "v2.0"
6
7func ResourceURL(c *gophercloud.ServiceClient, id string) string {
8 return c.ServiceURL(Version, "ports", id)
9}
10
11func RootURL(c *gophercloud.ServiceClient) string {
12 return c.ServiceURL(Version, "ports")
13}
14
15func ListURL(c *gophercloud.ServiceClient) string {
16 return RootURL(c)
17}
18
19func GetURL(c *gophercloud.ServiceClient, id string) string {
20 return ResourceURL(c, id)
21}
22
23func CreateURL(c *gophercloud.ServiceClient) string {
24 return RootURL(c)
25}
26
27func UpdateURL(c *gophercloud.ServiceClient, id string) string {
28 return ResourceURL(c, id)
29}
30
31func DeleteURL(c *gophercloud.ServiceClient, id string) string {
32 return ResourceURL(c, id)
33}