Documentation ¶
Index ¶
- func List(client *golangsdk.ServiceClient, opts ListGeminiDBBuilder) pagination.Pager
- func ListDeh(client *golangsdk.ServiceClient) pagination.Pager
- type BackupStrategy
- type BackupStrategyOpt
- type Capacity
- type ChargeInfoOpt
- type CreateGeminiDBBuilder
- type CreateGeminiDBOpts
- type CreateResponse
- type CreateResult
- type DataStore
- type DehResource
- type DehResourcePage
- type DeleteResponse
- type DeleteResult
- type EnlargeNodeBuilder
- type EnlargeNodeOpts
- type ExtendResponse
- type ExtendResult
- func EnlargeNode(client *golangsdk.ServiceClient, instanceId string, opts EnlargeNodeBuilder) (r ExtendResult)
- func ExtendVolume(client *golangsdk.ServiceClient, instanceId string, opts ExtendVolumeBuilder) (r ExtendResult)
- func ReduceNode(client *golangsdk.ServiceClient, instanceId string, opts ReduceNodeBuilder) (r ExtendResult)
- func Resize(client *golangsdk.ServiceClient, instanceId string, opts ResizeBuilder) (r ExtendResult)
- func UpdateSg(client *golangsdk.ServiceClient, instanceId string, opts UpdateSgBuilder) (r ExtendResult)
- type ExtendVolumeBuilder
- type ExtendVolumeOpts
- type Flavor
- type FlavorOpt
- type GeminiDBBase
- type GeminiDBInstance
- type GeminiDBPage
- type Groups
- type ListDehResponse
- type ListGeminiDBBuilder
- type ListGeminiDBInstanceOpts
- type ListGeminiDBResponse
- type ListGeminiDBResult
- type Nodes
- type ReduceNodeBuilder
- type ReduceNodeOpts
- type ResizeBuilder
- type ResizeOpt
- type ResizeOpts
- type UpdateNameBuilder
- type UpdateNameOpts
- type UpdatePassBuilder
- type UpdatePassOpts
- type UpdateResult
- type UpdateSgBuilder
- type UpdateSgOpts
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *golangsdk.ServiceClient, opts ListGeminiDBBuilder) pagination.Pager
func ListDeh ¶
func ListDeh(client *golangsdk.ServiceClient) pagination.Pager
Types ¶
type BackupStrategy ¶
type BackupStrategyOpt ¶
type ChargeInfoOpt ¶
type CreateGeminiDBBuilder ¶
type CreateGeminiDBOpts ¶
type CreateGeminiDBOpts struct { Name string `json:"name" 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,omitempty"` Password string `json:"password" required:"true"` Mode string `json:"mode" required:"true"` ConfigurationId string `json:"configuration_id,omitempty"` EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` DedicatedResourceId string `json:"dedicated_resource_id,omitempty"` Ssl string `json:"ssl_option,omitempty"` DataStore DataStore `json:"datastore" required:"true"` Flavor []FlavorOpt `json:"flavor" required:"true"` BackupStrategy *BackupStrategyOpt `json:"backup_strategy,omitempty"` ChargeInfo *ChargeInfoOpt `json:"charge_info,omitempty"` }
func (CreateGeminiDBOpts) ToInstancesCreateMap ¶
func (opts CreateGeminiDBOpts) ToInstancesCreateMap() (map[string]interface{}, error)
type CreateResponse ¶
type CreateResponse struct { GeminiDBBase JobId string `json:"job_id"` AvailabilityZone string `json:"availability_zone"` Flavor []Flavor `json:"flavor"` BackupStrategy BackupStrategyOpt `json:"backup_strategy"` }
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateGeminiDBBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*CreateResponse, error)
type DehResource ¶
type DehResourcePage ¶
type DehResourcePage struct {
pagination.SinglePageBase
}
type DeleteResponse ¶
type DeleteResponse struct {
JobId string `json:"job_id"`
}
type DeleteResult ¶
type DeleteResult struct {
// contains filtered or unexported fields
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, instanceId string) (r DeleteResult)
func (DeleteResult) Extract ¶
func (r DeleteResult) Extract() (*DeleteResponse, error)
type EnlargeNodeBuilder ¶
type EnlargeNodeOpts ¶
type EnlargeNodeOpts struct { Num int `json:"num" required:"true"` IsAutoPay string `json:"is_auto_pay,omitempty"` }
func (EnlargeNodeOpts) ToNodeEnlargeMap ¶
func (opts EnlargeNodeOpts) ToNodeEnlargeMap() (map[string]interface{}, error)
type ExtendResponse ¶
type ExtendResult ¶
type ExtendResult struct {
// contains filtered or unexported fields
}
func EnlargeNode ¶
func EnlargeNode(client *golangsdk.ServiceClient, instanceId string, opts EnlargeNodeBuilder) (r ExtendResult)
func ExtendVolume ¶
func ExtendVolume(client *golangsdk.ServiceClient, instanceId string, opts ExtendVolumeBuilder) (r ExtendResult)
func ReduceNode ¶
func ReduceNode(client *golangsdk.ServiceClient, instanceId string, opts ReduceNodeBuilder) (r ExtendResult)
func Resize ¶
func Resize(client *golangsdk.ServiceClient, instanceId string, opts ResizeBuilder) (r ExtendResult)
func UpdateSg ¶
func UpdateSg(client *golangsdk.ServiceClient, instanceId string, opts UpdateSgBuilder) (r ExtendResult)
func (ExtendResult) Extract ¶
func (r ExtendResult) Extract() (*ExtendResponse, error)
type ExtendVolumeBuilder ¶
type ExtendVolumeOpts ¶
type ExtendVolumeOpts struct { Size int `json:"size" required:"true"` IsAutoPay string `json:"is_auto_pay,omitempty"` }
func (ExtendVolumeOpts) ToVolumeExtendMap ¶
func (opts ExtendVolumeOpts) ToVolumeExtendMap() (map[string]interface{}, error)
type GeminiDBBase ¶
type GeminiDBBase struct { Id string `json:"id"` Name string `json:"name"` Status string `json:"status"` Region string `json:"region"` Mode string `json:"mode"` Created string `json:"-"` VpcId string `json:"vpc_id"` SubnetId string `json:"subnet_id"` SecurityGroupId string `json:"security_group_id"` DataStore DataStore `json:"datastore"` EnterpriseProjectId string `json:"enterprise_project_id"` }
type GeminiDBInstance ¶
type GeminiDBInstance struct { GeminiDBBase Port string `json:"port"` Engine string `json:"engine"` Updated string `json:"-"` DbUserName string `json:"db_user_name"` PayMode string `json:"pay_mode"` TimeZone string `json:"time_zone"` MaintenanceWindow string `json:"maintenance_window"` Actions []string `json:"actions"` Groups []Groups `json:"groups"` BackupStrategy BackupStrategy `json:"backup_strategy"` DedicatedResourceId string `json:"dedicated_resource_id"` }
func GetInstanceByID ¶
func GetInstanceByID(client *golangsdk.ServiceClient, instanceId string) (GeminiDBInstance, error)
func GetInstanceByName ¶
func GetInstanceByName(client *golangsdk.ServiceClient, name string) (GeminiDBInstance, error)
type GeminiDBPage ¶
type GeminiDBPage struct {
pagination.SinglePageBase
}
func (GeminiDBPage) IsEmpty ¶
func (r GeminiDBPage) IsEmpty() (bool, error)
type ListDehResponse ¶
type ListDehResponse struct { Resources []DehResource `json:"resources"` TotalCount int `json:"total_count"` }
func ExtractDehResources ¶
func ExtractDehResources(r pagination.Page) (ListDehResponse, error)
type ListGeminiDBBuilder ¶
type ListGeminiDBInstanceOpts ¶
type ListGeminiDBInstanceOpts struct { Id string `q:"id"` Name string `q:"name"` Mode string `q:"mode"` DataStoreType string `q:"datastore_type"` VpcId string `q:"vpc_id"` SubnetId string `q:"subnet_id"` Offset int `q:"offset"` Limit int `q:"limit"` }
func (ListGeminiDBInstanceOpts) ToGeminiDBListDetailQuery ¶
func (opts ListGeminiDBInstanceOpts) ToGeminiDBListDetailQuery() (string, error)
type ListGeminiDBResponse ¶
type ListGeminiDBResponse struct { Instances []GeminiDBInstance `json:"instances"` TotalCount int `json:"total_count"` }
func ExtractGeminiDBInstances ¶
func ExtractGeminiDBInstances(r pagination.Page) (ListGeminiDBResponse, error)
ExtractGeminiDBInstances is a function that takes a ListResult and returns the services' information.
type ListGeminiDBResult ¶
type ListGeminiDBResult struct {
// contains filtered or unexported fields
}
type ReduceNodeBuilder ¶
type ReduceNodeOpts ¶
type ReduceNodeOpts struct {
Num int `json:"num" required:"true"`
}
func (ReduceNodeOpts) ToNodeReduceMap ¶
func (opts ReduceNodeOpts) ToNodeReduceMap() (map[string]interface{}, error)
type ResizeBuilder ¶
type ResizeOpts ¶
type ResizeOpts struct { Resize ResizeOpt `json:"resize" required:"true"` IsAutoPay string `json:"is_auto_pay,omitempty"` }
func (ResizeOpts) ToResizeMap ¶
func (opts ResizeOpts) ToResizeMap() (map[string]interface{}, error)
type UpdateNameBuilder ¶
type UpdateNameOpts ¶
type UpdateNameOpts struct {
Name string `json:"name" required:"true"`
}
func (UpdateNameOpts) ToNameUpdateMap ¶
func (opts UpdateNameOpts) ToNameUpdateMap() (map[string]interface{}, error)
type UpdatePassBuilder ¶
type UpdatePassOpts ¶
type UpdatePassOpts struct {
Password string `json:"password" required:"true"`
}
func (UpdatePassOpts) ToPassUpdateMap ¶
func (opts UpdatePassOpts) ToPassUpdateMap() (map[string]interface{}, error)
type UpdateResult ¶
func UpdateName ¶
func UpdateName(client *golangsdk.ServiceClient, instanceId string, opts UpdateNameBuilder) (r UpdateResult)
func UpdatePass ¶
func UpdatePass(client *golangsdk.ServiceClient, instanceId string, opts UpdatePassBuilder) (r UpdateResult)
type UpdateSgBuilder ¶
type UpdateSgOpts ¶
type UpdateSgOpts struct {
SecurityGroupID string `json:"security_group_id" required:"true"`
}
func (UpdateSgOpts) ToSgUpdateMap ¶
func (opts UpdateSgOpts) ToSgUpdateMap() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.