Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + const DEFAULT_ENDPOINT + const REQUEST_RDS_URL + const URI_PREFIX + func Aes128EncryptUseSecreteKey(sk string, data string) (string, error) + type Account struct + AccountName string + AccountType string + DatabasePrivileges []DatabasePrivilege + Desc string + Remark string + Status string + Type string + type BackupPolicy struct + BackupDays string + BackupTime string + ExpireInDays string + FreeSpaceInGB int + Persistent bool + type Billing struct + PaymentTiming string + Reservation Reservation + type Client struct + func NewClient(ak, sk, endPoint string) (*Client, error) + func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error + func (c *Client) CreateRds(args *CreateRdsArgs) (*CreateResult, error) + func (c *Client) CreateRdsProxy(args *CreateRdsProxyArgs) (*CreateResult, error) + func (c *Client) CreateReadReplica(args *CreateReadReplicaArgs) (*CreateResult, error) + func (c *Client) DeleteAccount(instanceId, accountName string) error + func (c *Client) DeleteRds(instanceIds string) error + func (c *Client) GetAccount(instanceId, accountName string) (*Account, error) + func (c *Client) GetDetail(instanceId string) (*Instance, error) + func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error) + func (c *Client) ListRds(args *ListRdsArgs) (*ListRdsResult, error) + func (c *Client) ResizeRds(instanceId string, args *ResizeRdsArgs) error + type CreateAccountArgs struct + AccountName string + AccountType string + ClientToken string + DatabasePrivileges []DatabasePrivilege + Desc string + Password string + Type string + type CreateRdsArgs struct + Billing Billing + Category string + ClientToken string + CpuCount int + Engine string + EngineVersion string + InstanceName string + IsDirectPay bool + MemoryCapacity float64 + PurchaseCount int + Subnets []SubnetMap + Tags []model.TagModel + VolumeCapacity int + VpcId string + ZoneNames []string + type CreateRdsProxyArgs struct + Billing Billing + ClientToken string + InstanceName string + IsDirectPay bool + NodeAmount int + SourceInstanceId string + Subnets []SubnetMap + Tags []model.TagModel + VpcId string + ZoneNames []string + type CreateReadReplicaArgs struct + Billing Billing + ClientToken string + CpuCount int + InstanceName string + IsDirectPay bool + MemoryCapacity float64 + PurchaseCount int + SourceInstanceId string + Subnets []SubnetMap + Tags []model.TagModel + VolumeCapacity int + VpcId string + ZoneNames []string + type CreateResult struct + InstanceIds []string + type DatabasePrivilege struct + AuthType string + DbName string + type Endpoint struct + Address string + InetIp string + Port int + VnetIp string + type Instance struct + BackupPolicy BackupPolicy + Category string + CpuCount int + Endpoint Endpoint + Engine string + EngineVersion string + InstanceCreateTime string + InstanceExpireTime string + InstanceId string + InstanceName string + InstanceStatus string + InstanceType string + MemoryCapacity float64 + NodeAmount int + PaymentTiming string + PublicAccessStatus string + Region string + SourceInstanceId string + SourceRegion string + Subnets []Subnet + SyncMode string + Topology Topology + UsedStorage float64 + VolumeCapacity int + VpcId string + ZoneNames []string + type ListAccountResult struct + Accounts []Account + type ListRdsArgs struct + Marker string + MaxKeys int + type ListRdsResult struct + Instances []Instance + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + type Reservation struct + ReservationLength int + ReservationTimeUnit string + type ResizeRdsArgs struct + CpuCount int + IsDirectPay bool + MemoryCapacity float64 + NodeAmount int + VolumeCapacity int + type Subnet struct + Cidr string + Name string + SubnetId string + VpcId string + ZoneName string + type SubnetMap struct + SubnetId string + ZoneName string + type Topology struct + Master []string + Rdsproxy []string + ReadReplica []string