blob: bac8788ff94bb25f5e03d13e256833670a1db3f1 [file] [log] [blame]
Jamie Hannaford984e9172015-02-13 14:34:03 +01001package users
2
3import "github.com/rackspace/gophercloud"
4
5func baseURL(c *gophercloud.ServiceClient, instanceID string) string {
6 return c.ServiceURL("instances", instanceID, "users")
7}
8
9func userURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
10 return c.ServiceURL("instances", instanceID, "users", userName)
11}
12
13func dbsURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
14 return c.ServiceURL("instances", instanceID, "users", userName, "databases")
15}
16
17func dbURL(c *gophercloud.ServiceClient, instanceID, userName, dbName string) string {
18 return c.ServiceURL("instances", instanceID, "users", userName, "databases", dbName)
19}