blob: 6f310be4e8168b421cee11b5ee77deae0365d9e1 [file] [log] [blame]
package publicips
import "github.com/rackspace/gophercloud"
var root = "public_ips"
func listURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(root)
}
func createURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(root)
}
func listForServerURL(c *gophercloud.ServiceClient, serverID string) string {
return c.ServiceURL(root + "?cloud_server_id=" + serverID)
}
func getURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL(root, id)
}
func deleteURL(c *gophercloud.ServiceClient, id string) string {
return getURL(c, id)
}