blob: 7cfda3916f48735039f57b8a6056b6657c00bdd6 [file] [log] [blame]
Ash Wilson01626a32014-09-17 10:38:07 -04001package servers
2
3import "github.com/rackspace/gophercloud"
4
5func getListURL(client *gophercloud.ServiceClient) string {
Ash Wilsondc7daa82014-09-23 16:34:42 -04006 return client.ServiceURL("servers")
Ash Wilson01626a32014-09-17 10:38:07 -04007}
8
Ash Wilsondc7daa82014-09-23 16:34:42 -04009func getDetailURL(client *gophercloud.ServiceClient) string {
10 return client.ServiceURL("servers", "detail")
Ash Wilson01626a32014-09-17 10:38:07 -040011}
12
13func getServerURL(client *gophercloud.ServiceClient, id string) string {
14 return client.ServiceURL("servers", id)
15}
16
17func getActionURL(client *gophercloud.ServiceClient, id string) string {
18 return client.ServiceURL("servers", id, "action")
19}