aliyungo: github.com/denverdino/aliyungo/rds Index | Files

package rds

import "github.com/denverdino/aliyungo/rds"

Index

Package Files

client.go instances.go monitoring.go

Constants

const (
    // ECSDefaultEndpoint is the default API endpoint of RDS services
    RDSDefaultEndpoint = "https://rds.aliyuncs.com"
    RDSAPIVersion      = "2014-08-15"
    RDSServiceCode     = "rds"
)
const (
    Creating  = InstanceStatus("Creating") // For backward compatibility
    Running   = InstanceStatus("Running")
    Deleting  = InstanceStatus("Deleting")
    Rebooting = InstanceStatus("Rebooting")

    Restoring                 = InstanceStatus("Restoring")
    Importing                 = InstanceStatus("Importing")
    DBInstanceNetTypeChanging = InstanceStatus("DBInstanceNetTypeChanging")
)

Constants of InstanceStatus

const (
    Prepaid  = DBPayType("Prepaid")
    Postpaid = DBPayType("Postpaid")
)
const (
    Rds   = CommodityCode("rds")
    Bards = CommodityCode("bards")
    Rords = CommodityCode("rords")
)
const (
    MySQL     = Engine("MySQL")
    SQLServer = Engine("SQLServer")
    PPAS      = Engine("PPAS")
    PG        = Engine("PG")
)
const (
    Performance = ConnectionMode("Performance")
    Safty       = ConnectionMode("Safty")
    Standard    = ConnectionMode("Standard")
)
const (
    Unavailable = AccountStatus("Unavailable")
    Available   = AccountStatus("Available")
)
const (
    Normal = AccountType("Normal")
    Super  = AccountType("Super")
)
const (
    ReadOnly  = AccountPrivilege("ReadOnly")
    ReadWrite = AccountPrivilege("ReadWrite")
)
const (
    ConnectionNormal   = ConnectionStringType("Normal")
    ReadWriteSplitting = ConnectionStringType("ReadWriteSplitting")
)
const (
    Inner   = IPType("Inner")
    Private = IPType("Private")
    Public  = IPType("Public")
)
const DefaultResource = "buy"

default resource value for create order

const DefaultWaitForInterval = 10
const InstanceDefaultTimeout = 120

Default timeout value for WaitForInstance method

Variables

var BACKUP_TIME = []string{
    "00:00Z-01:00Z", "01:00Z-02:00Z", "02:00Z-03:00Z", "03:00Z-04:00Z", "04:00Z-05:00Z",
    "05:00Z-06:00Z", "06:00Z-07:00Z", "07:00Z-08:00Z", "08:00Z-09:00Z", "09:00Z-10:00Z",
    "10:00Z-11:00Z", "11:00Z-12:00Z", "12:00Z-13:00Z", "13:00Z-14:00Z", "14:00Z-15:00Z",
    "15:00Z-16:00Z", "16:00Z-17:00Z", "17:00Z-18:00Z", "18:00Z-19:00Z", "19:00Z-20:00Z",
    "20:00Z-21:00Z", "21:00Z-22:00Z", "22:00Z-23:00Z", "23:00Z-24:00Z",
}
var CHARACTER_SET_NAME = []string{
    "utf8", "gbk", "latin1", "utf8mb4",
    "Chinese_PRC_CI_AS", "Chinese_PRC_CS_AS", "SQL_Latin1_General_CP1_CI_AS", "SQL_Latin1_General_CP1_CS_AS", "Chinese_PRC_BIN",
}
var WEEK_ENUM = []string{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}

type AccountPrivilege Uses

type AccountPrivilege string

type AccountPrivilegeInfo Uses

type AccountPrivilegeInfo struct {
    Account          string
    AccountPrivilege string
}

type AccountStatus Uses

type AccountStatus string

type AccountType Uses

type AccountType string

type AllocateInstancePublicConnectionArgs Uses

type AllocateInstancePublicConnectionArgs struct {
    DBInstanceId           string
    ConnectionStringPrefix string
    Port                   string
}

type AllocateInstancePublicConnectionResponse Uses

type AllocateInstancePublicConnectionResponse struct {
    common.Response
}

type BackupPolicy Uses

