blob: bac8788ff94bb25f5e03d13e256833670a1db3f1 [file] [log] [blame]
package users
import "github.com/rackspace/gophercloud"
func baseURL(c *gophercloud.ServiceClient, instanceID string) string {
return c.ServiceURL("instances", instanceID, "users")
}
func userURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
return c.ServiceURL("instances", instanceID, "users", userName)
}
func dbsURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
return c.ServiceURL("instances", instanceID, "users", userName, "databases")
}
func dbURL(c *gophercloud.ServiceClient, instanceID, userName, dbName string) string {
return c.ServiceURL("instances", instanceID, "users", userName, "databases", dbName)
}