blob: 6f310be4e8168b421cee11b5ee77deae0365d9e1 [file] [log] [blame]
Jon Perrittb55847b2015-03-17 20:43:48 -06001package publicips
2
3import "github.com/rackspace/gophercloud"
4
5var root = "public_ips"
6
7func listURL(c *gophercloud.ServiceClient) string {
8 return c.ServiceURL(root)
9}
10
11func createURL(c *gophercloud.ServiceClient) string {
12 return c.ServiceURL(root)
13}
14
15func listForServerURL(c *gophercloud.ServiceClient, serverID string) string {
16 return c.ServiceURL(root + "?cloud_server_id=" + serverID)
17}
18
19func getURL(c *gophercloud.ServiceClient, id string) string {
20 return c.ServiceURL(root, id)
21}
22
23func deleteURL(c *gophercloud.ServiceClient, id string) string {
24 return getURL(c, id)
25}