rds

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classify

func Classify(ins []DBInstanceInDescribeDBInstancesWithTag) (runningCount, gonnaExpiredCount, expiredCount, stoppedCount,
	postpaidCount, prepaidCount int, err error)

func CreateDBWithRecord

create mysql database with record

func CreateDatabaseAccount

create accounts for a database instance --> database --> accounts

func CreateDatabasesWithWait

create mysql databases instance id, databases

func CreateInstanceWithRecord

func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlRequest, record *dbclient.Record)

Deprecated create mysql instance with record

func DescribeDBInstanceResourceUsage

describe rds resource usage

func DescribeTags

func DescribeTags(ctx aliyun_resources.Context, instanceId string) (*rds.DescribeTagsResponse, error)

func GetChargeType

func GetChargeType(payType string) string

func OverwriteTags

func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string) error

func TagResource

func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error

func UnTag

func UnTag(ctx aliyun_resources.Context, instanceIds []string, tags []string) error

Types

type DBInstanceInDescribeDBInstancesWithTag

type DBInstanceInDescribeDBInstancesWithTag struct {
	rds.DBInstance
	Tag map[string]string `json:"tag"`
}

type DescribeDBInstancesResponse

type DescribeDBInstancesResponse struct {
	aliyun_resources.ResponsePager
	DBInstances []rds.DBInstance
}

type RdsFactory

type RdsFactory struct {
	*resource_factory.BaseResourceFactory
}

Jump to

Keyboard shortcuts

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