securities

package
v0.0.0-...-63319d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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.

func (DBPortUpdateResult) Extract

func (r DBPortUpdateResult) Extract() (*WorkFlow, error)

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

func (opts PortOpts) ToPortOptsMap() (map[string]interface{}, error)

ToPortOptsMap is a method which to build a request body by the DBPortOpts.

type PortOptsBuilder

type PortOptsBuilder interface {
	ToPortOptsMap() (map[string]interface{}, error)
}

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

func (opts SSLOpts) ToSSLOptsMap() (map[string]interface{}, error)

ToSSLOptsMap is a method which to build a request body by the SSLOpts.

type SSLOptsBuilder

type SSLOptsBuilder interface {
	ToSSLOptsMap() (map[string]interface{}, error)
}

SSLOptsBuilder is an interface which to support request body build of the ssl configuration of the specifies database.

type SSLUpdateResult

type SSLUpdateResult struct {
	golangsdk.ErrResult
}

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

type SecGroupOptsBuilder interface {
	ToSecGroupOptsMap() (map[string]interface{}, error)
}

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.

func (SecGroupUpdateResult) Extract

func (r SecGroupUpdateResult) Extract() (*WorkFlow, error)

type WorkFlow

type WorkFlow struct {
	// Indicates the workflow ID.
	WorkflowId string `json:"workflowId"`
}

WorkFlow is a struct that represents the result of database updation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL