Documentation ¶
Index ¶
- func ChangeAccountPrivilege(ctx aliyun_resources.Context, ...) error
- func Classify(ins []DBInstanceInDescribeDBInstancesWithTag) (...)
- func CreateAccount(ctx aliyun_resources.Context, ...) error
- func CreateDBWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest, ...) (err error)
- func CreateDatabaseAccount(ctx aliyun_resources.Context, ...) error
- func CreateDatabases(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest) error
- func CreateDatabasesWithWait(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest) error
- func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlRequest) (*rds.CreateDBInstanceResponse, error)
- func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlRequest, ...)
- func DescribeAccounts(ctx aliyun_resources.Context, ...) (*rds.DescribeAccountsResponse, error)
- func DescribeDBInfo(ctx aliyun_resources.Context, ...) (*rds.DescribeDatabasesResponse, error)
- func DescribeDBInstanceNetInfo(ctx aliyun_resources.Context, ...) (*rds.DescribeDBInstanceNetInfoResponse, error)
- func DescribeDBInstanceResourceUsage(ctx aliyun_resources.Context, ...) (*rds.DescribeResourceUsageResponse, error)
- func DescribeDatabases(ctx aliyun_resources.Context, ...) (*rds.DescribeDatabasesResponse, error)
- func DescribeInstanceAttribute(ctx aliyun_resources.Context, ...) (*rds.DescribeDBInstanceAttributeResponse, error)
- func DescribeTags(ctx aliyun_resources.Context, instanceId string) (*rds.DescribeTagsResponse, error)
- func GetChargeType(payType string) string
- func GetInstanceDetailInfo(ctx aliyun_resources.Context, ...) (*apistructs.CloudResourceMysqlDetailInfoData, error)
- func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, ...) ([]apistructs.CloudResourceDetailInfo, error)
- func GrantAccountPrivilege(ctx aliyun_resources.Context, req apistructs.GrantMysqlAccountPrivilegeRequest) error
- func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, ...) error
- func ResetAccountPassword(ctx aliyun_resources.Context, ...) error
- func RevokeAccountPrivilege(ctx aliyun_resources.Context, req apistructs.GrantMysqlAccountPrivilegeRequest) error
- func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- func UnTag(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- type DBInstanceInDescribeDBInstancesWithTag
- type DescribeDBInstancesResponse
- type RdsFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeAccountPrivilege ¶
func ChangeAccountPrivilege(ctx aliyun_resources.Context, req apistructs.ChangeMysqlAccountPrivilegeRequest) error
func Classify ¶
func Classify(ins []DBInstanceInDescribeDBInstancesWithTag) (runningCount, gonnaExpiredCount, expiredCount, stoppedCount, postpaidCount, prepaidCount int, err error)
func CreateAccount ¶
func CreateAccount(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlAccountRequest) error
func CreateDBWithRecord ¶
func CreateDBWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest, record *dbclient.Record, detail *apistructs.CreateCloudResourceRecord) (err error)
create mysql database with record
func CreateDatabaseAccount ¶
func CreateDatabaseAccount(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBAccountsRequest) error
create accounts for a database instance --> database --> accounts
func CreateDatabases ¶
func CreateDatabases(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest) error
func CreateDatabasesWithWait ¶
func CreateDatabasesWithWait(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlDBRequest) error
create mysql databases instance id, databases
func CreateInstance ¶
func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlRequest) (*rds.CreateDBInstanceResponse, error)
create mysql instance
func CreateInstanceWithRecord ¶
func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlRequest, record *dbclient.Record)
Deprecated create mysql instance with record
func DescribeAccounts ¶
func DescribeAccounts(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlListAccountRequest) (*rds.DescribeAccountsResponse, error)
describe database info
func DescribeDBInfo ¶
func DescribeDBInfo(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) (*rds.DescribeDatabasesResponse, error)
describe database info
func DescribeDBInstanceNetInfo ¶
func DescribeDBInstanceNetInfo(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) (*rds.DescribeDBInstanceNetInfoResponse, error)
describe rds net info
func DescribeDBInstanceResourceUsage ¶
func DescribeDBInstanceResourceUsage(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) (*rds.DescribeResourceUsageResponse, error)
describe rds resource usage
func DescribeDatabases ¶
func DescribeDatabases(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlListDatabaseRequest) (*rds.DescribeDatabasesResponse, error)
describe database info
func DescribeInstanceAttribute ¶
func DescribeInstanceAttribute(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) (*rds.DescribeDBInstanceAttributeResponse, error)
func DescribeTags ¶
func DescribeTags(ctx aliyun_resources.Context, instanceId string) (*rds.DescribeTagsResponse, error)
func GetChargeType ¶
func GetInstanceDetailInfo ¶
func GetInstanceDetailInfo(ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) (*apistructs.CloudResourceMysqlDetailInfoData, error)
func GetInstanceFullDetailInfo ¶
func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, req apistructs.CloudResourceMysqlDetailInfoRequest) ([]apistructs.CloudResourceDetailInfo, error)
get rds full detail info
func GrantAccountPrivilege ¶
func GrantAccountPrivilege(ctx aliyun_resources.Context, req apistructs.GrantMysqlAccountPrivilegeRequest) error
func OverwriteTags ¶
func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string) error
func ResetAccountPassword ¶
func ResetAccountPassword(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceMysqlAccountRequest) error
func RevokeAccountPrivilege ¶
func RevokeAccountPrivilege(ctx aliyun_resources.Context, req apistructs.GrantMysqlAccountPrivilegeRequest) error
func TagResource ¶
func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
Types ¶
type DBInstanceInDescribeDBInstancesWithTag ¶
type DBInstanceInDescribeDBInstancesWithTag struct { rds.DBInstance Tag map[string]string `json:"tag"` }
func List ¶
func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, regions []string, cluster string) ([]DBInstanceInDescribeDBInstancesWithTag, int, error)
type DescribeDBInstancesResponse ¶
type DescribeDBInstancesResponse struct { aliyun_resources.ResponsePager DBInstances []rds.DBInstance }
func DescribeResource ¶
func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string, projName string) (DescribeDBInstancesResponse, error)
func ListByCluster ¶
func ListByCluster(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string) (DescribeDBInstancesResponse, error)
type RdsFactory ¶
type RdsFactory struct {
*resource_factory.BaseResourceFactory
}
Click to show internal directories.
Click to hide internal directories.