Jamie Hannaford | 52dbcee | 2015-10-06 16:09:56 +0200 | [diff] [blame^] | 1 | package datastores |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/db/v1/datastores" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
| 9 | // List will list all available flavors. |
| 10 | func List(client *gophercloud.ServiceClient) pagination.Pager { |
| 11 | return os.List(client) |
| 12 | } |
| 13 | |
| 14 | // Get retrieves the details for a particular flavor. |
| 15 | func Get(client *gophercloud.ServiceClient, flavorID string) os.GetResult { |
| 16 | return os.Get(client, flavorID) |
| 17 | } |
| 18 | |
| 19 | // ListVersions will list all of the available versions for a specified |
| 20 | // datastore type. |
| 21 | func ListVersions(client *gophercloud.ServiceClient, datastoreID string) pagination.Pager { |
| 22 | return os.ListVersions(client, datastoreID) |
| 23 | } |
| 24 | |
| 25 | // GetVersion will retrieve the details of a specified datastore version. |
| 26 | func GetVersion(client *gophercloud.ServiceClient, datastoreID, versionID string) os.GetVersionResult { |
| 27 | return os.GetVersion(client, datastoreID, versionID) |
| 28 | } |