lib

package
v0.0.0-...-730c940 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

func CheckIsReplica(client *rds.Client, identifier *string) (bool, error)

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

func PromoteReplicaToPrimary(client *rds.Client, identifier *string) error

PromoteReplicaToPrimary will Promote a backup instqnce to primary

func PromteToPrimary

func PromteToPrimary(client *elasticache.Client, region string, data map[string]string) error

PromteToPrimary func

Types

This section is empty.

Jump to

Keyboard shortcuts

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