type BackupPolicy struct {
    PreferredBackupTime      string // HH:mmZ - HH:mm Z
    PreferredBackupPeriod    string // Monday - Sunday
    BackupRetentionPeriod    int    // 7 - 730
    BackupLog                string // enum Enable | Disabled
    LogBackupRetentionPeriod string
}

type Client Uses

type Client struct {
    common.Client
}

func NewClient Uses

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of RDS client

func NewClientWithEndpoint Uses

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func NewClientWithRegion Uses

func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewRDSClient Uses

func NewRDSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewRDSClientWithEndpointAndSecurityToken Uses

func NewRDSClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewRDSClientWithSecurityToken Uses

func NewRDSClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func (*Client) AllocateInstancePublicConnection Uses

func (client *Client) AllocateInstancePublicConnection(args *AllocateInstancePublicConnectionArgs) (resp *AllocateInstancePublicConnectionResponse, err error)

AllocateInstancePublicConnection allocate public connection

You can read doc at https://help.aliyun.com/document_detail/26234.html?spm=5176.doc26265.6.708.PdsJnL

func (*Client) CreateAccount Uses

func (client *Client) CreateAccount(args *CreateAccountArgs) (resp *CreateAccountResponse, err error)

CreateAccount create rds account

You can read doc at https://help.aliyun.com/document_detail/26263.html?spm=5176.doc26240.6.736.ZDihok

func (*Client) CreateDBInstance Uses

func (client *Client) CreateDBInstance(args *CreateDBInstanceArgs) (resp CreateDBInstanceResponse, err error)

CreateDBInstance create db instance https://help.aliyun.com/document_detail/26228.html

func (*Client) CreateDatabase Uses

func (client *Client) CreateDatabase(args *CreateDatabaseArgs) (resp *CreateDatabaseResponse, err error)

CreateDatabase create rds database

You can read doc at https://help.aliyun.com/document_detail/26243.html?spm=5176.doc26244.6.715.OSNUa8

func (*Client) CreateOrder Uses

func (client *Client) CreateOrder(args *CreateOrderArgs) (resp CreateOrderResponse, err error)

CreateOrder create db instance order

func (*Client) DeleteAccount Uses

func (client *Client) DeleteAccount(instanceId, accountName string) (resp *DeleteAccountResponse, err error)

DeleteAccount delete account

You can read doc at https://help.aliyun.com/document_detail/26264.html?spm=5176.doc26269.6.737.CvlZp6

func (*Client) DeleteDatabase Uses

func (client *Client) DeleteDatabase(instanceId, dbName string) error

DeleteInstance deletes database

You can read doc at https://help.aliyun.com/document_detail/26259.html?spm=5176.doc26260.6.731.Abjwne

func (*Client) DeleteInstance Uses

func (client *Client) DeleteInstance(instanceId string) error

DeleteInstance deletes db instance

You can read doc at https://help.aliyun.com/document_detail/26229.html?spm=5176.doc26315.6.700.7SmyAT

func (*Client) DescribeAccounts Uses

func (client *Client) DescribeAccounts(args *DescribeAccountsArgs) (resp *DescribeAccountsResponse, err error)

DescribeAccounts describes db accounts

You can read doc at https://help.aliyun.com/document_detail/26265.html?spm=5176.doc26266.6.739.UjtjaI

func (*Client) DescribeBackupPolicy Uses

func (client *Client) DescribeBackupPolicy(args *DescribeBackupPolicyArgs) (resp *DescribeBackupPolicyResponse, err error)

DescribeBackupPolicy describe backup policy

You can read doc at https://help.aliyun.com/document_detail/26275.html?spm=5176.doc26276.6.750.CUqjDn

func (*Client) DescribeDBInstanceAttribute Uses

func (client *Client) DescribeDBInstanceAttribute(args *DescribeDBInstanceAttributeArgs) (resp *DescribeDBInstanceAttributeResponse, err error)

DescribeDBInstanceAttribute describes db instance

You can read doc at https://help.aliyun.com/document_detail/26231.html?spm=5176.doc26228.6.702.uhzm31

func (*Client) DescribeDBInstanceIPArrayList Uses

func (client *Client) DescribeDBInstanceIPArrayList(args *DescribeDBInstanceIPArrayListArgs) (*DescribeDBInstanceIPArrayListResponse, error)

