blob: 57587abca73faf54e3f1b330921acdbd7634e287 [file] [log] [blame]
Jamie Hannaford2aaf1a62014-10-16 12:55:50 +02001package servers
2
3import "github.com/rackspace/gophercloud"
4
5func createURL(client *gophercloud.ServiceClient) string {
6 return client.ServiceURL("servers")
7}
8
9func listURL(client *gophercloud.ServiceClient) string {
10 return createURL(client)
11}
12
13func listDetailURL(client *gophercloud.ServiceClient) string {
14 return client.ServiceURL("servers", "detail")
15}
16
17func deleteURL(client *gophercloud.ServiceClient, id string) string {
18 return client.ServiceURL("servers", id)
19}
20
21func getURL(client *gophercloud.ServiceClient, id string) string {
22 return deleteURL(client, id)
23}
24
25func updateURL(client *gophercloud.ServiceClient, id string) string {
26 return deleteURL(client, id)
27}
28
29func actionURL(client *gophercloud.ServiceClient, id string) string {
30 return client.ServiceURL("servers", id, "action")
31}