alirds

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicIPAddress         string
	PublicConnectionAddress string
	PublicPort              string
)
View Source
var (
	DescribeDBInstancesOut []DBInstances
	TraversedRegions       []string
	TimestampType          = util.ReturnTimestampType("alibaba", "rds")
)
View Source
var (
	WhiteListIPArrayName string
	WhiteListIPType      string
	WhiteListIPList      string
)

Functions

func AddRdsAccount added in v0.5.0

func AddRdsAccount(DBInstanceId string, userName string)

func DelRdsAccount added in v0.5.0

func DelRdsAccount()

func GetAccountInfo added in v0.5.0

func GetAccountInfo(region string, specifiedDBInstanceId string) []rds.DBInstanceAccount

func GetDataBases added in v0.5.0

func GetDataBases(region string, specifiedDBInstanceId string) []rds.Database

func GetNetInfo added in v0.5.0

func GetNetInfo(region string, specifiedDBInstanceId string) []rds.DBInstanceNetInfo

func GetRDSRegions

func GetRDSRegions() []rds.RDSRegion

func GetWhiteListInfo added in v0.5.0

func GetWhiteListInfo(region string, specifiedDBInstanceId string) []rds.DBInstanceIPArray

func LsRdsAccount added in v0.5.0

func LsRdsAccount()

func PrintDBInstancesList

func PrintDBInstancesList(region string, running bool, specifiedDBInstanceId string, engine string, lsFlushCache bool, all bool)

func PrintDBInstancesListHistory

func PrintDBInstancesListHistory(region string, running bool, specifiedDBInstanceId string, engine string)

func PrintDBInstancesListRealTime

func PrintDBInstancesListRealTime(region string, running bool, specifiedDBInstanceId string, engine string)

func RDSClient

func RDSClient(region string) *rds.Client

func RdsPublic added in v0.5.0

func RdsPublic(DBInstanceId string)

func RdsPublicCancel added in v0.5.0

func RdsPublicCancel()

func RdsPublicLs added in v0.5.0

func RdsPublicLs()

func RdsWhiteList added in v0.5.0

func RdsWhiteList(DBInstanceId string, WhiteList string)

func RdsWhiteListDel added in v0.5.0

func RdsWhiteListDel()

func RdsWhiteListLs added in v0.5.0

func RdsWhiteListLs()

func RemoveRepeatedElement

func RemoveRepeatedElement(arr []string) (newArr []string)

func ReturnGetNetInfo added in v0.5.0

func ReturnGetNetInfo(region string, specifiedDBInstanceId string)

func ReturnGetWhiteListInfo added in v0.5.0

func ReturnGetWhiteListInfo(region string, specifiedDBInstanceId string, WhiteList string)

Types

type DBInstances

type DBInstances struct {
	DBInstanceId     string
	Engine           string
	EngineVersion    string
	DBInstanceStatus string
	RegionId         string
}

func DescribeDBInstances

func DescribeDBInstances(region string, running bool, specifiedDBInstanceId string, engine string, NextToken string, output bool) ([]DBInstances, error)

func ReturnDBInstancesList

func ReturnDBInstancesList(region string, running bool, specifiedDBInstanceId string, engine string) []DBInstances

Jump to

Keyboard shortcuts

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