func (*Client) DescribeDBInstanceIPs Uses

func (client *Client) DescribeDBInstanceIPs(args *DescribeDBInstanceIPsArgs) (resp *DescribeDBInstanceIPsResponse, err error)

DescribeDBInstanceIPArrayList describe security ips

You can read doc at https://help.aliyun.com/document_detail/26241.html?spm=5176.doc26242.6.715.d9pxvr

func (*Client) DescribeDBInstanceNetInfo Uses

func (client *Client) DescribeDBInstanceNetInfo(args *DescribeDBInstanceNetInfoArgs) (resp *DescribeDBInstanceNetInfoResponse, err error)

DescribeDBInstanceNetInfo describe rds net info

You can read doc at https://help.aliyun.com/document_detail/26237.html?spm=5176.doc26234.6.711.vHOktx

func (*Client) DescribeDBInstancePerformance Uses

func (client *Client) DescribeDBInstancePerformance(args *DescribeDBInstancePerformanceArgs) (resp DescribeDBInstancePerformanceResponse, err error)

func (*Client) DescribeDBInstances Uses

func (client *Client) DescribeDBInstances(args *DescribeDBInstancesArgs) (resp *DescribeDBInstancesResponse, err error)

DescribeDBInstances describes db instances

You can read doc at https://help.aliyun.com/document_detail/26232.html

func (*Client) DescribeDatabases Uses

func (client *Client) DescribeDatabases(args *DescribeDatabasesArgs) (resp *DescribeDatabasesResponse, err error)

DescribeDatabases describes db database

You can read doc at https://help.aliyun.com/document_detail/26260.html?spm=5176.doc26258.6.732.gCx1a3

func (*Client) DescribeRegions Uses

func (client *Client) DescribeRegions() (resp *DescribeRegionsResponse, err error)

DescribeRegions describe rds regions

You can read doc at https://help.aliyun.com/document_detail/26243.html?spm=5176.doc26244.6.715.OSNUa8

func (*Client) GrantAccountPrivilege Uses

func (client *Client) GrantAccountPrivilege(args *GrantAccountPrivilegeArgs) (resp *GrantAccountPrivilegeResponse, err error)

GrantAccountPrivilege grant database privilege to account

You can read doc at https://help.aliyun.com/document_detail/26266.html?spm=5176.doc26264.6.739.o2y01n

func (*Client) ModifyAccountDescription Uses

func (client *Client) ModifyAccountDescription(args *ModifyAccountDescriptionArgs) error

ModifyDBDescription create rds database description

func (*Client) ModifyBackupPolicy Uses

func (client *Client) ModifyBackupPolicy(args *ModifyBackupPolicyArgs) (resp *ModifyBackupPolicyResponse, err error)

ModifyBackupPolicy modify backup policy

You can read doc at https://help.aliyun.com/document_detail/26276.html?spm=5176.doc26250.6.751.KOew21

func (*Client) ModifyDBInstanceConnectionString Uses

func (client *Client) ModifyDBInstanceConnectionString(args *ModifyDBInstanceConnectionStringArgs) error

ModifyDBInstanceConnectionString modify rds connection string

You can read doc at https://help.aliyun.com/document_detail/26238.html

func (*Client) ModifyDBInstanceDescription Uses

func (client *Client) ModifyDBInstanceDescription(args *ModifyDBInstanceDescriptionArgs) error

ModifyDBInstanceDescription modify rds instance name

You can read doc at https://help.aliyun.com/document_detail/26248.html

func (*Client) ModifyDBInstancePayType Uses

func (client *Client) ModifyDBInstancePayType(args *ModifyDBInstancePayTypeArgs) (resp *ModifyDBInstancePayTypeResponse, err error)

ModifyDBInstancePayType modify db charge type

You can read doc at https://help.aliyun.com/document_detail/26247.html

func (*Client) ModifyDBInstanceSpec Uses

func (client *Client) ModifyDBInstanceSpec(args *ModifyDBInstanceSpecArgs) (resp *ModifyDBInstanceSpecResponse, err error)

ModifyDBInstanceSpec modify db instance spec

You can read doc at https://help.aliyun.com/document_detail/26233.html?spm=5176.doc26258.6.707.2QOLrM

