Documentation ¶
Index ¶
- func UpdatePort(client *golangsdk.ServiceClient, instanceId string, opts PortOptsBuilder) (r commonResult)
- func UpdateSecGroup(client *golangsdk.ServiceClient, instanceId string, opts SecGroupOptsBuilder) (r commonResult)
- type DBPortUpdateResult
- type PortOpts
- type PortOptsBuilder
- type SSLOpts
- type SSLOptsBuilder
- type SSLUpdateResult
- type SecGroupOpts
- type SecGroupOptsBuilder
- type SecGroupUpdateResult
- type WorkFlow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdatePort ¶
func UpdatePort(client *golangsdk.ServiceClient, instanceId string, opts PortOptsBuilder) (r commonResult)
UpdatePort is a method to update the port of the database.
func UpdateSecGroup ¶
func UpdateSecGroup(client *golangsdk.ServiceClient, instanceId string, opts SecGroupOptsBuilder) (r commonResult)
UpdateSecGroup is a method to update the security group which the database belongs.
Types ¶
type DBPortUpdateResult ¶
type DBPortUpdateResult struct {
// contains filtered or unexported fields
}
DBPortUpdateResult represents a result of the UpdateDBPort method.
type PortOpts ¶
type PortOpts struct { // Specifies the port number. // The MySQL port number ranges from 1024 to 65535, excluding 12017 and 33071. Port int `json:"port" required:"true"` }
PortOpts is a struct which will be used to config the secure sockets layer.
func (PortOpts) ToPortOptsMap ¶
ToPortOptsMap is a method which to build a request body by the DBPortOpts.
type PortOptsBuilder ¶
PortOptsBuilder is an interface which to support request body build of the port configuration of the specifies database.
type SSLOpts ¶
type SSLOpts struct { // Specifies whether to enable SSL. // true: SSL is enabled. // false: SSL is disabled. SSLEnable *bool `json:"ssl_option" required:"true"` }
SSLOpts is a struct which will be used to config the SSL (Secure Sockets Layer).
func (SSLOpts) ToSSLOptsMap ¶
ToSSLOptsMap is a method which to build a request body by the SSLOpts.
type SSLOptsBuilder ¶
SSLOptsBuilder is an interface which to support request body build of the ssl configuration of the specifies database.
type SSLUpdateResult ¶
SSLUpdateResult represents a result of the ConfigureSSL method.
func UpdateSSL ¶
func UpdateSSL(client *golangsdk.ServiceClient, instanceId string, opts SSLOptsBuilder) (r SSLUpdateResult)
UpdateSSL is a method to enable or disable the SSL.
type SecGroupOpts ¶
type SecGroupOpts struct { // Specifies the security group ID. SecurityGroupId string `json:"security_group_id" required:"true"` }
SecGroupOpts is a struct which will be used to update the specifies security group.
func (SecGroupOpts) ToSecGroupOptsMap ¶
func (opts SecGroupOpts) ToSecGroupOptsMap() (map[string]interface{}, error)
ToSecGroupOptsMap is a method which to build a request body by the SecGroupOpts.
type SecGroupOptsBuilder ¶
SecGroupOptsBuilder is an interface which to support request body build of the security group updation.
type SecGroupUpdateResult ¶
type SecGroupUpdateResult struct {
// contains filtered or unexported fields
}
SecGroupUpdateResult represents a result of the UpdateSecGroup method.