blob: 52be73e8f503103b490e291048a843ed0ec6927f [file] [log] [blame]
Ash Wilson01626a32014-09-17 10:38:07 -04001package servers
2
3import "github.com/rackspace/gophercloud"
4
Ash Wilson31f6bde2014-09-25 14:52:12 -04005func listURL(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 Wilson31f6bde2014-09-25 14:52:12 -04009func detailURL(client *gophercloud.ServiceClient) string {
Ash Wilsondc7daa82014-09-23 16:34:42 -040010 return client.ServiceURL("servers", "detail")
Ash Wilson01626a32014-09-17 10:38:07 -040011}
12
Ash Wilson31f6bde2014-09-25 14:52:12 -040013func serverURL(client *gophercloud.ServiceClient, id string) string {
Ash Wilson01626a32014-09-17 10:38:07 -040014 return client.ServiceURL("servers", id)
15}
16
Ash Wilson31f6bde2014-09-25 14:52:12 -040017func actionURL(client *gophercloud.ServiceClient, id string) string {
Ash Wilson01626a32014-09-17 10:38:07 -040018 return client.ServiceURL("servers", id, "action")
19}