rds

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 20 Imported by: 1

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.Client
	Config          aws.Config
	Subnets         []string
	SecurityGroups  []string
	VpcId           string
	ServiceProvider provider.ServiceProvider
}

func New

func New(ctx context.Context, db *crd.Database, kc *kubernetes.Clientset) (*RDS, error)

func (*RDS) CreateDatabase

func (r *RDS) CreateDatabase(ctx context.Context, db *crd.Database) (string, error)

CreateDatabase 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) CreateService

func (r *RDS) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error

CreateService Creates or updates a service in Kubernetes with the new information

func (*RDS) DeleteDatabase

func (r *RDS) DeleteDatabase(ctx context.Context, db *crd.Database) error

func (*RDS) DeleteService

func (r *RDS) DeleteService(ctx context.Context, namespace string, dbname string) error

func (*RDS) GetSecret

func (r *RDS) GetSecret(ctx context.Context, namespace string, name string, key string) (string, error)

Jump to

Keyboard shortcuts

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