Ash Wilson | 01626a3 | 2014-09-17 10:38:07 -0400 | [diff] [blame^] | 1 | package servers |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func getListURL(client *gophercloud.ServiceClient) string { |
| 6 | return client.ServiceURL("servers", "detail") |
| 7 | } |
| 8 | |
| 9 | func getCreateURL(client *gophercloud.ServiceClient) string { |
| 10 | return client.ServiceURL("servers") |
| 11 | } |
| 12 | |
| 13 | func getServerURL(client *gophercloud.ServiceClient, id string) string { |
| 14 | return client.ServiceURL("servers", id) |
| 15 | } |
| 16 | |
| 17 | func getActionURL(client *gophercloud.ServiceClient, id string) string { |
| 18 | return client.ServiceURL("servers", id, "action") |
| 19 | } |