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