Documentation
¶
Index ¶
- func List(client *gophercloud.ServiceClient) pagination.Pager
- type Capabilities
- type Capability
- type CapabilityParam
- type Datastore
- type DatastoreShort
- type GetResult
- type ListCapabilitiesResult
- type ListParametersResult
- type Page
- type Param
- type ParametersResp
- type ParametersRespOpts
- type Params
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List will list all available datastores that instances can use.
Types ¶
type Capabilities ¶
type Capabilities struct {
Capabilities []Capability `json:"capabilities"`
}
Capabilities represents a object containing all datastore capabilities.
type Capability ¶
type Capability struct { Name string `json:"name"` Description string `json:"description"` Status string `json:"status"` Params map[string]*CapabilityParam `json:"params"` ShouldBeOnMaster bool `json:"should_be_on_master"` AllowUpgradeFromBackup bool `json:"allow_upgrade_from_backup"` AllowMajorUpgrade bool `json:"allow_major_upgrade"` }
Capability represents a Datastore capability.
type CapabilityParam ¶
type CapabilityParam struct { Required bool `json:"required"` Type string `json:"type"` ElementType string `json:"element_type"` EnumValues []string `json:"enum_values"` DefaultValue interface{} `json:"default_value"` // workaround since there's bug in API response MinValue float64 `json:"min"` MaxValue float64 `json:"max"` Regex string `json:"regex"` Masked bool `json:"masked"` }
CapabilityParam represents a parameter of a Datastore capability.
type Datastore ¶
type Datastore struct { Name string `json:"name"` ID string `json:"id"` MinimumCPU int `json:"minimum_cpu"` MinimumRAM int `json:"minimum_ram"` Versions []Version `json:"versions"` VolumeTypes []string `json:"volume_types"` ClusterVolumeTypes []string `json:"cluster_volume_types"` }
Datastore represents a Datastore API resource.
func ExtractDatastores ¶
func ExtractDatastores(r pagination.Page) ([]Datastore, error)
ExtractDatastores retrieves a slice of dataStore structs from a paginated collection.
type DatastoreShort ¶
type GetResult ¶
type GetResult struct {
gophercloud.Result
}
GetResult represents the result of a dataStoreGet operation.
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) (r GetResult)
Get will retrieve the details of a specified datastore type.
type ListCapabilitiesResult ¶
type ListCapabilitiesResult struct {
gophercloud.Result
}
ListCapabilitiesResult represents the result of ListCapabilities operation.
func ListCapabilities ¶
func ListCapabilities(client *gophercloud.ServiceClient, dsType string, versionID string) (r ListCapabilitiesResult)
func (ListCapabilitiesResult) Extract ¶
func (r ListCapabilitiesResult) Extract() ([]Capability, error)
type ListParametersResult ¶
type ListParametersResult struct {
gophercloud.Result
}
ListParametersResult represents the result of ListParameters operation.
func ListParameters ¶
func ListParameters(client *gophercloud.ServiceClient, dsType string, versionID string) (r ListParametersResult)
dataStoreListParameters will list all available configuration parameters for a specific version of a datastore.
func (ListParametersResult) Extract ¶
func (r ListParametersResult) Extract() ([]Param, error)
type Page ¶
type Page struct {
pagination.SinglePageBase
}
Page represents a page of datastore resources.
type Param ¶
type Param struct { Name string `json:"name"` Type string `json:"type"` MinValue float64 `json:"min"` MaxValue float64 `json:"max"` RestartRequried bool `json:"restart_required"` }
Param represents a configuration parameter supported by a datastore
type ParametersResp ¶
type ParametersRespOpts ¶
type ParametersRespOpts struct {
ConfigurationParameters []ParametersRespOpts `json:"configuration-parameters"`
}