blob: 573496d3827e91ef5bf170e2c05d5ef8ea699696 [file] [log] [blame]
Jamie Hannaford52dbcee2015-10-06 16:09:56 +02001package datastores
2
3import (
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.
10func List(client *gophercloud.ServiceClient) pagination.Pager {
11 return os.List(client)
12}
13
14// Get retrieves the details for a particular flavor.
15func 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.
21func 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.
26func GetVersion(client *gophercloud.ServiceClient, datastoreID, versionID string) os.GetVersionResult {
27 return os.GetVersion(client, datastoreID, versionID)
28}