func (*Client) ModifyDatabaseDescription Uses

func (client *Client) ModifyDatabaseDescription(args *ModifyDatabaseDescriptionArgs) error

ModifyDBDescription create rds database description

func (*Client) ModifySecurityIps Uses

func (client *Client) ModifySecurityIps(args *ModifySecurityIpsArgs) (resp *common.Response, err error)

func (*Client) ReleaseInstancePublicConnection Uses

func (client *Client) ReleaseInstancePublicConnection(args *ReleaseInstancePublicConnectionArgs) error

func (*Client) ResetAccountPassword Uses

func (client *Client) ResetAccountPassword(instanceId, accountName, accountPassword string) (resp *common.Response, err error)

ResetAccountPassword reset account password

You can read doc at https://help.aliyun.com/document_detail/26269.html?spm=5176.doc26268.6.842.hFnVQU

func (*Client) RevokeAccountPrivilege Uses

func (client *Client) RevokeAccountPrivilege(args *RevokeAccountPrivilegeArgs) error

RevokeAccountPrivilege revoke database privilege from account

You can read doc at https://help.aliyun.com/document_detail/26267.html

func (*Client) SwitchDBInstanceNetType Uses

func (client *Client) SwitchDBInstanceNetType(args *SwitchDBInstanceNetTypeArgs) error

func (*Client) WaitForAccount Uses

func (client *Client) WaitForAccount(instanceId string, accountName string, status AccountStatus, timeout int) error

func (*Client) WaitForAccountPrivilege Uses

func (client *Client) WaitForAccountPrivilege(instanceId, accountName, dbName string, privilege AccountPrivilege, timeout int) error

func (*Client) WaitForAccountPrivilegeRevoked Uses

func (client *Client) WaitForAccountPrivilegeRevoked(instanceId, accountName, dbName string, timeout int) error

func (*Client) WaitForAllDatabase Uses

func (client *Client) WaitForAllDatabase(instanceId string, databaseNames []string, status InstanceStatus, timeout int) error

func (*Client) WaitForDBConnection Uses

func (client *Client) WaitForDBConnection(instanceId string, netType IPType, timeout int) error

func (*Client) WaitForInstance Uses

func (client *Client) WaitForInstance(instanceId string, status InstanceStatus, timeout int) error

WaitForInstance waits for instance to given status

func (*Client) WaitForInstanceAsyn Uses

func (client *Client) WaitForInstanceAsyn(instanceId string, status InstanceStatus, timeout int) error

WaitForInstance waits for instance to given status

func (*Client) WaitForPublicConnection Uses

func (client *Client) WaitForPublicConnection(instanceId string, timeout int) error

type CommodityCode Uses

type CommodityCode string

type ConnectionMode Uses

type ConnectionMode string

type ConnectionStringType Uses

type ConnectionStringType string

type CreateAccountArgs Uses

type CreateAccountArgs struct {
    DBInstanceId       string
    AccountName        string
    AccountPassword    string
    AccountType        AccountType
    AccountDescription string
}

type CreateAccountResponse Uses

type CreateAccountResponse struct {
    common.Response
}

type CreateDBInstanceArgs Uses

type CreateDBInstanceArgs struct {
    RegionId              common.Region
    ZoneId                string
    Engine                Engine
    EngineVersion         string
    DBInstanceClass       string
    DBInstanceStorage     int
    DBInstanceNetType     common.NetType
    DBInstanceDescription string
    SecurityIPList        string
    PayType               DBPayType
    Period                common.TimeType
    UsedTime              string
    ClientToken           string
    InstanceNetworkType   common.NetworkType
    ConnectionMode        ConnectionMode
    VPCId                 string
    VSwitchId             string
    PrivateIpAddress      string
}

type CreateDBInstanceResponse Uses

type CreateDBInstanceResponse struct {
    common.Response
    DBInstanceId     string
    OrderId          string
    ConnectionString string
    Port             string
}

type CreateDatabaseArgs Uses

type CreateDatabaseArgs struct {
    DBInstanceId     string
    DBName           string
    CharacterSetName string
    DBDescription    string
}

type CreateDatabaseResponse Uses

type CreateDatabaseResponse struct {
    common.Response
}

type CreateOrderArgs Uses

