Documentation
¶
Index ¶
- func DisableProxy(client *golangsdk.ServiceClient, instanceID string, opts *DisableProxyOpts) (*string, error)
- func EnableProxy(client *golangsdk.ServiceClient, instanceId string, opts EnableProxyOpts) (*string, error)
- func Enlarge(client *golangsdk.ServiceClient, opts EnlargeOpts) (*string, error)
- func Resize(client *golangsdk.ServiceClient, instanceId string, proxyId string, ...) (*string, error)
- func UpdateWeight(client *golangsdk.ServiceClient, instanceId string, proxyId string, ...) (*string, error)
- type DisableProxyOpts
- type EnableProxyOpts
- type EnlargeOpts
- type ListOpts
- type MysqlProxyAvailable
- type MysqlProxyComputeFlavor
- type MysqlProxyNodeV3
- type MysqlProxyNodes
- type MysqlProxyV3
- type NodesWeight
- type ProxyFlavorGroups
- type ProxyInstanceResponse
- type ProxyPage
- type TaurusModifyProxyWeightReadonlyNode
- type UpdateWeightOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableProxy ¶
func DisableProxy(client *golangsdk.ServiceClient, instanceID string, opts *DisableProxyOpts) (*string, error)
func EnableProxy ¶
func EnableProxy(client *golangsdk.ServiceClient, instanceId string, opts EnableProxyOpts) (*string, error)
func Enlarge ¶
func Enlarge(client *golangsdk.ServiceClient, opts EnlargeOpts) (*string, error)
func UpdateWeight ¶
func UpdateWeight(client *golangsdk.ServiceClient, instanceId string, proxyId string, opts UpdateWeightOpts) (*string, error)
Types ¶
type DisableProxyOpts ¶
type DisableProxyOpts struct {
ProxyIds []string `json:"proxy_ids,omitempty"`
}
type EnableProxyOpts ¶
type EnableProxyOpts struct {
FlavorRef string `json:"flavor_ref" required:"true"`
NodeNum int `json:"node_num" required:"true"`
ProxyName string `json:"proxy_name,omitempty"`
ProxyMode string `json:"proxy_mode,omitempty"`
NodesReadWeight []NodesWeight `json:"nodes_read_weight,omitempty"`
}
type EnlargeOpts ¶
type MysqlProxyAvailable ¶
type MysqlProxyComputeFlavor ¶
type MysqlProxyNodeV3 ¶
type MysqlProxyNodes ¶
type MysqlProxyV3 ¶
type MysqlProxyV3 struct {
PoolId string `json:"pool_id"`
Status string `json:"status"`
Address string `json:"address"`
Port int `json:"port"`
PoolStatus string `json:"pool_status"`
DelayThresholdInSeconds int `json:"delay_threshold_in_seconds"`
ElbVip string `json:"elb_vip"`
Eip string `json:"eip"`
Vcpus string `json:"vcpus"`
Ram string `json:"ram"`
NodeNum int `json:"node_num"`
Mode string `json:"mode"`
Nodes []MysqlProxyNodes `json:"nodes"`
FlavorRef string `json:"flavor_ref"`
Name string `json:"name"`
TransactionSplit string `json:"transaction_split"`
}
type NodesWeight ¶
type ProxyFlavorGroups ¶
type ProxyFlavorGroups struct {
GroupType string `json:"group_type"`
ProxyFlavors []MysqlProxyComputeFlavor `json:"proxy_flavors"`
}
func GetFlavors ¶
func GetFlavors(client *golangsdk.ServiceClient, instanceId string) ([]ProxyFlavorGroups, error)
type ProxyInstanceResponse ¶
type ProxyInstanceResponse struct {
Proxy MysqlProxyV3 `json:"proxy"`
MasterNode MysqlProxyNodeV3 `json:"master_node"`
ReadonlyNodes []MysqlProxyNodeV3 `json:"readonly_nodes"`
}
func ExtractProxies ¶
func ExtractProxies(r pagination.NewPage) ([]ProxyInstanceResponse, error)
func List ¶
func List(client *golangsdk.ServiceClient, instanceId string, opts ListOpts) ([]ProxyInstanceResponse, error)
type ProxyPage ¶
type ProxyPage struct {
pagination.NewSinglePageBase
}
type UpdateWeightOpts ¶
type UpdateWeightOpts struct {
MasterWeight *int `json:"master_weight,omitempty"`
ReadonlyNodes []TaurusModifyProxyWeightReadonlyNode `json:"readonly_nodes,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.