blob: f59cafc425c2cdcfb64cbe730f7cce6e5d80093d [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
10func 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}