blob: 8298c46056b55c885c3aa280136c2c072aaf8abb [file] [log] [blame]
Jamie Hannaford3c1796b2015-02-12 14:21:33 +01001package users
2
3import (
4 "github.com/rackspace/gophercloud"
5 os "github.com/rackspace/gophercloud/openstack/db/v1/users"
Jamie Hannaford3c1796b2015-02-12 14:21:33 +01006)
7
Jamie Hannafordb0d267b2015-02-19 11:59:53 +01008// Create will create a new database user for the specified database instance.
Jamie Hannaford3c1796b2015-02-12 14:21:33 +01009func Create(client *gophercloud.ServiceClient, instanceID string, opts os.CreateOptsBuilder) os.CreateResult {
10 return os.Create(client, instanceID, opts)
11}
12
Jamie Hannafordb0d267b2015-02-19 11:59:53 +010013// Delete will permanently remove a user from a specified database instance.
Jamie Hannaford3c1796b2015-02-12 14:21:33 +010014func Delete(client *gophercloud.ServiceClient, instanceID, userName string) os.DeleteResult {
15 return os.Delete(client, instanceID, userName)
16}