Documentation
¶
Index ¶
- func ConfigureAutoExpansion(client *golangsdk.ServiceClient, opts DiskAutoExpansionOpts) error
- func RenameInstance(client *golangsdk.ServiceClient, opts RenameInstanceOpts) error
- func ResetPassword(client *golangsdk.ServiceClient, opts ResetPasswordOpts) error
- func ResizeInstance(client *golangsdk.ServiceClient, opts ResizeInstanceOpts) (string, error)
- type AutoEnlargePolicy
- type BackupStrategy
- type BackupStrategyOpt
- type ChangeSecGroupOpts
- type ChangeSecGroupResp
- type CreateOpts
- type CreateResp
- type DataStore
- type DataStoreOpt
- type DeleteResponse
- type DiskAutoExpansionOpts
- type DiskAutoExpansionPolicy
- type EnlargeNodeOpts
- type EnlargeNodeResponse
- type ExtendVolumeOpts
- type ExtendVolumeResponse
- type Flavor
- type FlavorOpt
- type GetAutoExpansionResponse
- type ListBackupStrategyResult
- type ListDatastoreResult
- type ListGeminiDBOpts
- type ListGroupResult
- type ListNodeResult
- type ListResult
- type ReduceNodeOpts
- type ReduceNodeResponse
- type RenameInstanceOpts
- type ResetPasswordOpts
- type ResizeInstanceOpts
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureAutoExpansion ¶
func ConfigureAutoExpansion(client *golangsdk.ServiceClient, opts DiskAutoExpansionOpts) error
func RenameInstance ¶
func RenameInstance(client *golangsdk.ServiceClient, opts RenameInstanceOpts) error
func ResetPassword ¶
func ResetPassword(client *golangsdk.ServiceClient, opts ResetPasswordOpts) error
func ResizeInstance ¶
func ResizeInstance(client *golangsdk.ServiceClient, opts ResizeInstanceOpts) (string, error)
Types ¶
type AutoEnlargePolicy ¶
type BackupStrategy ¶
type BackupStrategyOpt ¶
type ChangeSecGroupOpts ¶
type ChangeSecGroupResp ¶
type ChangeSecGroupResp struct {
JobId string `json:"job_id"`
}
func ChangeSecGroup ¶
func ChangeSecGroup(client *golangsdk.ServiceClient, opts ChangeSecGroupOpts) (*ChangeSecGroupResp, error)
type CreateOpts ¶
type CreateOpts struct {
Name string `json:"name" required:"true"`
DataStore DataStoreOpt `json:"datastore" required:"true"`
Region string `json:"region" required:"true"`
AvailabilityZone string `json:"availability_zone" required:"true"`
VpcId string `json:"vpc_id" required:"true"`
SubnetId string `json:"subnet_id" required:"true"`
SecurityGroupId string `json:"security_group_id" required:"true"`
Password string `json:"password" required:"true"`
Mode string `json:"mode" required:"true"`
Flavor []FlavorOpt `json:"flavor" required:"true"`
ConfigurationId string `json:"configuration_id,omitempty"`
BackupStrategy *BackupStrategyOpt `json:"backup_strategy,omitempty"`
EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
SslOption *string `json:"ssl_option,omitempty"`
}
type CreateResp ¶
type CreateResp struct {
Id string `json:"id"`
Name string `json:"name"`
DataStore DataStore `json:"datastore"`
Created string `json:"created"`
Status string `json:"status"`
Region string `json:"region"`
AvailabilityZone string `json:"availability_zone"`
VpcId string `json:"vpc_id"`
SubnetId string `json:"subnet_id"`
SecurityGroupId string `json:"security_group_id"`
Mode string `json:"mode"`
Flavor []Flavor `json:"flavor"`
BackupStrategy BackupStrategy `json:"backup_strategy"`
SslOption string `json:"ssl_option"`
JobId string `json:"job_id"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*CreateResp, error)
type DataStoreOpt ¶
type DeleteResponse ¶
type DeleteResponse struct {
JobId string `json:"job_id"`
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, instanceID string) (*DeleteResponse, error)
type DiskAutoExpansionOpts ¶
type DiskAutoExpansionOpts struct {
InstanceIds []string `json:"instance_ids" required:"true"`
SwitchOption string `json:"switch_option,omitempty"`
Policy *DiskAutoExpansionPolicy `json:"policy,omitempty"`
}
type DiskAutoExpansionPolicy ¶
type EnlargeNodeOpts ¶
type EnlargeNodeResponse ¶
type EnlargeNodeResponse struct {
JobId string `json:"job_id"`
}
func EnlargeNode ¶
func EnlargeNode(client *golangsdk.ServiceClient, opts EnlargeNodeOpts) (*EnlargeNodeResponse, error)
type ExtendVolumeOpts ¶
type ExtendVolumeResponse ¶
type ExtendVolumeResponse struct {
JobId string `json:"job_id"`
}
func ExtendVolume ¶
func ExtendVolume(client *golangsdk.ServiceClient, opts ExtendVolumeOpts) (*ExtendVolumeResponse, error)
type GetAutoExpansionResponse ¶
type GetAutoExpansionResponse struct {
Policy *AutoEnlargePolicy `json:"policy"`
}
func GetAutoExpansion ¶
func GetAutoExpansion(client *golangsdk.ServiceClient, instanceId string) (*GetAutoExpansionResponse, error)
type ListDatastoreResult ¶
type ListGeminiDBOpts ¶
type ListGroupResult ¶
type ListGroupResult struct {
Id string `json:"id"`
Status string `json:"status"`
Volume Volume `json:"volume"`
Nodes []ListNodeResult `json:"nodes"`
}
type ListNodeResult ¶
type ListNodeResult struct {
Id string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
SubnetId string `json:"subnet_id"`
PrivateIp string `json:"private_ip"`
PublicIp string `json:"public_ip"`
SpecCode string `json:"spec_code"`
AvailabilityZone string `json:"availability_zone"`
SupportReduce bool `json:"support_reduce"`
}
type ListResult ¶
type ListResult struct {
Id string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Port string `json:"port"`
Mode string `json:"mode"`
Region string `json:"region"`
DataStore ListDatastoreResult `json:"datastore"`
Engine string `json:"engine"`
Created string `json:"created"`
Updated string `json:"updated"`
DbUserName string `json:"db_user_name"`
VpcId string `json:"vpc_id"`
SubnetId string `json:"subnet_id"`
SecurityGroupId string `json:"security_group_id"`
BackupStrategy ListBackupStrategyResult `json:"backup_strategy"`
PayMode string `json:"pay_mode"`
MaintenanceWindow string `json:"maintenance_window"`
Groups []ListGroupResult `json:"groups"`
EnterpriseProjectId string `json:"enterprise_project_id"`
TimeZone string `json:"time_zone"`
Actions []string `json:"actions"`
}
func ListGeminiDB ¶
func ListGeminiDB(client *golangsdk.ServiceClient, opts ListGeminiDBOpts) ([]ListResult, error)
type ReduceNodeOpts ¶
type ReduceNodeResponse ¶
type ReduceNodeResponse struct {
JobId string `json:"job_id"`
}
func ReduceNode ¶
func ReduceNode(client *golangsdk.ServiceClient, opts ReduceNodeOpts) (*ReduceNodeResponse, error)
type RenameInstanceOpts ¶
type ResetPasswordOpts ¶
type ResizeInstanceOpts ¶
Click to show internal directories.
Click to hide internal directories.