rds

package
v0.36.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

CreatePatch creates a *v1beta1.RDSInstanceParameters that has only the changed values between the target *v1beta1.RDSInstanceParameters and the current *rds.DBInstance

func GenerateCreateRDSInstanceInput

func GenerateCreateRDSInstanceInput(name, password string, p *v1beta1.RDSInstanceParameters) *rds.CreateDBInstanceInput

GenerateCreateRDSInstanceInput from RDSInstanceSpec

func GenerateModifyDBInstanceInput

func GenerateModifyDBInstanceInput(name string, p *v1beta1.RDSInstanceParameters) *rds.ModifyDBInstanceInput

GenerateModifyDBInstanceInput from RDSInstanceSpec

func GenerateObservation

func GenerateObservation(db rdstypes.DBInstance) v1beta1.RDSInstanceObservation

GenerateObservation is used to produce v1alpha3.RDSInstanceObservation from rds.DBInstance.

func GenerateRestoreRDSInstanceFromS3Input

func GenerateRestoreRDSInstanceFromS3Input(name, password string, p *v1beta1.RDSInstanceParameters) *rds.RestoreDBInstanceFromS3Input

GenerateRestoreRDSInstanceFromS3Input from RDSInstanceSpec

func GenerateRestoreRDSInstanceFromSnapshotInput

func GenerateRestoreRDSInstanceFromSnapshotInput(name string, p *v1beta1.RDSInstanceParameters) *rds.RestoreDBInstanceFromDBSnapshotInput

GenerateRestoreRDSInstanceFromSnapshotInput from RDSInstanceSpec

func GenerateRestoreRDSInstanceToPointInTimeInput

func GenerateRestoreRDSInstanceToPointInTimeInput(name string, p *v1beta1.RDSInstanceParameters) *rds.RestoreDBInstanceToPointInTimeInput

GenerateRestoreRDSInstanceToPointInTimeInput from RDSInstanceSpec

func GetConnectionDetails

func GetConnectionDetails(in v1beta1.RDSInstance) managed.ConnectionDetails

GetConnectionDetails extracts managed.ConnectionDetails out of v1beta1.RDSInstance.

func GetPassword

func GetPassword(ctx context.Context, kube client.Client, in *xpv1.SecretKeySelector, out *xpv1.SecretReference) (newPwd string, changed bool, err error)

GetPassword fetches the referenced input password for an RDSInstance CRD and determines whether it has changed or not

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function to test for ErrCodeDBInstanceNotFoundFault error

func IsUpToDate

IsUpToDate checks whether there is a change in any of the modifiable fields.

func LateInitialize

func LateInitialize(in *v1beta1.RDSInstanceParameters, db *rdstypes.DBInstance)

LateInitialize fills the empty fields in *v1beta1.RDSInstanceParameters with the values seen in rds.DBInstance.

Types

type Client

Client defines RDS RDSClient operations

func NewClient

func NewClient(cfg *aws.Config) Client

NewClient creates new RDS RDSClient with provided AWS Configurations/Credentials

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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