Jamie Hannaford | 3c1796b | 2015-02-12 14:21:33 +0100 | [diff] [blame] | 1 | package users |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/db/v1/users" |
Jamie Hannaford | 3c1796b | 2015-02-12 14:21:33 +0100 | [diff] [blame] | 6 | ) |
| 7 | |
Jamie Hannaford | b0d267b | 2015-02-19 11:59:53 +0100 | [diff] [blame] | 8 | // Create will create a new database user for the specified database instance. |
Jamie Hannaford | 3c1796b | 2015-02-12 14:21:33 +0100 | [diff] [blame] | 9 | func Create(client *gophercloud.ServiceClient, instanceID string, opts os.CreateOptsBuilder) os.CreateResult { |
| 10 | return os.Create(client, instanceID, opts) |
| 11 | } |
| 12 | |
Jamie Hannaford | b0d267b | 2015-02-19 11:59:53 +0100 | [diff] [blame] | 13 | // Delete will permanently remove a user from a specified database instance. |
Jamie Hannaford | 3c1796b | 2015-02-12 14:21:33 +0100 | [diff] [blame] | 14 | func Delete(client *gophercloud.ServiceClient, instanceID, userName string) os.DeleteResult { |
| 15 | return os.Delete(client, instanceID, userName) |
| 16 | } |