rds

package
v0.0.0-...-30f5d34 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDS

type RDS struct {
	EC2            *ec2.EC2
	Subnets        []string
	SecurityGroups []string
}

RDS represents AWS RDS database

func New

func New(db *crd.RDSDatabase, kc *kubernetes.Clientset) (*RDS, error)

New compiles a new RDS struct based on the CR

func (*RDS) CreateRDSDatabase

func (r *RDS) CreateRDSDatabase(db *crd.RDSDatabase) (*provider.DBEndpoint, error)

CreateRDSDatabase creates a database from the CRD database object, is also ensures that the correct subnets are created for the database so we can access it

func (*RDS) DeleteRDSDatabase

func (r *RDS) DeleteRDSDatabase(db *crd.RDSDatabase) error

DeleteRDSDatabase attempts to delete the RDS database

func (*RDS) GetSecret

func (k *RDS) GetSecret(namespace string, name string) (*v1.Secret, error)

Jump to

Keyboard shortcuts

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