blob: a40160c54e57deca38acda9e7650a37f7489acd2 [file] [log] [blame]
Jamie Hannaford2a130242014-10-28 11:19:46 +01001package users
Jamie Hannafordb319d472014-10-29 10:57:22 +01002
3import "github.com/rackspace/gophercloud"
4
Jamie Hannaforde680e422014-10-29 14:55:57 +01005const (
6 tenantPath = "tenants"
7 userPath = "users"
8)
Jamie Hannafordb319d472014-10-29 10:57:22 +01009
Jamie Hannaford6e4d7952014-10-29 16:18:29 +010010func ResourceURL(c *gophercloud.ServiceClient, id string) string {
Jamie Hannaforde680e422014-10-29 14:55:57 +010011 return c.ServiceURL(userPath, id)
Jamie Hannafordb319d472014-10-29 10:57:22 +010012}
13
14func rootURL(c *gophercloud.ServiceClient) string {
Jamie Hannaforde680e422014-10-29 14:55:57 +010015 return c.ServiceURL(userPath)
16}
17
18func listRolesURL(c *gophercloud.ServiceClient, tenantID, userID string) string {
19 return c.ServiceURL(tenantPath, tenantID, userPath, userID)
Jamie Hannafordb319d472014-10-29 10:57:22 +010020}