Documentation ¶
Index ¶
- func CheckIsRDSReplica(client DescribeRDSInstancesAPI, identifier *string) (bool, error)
- func GetPrimaryDNS(ctx context.Context, client *rds.Client, id string) (*string, error)
- func PromoteRDSMySQLReplicaToPrimary(client PromoteReadReplicaAPI, identifier *string) error
- type DescribeRDSInstancesAPI
- type PromoteReadReplicaAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsRDSReplica ¶
func CheckIsRDSReplica(client DescribeRDSInstancesAPI, identifier *string) (bool, error)
CheckIsRDSReplica will check if the instance is a replica
func GetPrimaryDNS ¶
func PromoteRDSMySQLReplicaToPrimary ¶
func PromoteRDSMySQLReplicaToPrimary(client PromoteReadReplicaAPI, identifier *string) error
PromoteRDSMySQLReplicaToPrimary will Promote a backup instqnce to primary
Types ¶
type DescribeRDSInstancesAPI ¶
type DescribeRDSInstancesAPI interface {
DescribeDBInstances(ctx context.Context, params *rds.DescribeDBInstancesInput, optFns ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)
}
type PromoteReadReplicaAPI ¶
type PromoteReadReplicaAPI interface {
PromoteReadReplica(ctx context.Context, params *rds.PromoteReadReplicaInput, optFns ...func(*rds.Options)) (*rds.PromoteReadReplicaOutput, error)
}
Click to show internal directories.
Click to hide internal directories.