type CreateOrderArgs struct {
    CommodityCode       CommodityCode
    RegionId            common.Region
    ZoneId              string
    Engine              Engine
    EngineVersion       string
    PayType             DBPayType
    DBInstanceClass     string
    DBInstanceStorage   int
    DBInstanceNetType   common.NetType
    InstanceNetworkType common.NetworkType
    VPCId               string
    VSwitchId           string
    UsedTime            int
    TimeType            common.TimeType
    Quantity            int
    InstanceUsedType    string
    Resource            string
    AutoPay             string
    AutoRenew           string
    BackupId            string
    RestoreTime         string
    SecurityIPList      string
    BusinessInfo        string
}

type CreateOrderResponse Uses

type CreateOrderResponse struct {
    common.Response
    DBInstanceId string
    OrderId      int
}

type DBInstanceAccount Uses

type DBInstanceAccount struct {
    DBInstanceId       string
    AccountName        string
    AccountStatus      AccountStatus
    AccountDescription string
    DatabasePrivileges struct {
        DatabasePrivilege []DatabasePrivilege
    }
    AccountType AccountType
}

type DBInstanceAttribute Uses

type DBInstanceAttribute struct {
    DBInstanceId                string
    PayType                     DBPayType
    DBInstanceType              string
    InstanceNetworkType         string
    ConnectionMode              string
    RegionId                    string
    ZoneId                      string
    ConnectionString            string
    Port                        string
    Engine                      Engine
    EngineVersion               string
    DBInstanceClass             string
    DBInstanceMemory            int64
    DBInstanceStorage           int
    DBInstanceNetType           string
    DBInstanceStatus            InstanceStatus
    DBInstanceDescription       string
    LockMode                    string
    LockReason                  string
    DBMaxQuantity               int
    AccountMaxQuantity          int
    CreationTime                string
    ExpireTime                  string
    MaintainTime                string
    AvailabilityValue           string
    MaxIOPS                     int
    MaxConnections              int
    MasterInstanceId            string
    IncrementSourceDBInstanceId string
    GuardDBInstanceId           string
    TempDBInstanceId            string
    ReadOnlyDBInstanceIds       ReadOnlyDBInstanceIds
    SecurityIPList              string
    VSwitchId                   string
    VpcId                       string
}

type DBInstanceIPArray Uses

type DBInstanceIPArray struct {
    SecurityIps                string
    DBInstanceIPArrayName      string
    DBInstanceIPArrayAttribute string
}

type DBInstanceIPList Uses

type DBInstanceIPList struct {
    DBInstanceIPArrayName      string
    DBInstanceIPArrayAttribute string
    SecurityIPList             string
}

type DBInstanceIPs Uses

type DBInstanceIPs struct {
    DBInstanceIPArrayName      string
    DBInstanceIPArrayAttribute string
    SecurityIPList             string
}

type DBInstanceIPsItems Uses

type DBInstanceIPsItems struct {
    DBInstanceIPArray []DBInstanceIPs
}

type DBInstanceNetInfo Uses

type DBInstanceNetInfo struct {
    ConnectionString string
    IPAddress        string
    Port             string
    VPCId            string
    VSwitchId        string
    IPType           IPType
}

type DBPayType Uses

type DBPayType string

type Database Uses

type Database struct {
    DBName           string
    DBInstanceId     string
    Engine           string
    DBStatus         InstanceStatus
    CharacterSetName InstanceStatus
    DBDescription    InstanceStatus
    Account          InstanceStatus
    AccountPrivilege InstanceStatus
    Accounts         struct {
        AccountPrivilegeInfo []AccountPrivilegeInfo
    }
}

type DatabasePrivilege Uses

type DatabasePrivilege struct {
    DBName           string
    AccountPrivilege AccountPrivilege
}

type DeleteAccountArgs Uses

type DeleteAccountArgs struct {
    DBInstanceId string
    AccountName  string
}

type DeleteAccountResponse Uses

type DeleteAccountResponse struct {
    common.Response
}

type DeleteDBInstanceArgs Uses

type DeleteDBInstanceArgs struct {
    DBInstanceId string
}

type DeleteDBInstanceResponse Uses

type DeleteDBInstanceResponse struct {
    common.Response
}

