Documentation ¶
Index ¶
- func ChangeASGCapacity(client autoscaling.Client, name *string, number int32) error
- func CheckASGCapacity(client *autoscaling.Client, name string) (int, error)
- func CheckIsReplica(client *rds.Client, identifier *string) (bool, error)
- func GetAllSecondaryReplicationGroup(client *elasticache.Client) (map[string]string, error)
- func ListASGWithSpecificTag(client *autoscaling.Client, tagname, tagvalue string) ([]*string, error)
- func ListDBInstancesWithSpecificTag(client *rds.Client, tagname, tagvalue string) ([]*string, error)
- func PromoteReplicaToPrimary(client *rds.Client, identifier *string) error
- func PromteToPrimary(client *elasticache.Client, region string, data map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeASGCapacity ¶
func ChangeASGCapacity(client autoscaling.Client, name *string, number int32) error
ChangeASGCapacity will set a new desired capacity
func CheckASGCapacity ¶
func CheckASGCapacity(client *autoscaling.Client, name string) (int, error)
CheckASGCapacity will return the number of instances currently belonging to a ASG
func CheckIsReplica ¶
CheckIsReplica will check if the instance is a replica
func GetAllSecondaryReplicationGroup ¶
func GetAllSecondaryReplicationGroup(client *elasticache.Client) (map[string]string, error)
GetAllSecondaryReplicationGroup func
func ListASGWithSpecificTag ¶
func ListASGWithSpecificTag(client *autoscaling.Client, tagname, tagvalue string) ([]*string, error)
ListASGWithSpecificTag will return list of asg arn carrying specific tag
func ListDBInstancesWithSpecificTag ¶
func ListDBInstancesWithSpecificTag(client *rds.Client, tagname, tagvalue string) ([]*string, error)
ListDBInstancesWithSpecificTag will return a list of db identifier
func PromoteReplicaToPrimary ¶
PromoteReplicaToPrimary will Promote a backup instqnce to primary
func PromteToPrimary ¶
PromteToPrimary func
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.