Documentation
¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, configId string) error
- func Update(client *golangsdk.ServiceClient, opts UpdateOpts) error
- type ApplyOpts
- type ApplyResp
- type Configuration
- type ConfigurationPage
- type ConfigurationResult
- type CreateOpts
- type DataStoreOpt
- type GetResponse
- type InstanceParameterResult
- type ListOpts
- type ParameterResponse
- type UpdateOpts
- type UpdateParametersOpts
- type UpdateParametersResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Update ¶
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) error
Types ¶
type Configuration ¶
type Configuration struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
DataStoreVersionName string `json:"datastore_version_name"`
DataStoreName string `json:"datastore_name"`
Created string `json:"created"`
Updated string `json:"updated"`
Mode string `json:"mode"`
UserDefined bool `json:"user_defined"`
}
func ExtractConfigurations ¶
func ExtractConfigurations(r pagination.NewPage) ([]Configuration, error)
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) ([]Configuration, error)
type ConfigurationPage ¶
type ConfigurationPage struct {
pagination.NewSinglePageBase
}
type ConfigurationResult ¶
type ConfigurationResult struct {
Id string `json:"id"`
Name string `json:"name"`
DataStoreVersionName string `json:"datastore_version_name"`
DataStoreName string `json:"datastore_name"`
Description string `json:"description"`
Created string `json:"created"`
Updated string `json:"updated"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*ConfigurationResult, error)
type CreateOpts ¶
type CreateOpts struct {
Name string `json:"name" required:"true"`
Description string `json:"description,omitempty"`
Values map[string]string `json:"values,omitempty"`
DataStore DataStoreOpt `json:"datastore" required:"true"`
}
type DataStoreOpt ¶
type GetResponse ¶
type GetResponse struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
DataStoreVersionName string `json:"datastore_version_name"`
DataStoreName string `json:"datastore_name"`
Created string `json:"created"`
Updated string `json:"updated"`
ConfigurationParameters []InstanceParameterResult `json:"configuration_parameters"`
}
func Get ¶
func Get(client *golangsdk.ServiceClient, configId string) (*GetResponse, error)
type InstanceParameterResult ¶
type ParameterResponse ¶
type ParameterResponse struct {
DataStoreVersionName string `json:"datastore_version_name"`
DataStoreName string `json:"datastore_name"`
Created string `json:"created"`
Updated string `json:"updated"`
Id string `json:"id"`
Mode string `json:"mode"`
ConfigurationParameters []InstanceParameterResult `json:"configuration_parameters"`
}
func GetInstanceParameters ¶
func GetInstanceParameters(client *golangsdk.ServiceClient, instanceId string) (*ParameterResponse, error)
type UpdateOpts ¶
type UpdateParametersOpts ¶
type UpdateParametersResp ¶
type UpdateParametersResp struct {
JobId string `json:"job_id"`
RestartRequired bool `json:"restart_required"`
}
func UpdateInstanceParameters ¶
func UpdateInstanceParameters(client *golangsdk.ServiceClient, opts UpdateParametersOpts) (*UpdateParametersResp, error)
Click to show internal directories.
Click to hide internal directories.