type DeleteDatabaseArgs Uses

type DeleteDatabaseArgs struct {
    DBInstanceId string
    DBName       string
}

type DeleteDatabaseResponse Uses

type DeleteDatabaseResponse struct {
    common.Response
}

type DescribeAccountsArgs Uses

type DescribeAccountsArgs struct {
    DBInstanceId string
    AccountName  string
}

type DescribeAccountsResponse Uses

type DescribeAccountsResponse struct {
    common.Response
    Accounts struct {
        DBInstanceAccount []DBInstanceAccount
    }
}

type DescribeBackupPolicyArgs Uses

type DescribeBackupPolicyArgs struct {
    DBInstanceId string
}

type DescribeBackupPolicyResponse Uses

type DescribeBackupPolicyResponse struct {
    common.Response
    BackupPolicy
}

type DescribeDBInstanceAttributeArgs Uses

type DescribeDBInstanceAttributeArgs struct {
    DBInstanceId string
}

type DescribeDBInstanceAttributeResponse Uses

type DescribeDBInstanceAttributeResponse struct {
    common.Response
    Items struct {
        DBInstanceAttribute []DBInstanceAttribute
    }
}

type DescribeDBInstanceIPArrayListArgs Uses

type DescribeDBInstanceIPArrayListArgs struct {
    DBInstanceId          string
    DBInstanceIPArrayName string
}

type DescribeDBInstanceIPArrayListResponse Uses

type DescribeDBInstanceIPArrayListResponse struct {
    common.Response

    Items *DBInstanceIPsItems
}

type DescribeDBInstanceIPsArgs Uses

type DescribeDBInstanceIPsArgs struct {
    DBInstanceId string
}

type DescribeDBInstanceIPsResponse Uses

type DescribeDBInstanceIPsResponse struct {
    common.Response
    Items struct {
        DBInstanceIPArray []DBInstanceIPList
    }
}

type DescribeDBInstanceNetInfoArgs Uses

type DescribeDBInstanceNetInfoArgs struct {
    DBInstanceId         string
    ConnectionStringType ConnectionStringType
}

type DescribeDBInstanceNetInfoResponse Uses

type DescribeDBInstanceNetInfoResponse struct {
    common.Response
    InstanceNetworkType string
    DBInstanceNetInfos  struct {
        DBInstanceNetInfo []DBInstanceNetInfo
    }
}

type DescribeDBInstancePerformanceArgs Uses

type DescribeDBInstancePerformanceArgs struct {
    DBInstanceId string
    Key          string
    StartTime    string
    EndTime      string
}

func (*DescribeDBInstancePerformanceArgs) Setkey Uses

func (client *DescribeDBInstancePerformanceArgs) Setkey(key string)

type DescribeDBInstancePerformanceResponse Uses

type DescribeDBInstancePerformanceResponse struct {
    common.Response
    DBInstanceId    string
    Engine          string
    StartTime       util.ISO6801Time
    EndTime         util.ISO6801Time
    PerformanceKeys struct {
        PerformanceKey []PerformanceKeyType
    }
}

type DescribeDBInstancesArgs Uses

type DescribeDBInstancesArgs struct {
    RegionId            common.Region
    Engine              Engine
    DBInstanceType      string
    InstanceNetworkType string
    ConnectionMode      ConnectionMode
    Tags                string

    common.Pagination
}

type DescribeDBInstancesResponse Uses

type DescribeDBInstancesResponse struct {
    common.Response

    Databases []Database

    Items struct {
        DBInstance []DBInstanceAttribute
    }

    common.PaginationResult
}

type DescribeDatabasesArgs Uses

type DescribeDatabasesArgs struct {
    DBInstanceId string
    DBName       string
    DBStatus     InstanceStatus
}

type DescribeDatabasesResponse Uses

type DescribeDatabasesResponse struct {
    common.Response
    Databases struct {
        Database []Database
    }
}

type DescribeRegionsArgs Uses

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse Uses

type DescribeRegionsResponse struct {
    Regions struct {
        RDSRegion []RDSRegion
    }
}

type Engine Uses

type Engine string

type GrantAccountPrivilegeArgs Uses

type GrantAccountPrivilegeArgs struct {
    DBInstanceId     string
    AccountName      string
    DBName           string
    AccountPrivilege AccountPrivilege
}

