Help us shape the future of Go! Take the 2026 Go Developer Survey

security

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSecurityGroup

func SetSecurityGroup(c *golangsdk.ServiceClient, opts SetSecurityGroupOpts) (*string, error)

func SwitchSsl

func SwitchSsl(c *golangsdk.ServiceClient, opts SwitchSslOpts) (err error)

SwitchSsl This API is supported for MySQL only.

func UpdateDataIp

func UpdateDataIp(c *golangsdk.ServiceClient, opts UpdateDataIpOpts) (*string, error)

func UpdatePort

func UpdatePort(c *golangsdk.ServiceClient, opts UpdatePortOpts) (*string, error)

Types

type SetSecurityGroupOpts

type SetSecurityGroupOpts struct {
	InstanceId string `json:"-"`
	// Specifies the security group ID.
	SecurityGroupId string `json:"security_group_id" required:"true"`
}

type SwitchSslOpts

type SwitchSslOpts struct {
	// Specifies the DB instance ID.
	InstanceId string `json:"-"`
	// Specifies whether to enable SSL.
	// true: SSL is enabled.
	// false: SSL is disabled.
	SslOption bool `json:"ssl_option"`
}

type UpdateDataIpOpts

type UpdateDataIpOpts struct {
	InstanceId string `json:"-"`
	// Indicates the private IP address.
	NewIp string `json:"new_ip"`
}

type UpdatePortOpts

type UpdatePortOpts struct {
	InstanceId string `json:"-"`
	// Specifies port information for all DB engines.
	// The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used).
	// The PostgreSQL database port ranges from 2100 to 9500.
	// The Microsoft SQL Server database port is 1433 or ranges from 2100 to 9500 (excluding 5355 and 5985).
	// The default values is as follows:
	// The default value of MySQL is 3306.
	// The default value of PostgreSQL is 5432.
	// The default value of Microsoft SQL Server is 1433.
	Port int32 `json:"port"`
}

type WorkflowId

type WorkflowId struct {
	WorkflowId string `json:"workflowId"`
}

Jump to

Keyboard shortcuts

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