type GrantAccountPrivilegeResponse Uses

type GrantAccountPrivilegeResponse struct {
    common.Response
}

type IPType Uses

type IPType string

type InstanceStatus Uses

type InstanceStatus string

InstanceStatus represents instance status

type ModifyAccountDescriptionArgs Uses

type ModifyAccountDescriptionArgs struct {
    DBInstanceId       string
    AccountName        string
    AccountDescription string
}

type ModifyBackupPolicyArgs Uses

type ModifyBackupPolicyArgs struct {
    DBInstanceId string
    BackupPolicy
}

type ModifyBackupPolicyResponse Uses

type ModifyBackupPolicyResponse struct {
    common.Response
}

type ModifyDBInstanceConnectionStringArgs Uses

type ModifyDBInstanceConnectionStringArgs struct {
    DBInstanceId            string
    CurrentConnectionString string
    ConnectionStringPrefix  string
    Port                    string
}

type ModifyDBInstanceDescriptionArgs Uses

type ModifyDBInstanceDescriptionArgs struct {
    DBInstanceId          string
    DBInstanceDescription string
}

type ModifyDBInstancePayTypeArgs Uses

type ModifyDBInstancePayTypeArgs struct {
    DBInstanceId string
    PayType      DBPayType
    Period       common.TimeType
    UsedTime     string
    AutoPay      string
}

type ModifyDBInstancePayTypeResponse Uses

type ModifyDBInstancePayTypeResponse struct {
    common.Response
    OrderId int
}

type ModifyDBInstanceSpecArgs Uses

type ModifyDBInstanceSpecArgs struct {
    DBInstanceId      string
    PayType           DBPayType
    DBInstanceClass   string
    DBInstanceStorage string
}

type ModifyDBInstanceSpecResponse Uses

type ModifyDBInstanceSpecResponse struct {
    common.Response
}

type ModifyDatabaseDescriptionArgs Uses

type ModifyDatabaseDescriptionArgs struct {
    DBInstanceId  string
    DBName        string
    DBDescription string
}

type ModifySecurityIpsArgs Uses

type ModifySecurityIpsArgs struct {
    DBInstanceId               string
    SecurityIps                string
    DBInstanceIPArrayName      string
    DBInstanceIPArrayAttribute string
}

ref: https://help.aliyun.com/document_detail/26242.html

type PaginationResult Uses

type PaginationResult struct {
    TotalRecordCount int
    PageNumber       int
    PageRecordCount  int
}

func (*PaginationResult) NextPage Uses

func (r *PaginationResult) NextPage() *common.Pagination

NextPage gets the next page of the result set

type PerformanceKeyType Uses

type PerformanceKeyType struct {
    Key         string
    Unit        string
    ValueFormat string
    Values      struct {
        PerformanceValue []PerformanceValueType
    }
}

type PerformanceValueType Uses

type PerformanceValueType struct {
    Value string
    Date  util.ISO6801Time
}

type RDSRegion Uses

type RDSRegion struct {
    RegionId string
    ZoneId   string
}

type ReadOnlyDBInstanceId Uses

type ReadOnlyDBInstanceId struct {
    DBInstanceId string
}

type ReadOnlyDBInstanceIds Uses

type ReadOnlyDBInstanceIds struct {
    ReadOnlyDBInstanceId []ReadOnlyDBInstanceId
}

type ReleaseInstancePublicConnectionArgs Uses

type ReleaseInstancePublicConnectionArgs struct {
    DBInstanceId            string
    CurrentConnectionString string
}

type ResetAccountPasswordArgs Uses

type ResetAccountPasswordArgs struct {
    DBInstanceId    string
    AccountName     string
    AccountPassword string
}

type RevokeAccountPrivilegeArgs Uses

type RevokeAccountPrivilegeArgs struct {
    DBInstanceId string
    AccountName  string
    DBName       string
}

type SwitchDBInstanceNetTypeArgs Uses

type SwitchDBInstanceNetTypeArgs struct {
    DBInstanceId           string
    ConnectionStringPrefix string
    Port                   int
}

Package rds imports 6 packages (graph) and is imported by 8 packages. Updated 2019-01-17. Refresh now. Tools for package owners.