rds

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDBInstanceInput

func CreateDBInstanceInput(name, password string, spec *v1alpha2.RDSInstanceSpec) *rds.CreateDBInstanceInput

CreateDBInstanceInput from RDSInstanceSpec

func IsDBSubnetGroupNotFoundErr

func IsDBSubnetGroupNotFoundErr(err error) bool

IsDBSubnetGroupNotFoundErr returns true if the error is because the item doesn't exist

func IsErrorAlreadyExists

func IsErrorAlreadyExists(err error) bool

IsErrorAlreadyExists returns true if the supplied error indicates a cluster does already exists.

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function to test for ErrCodeDBInstanceNotFoundFault error

Types

type Client

type Client interface {
	CreateInstance(string, string, *v1alpha2.RDSInstanceSpec) (*Instance, error)
	GetInstance(name string) (*Instance, error)
	DeleteInstance(name string) (*Instance, error)
}

Client defines RDS RDSClient operations

func NewClient

func NewClient(config *aws.Config) Client

NewClient creates new RDS RDSClient with provided AWS Configurations/Credentials

type DBSubnetGroupClient

type DBSubnetGroupClient interface {
	CreateDBSubnetGroupRequest(input *rds.CreateDBSubnetGroupInput) rds.CreateDBSubnetGroupRequest
	DeleteDBSubnetGroupRequest(input *rds.DeleteDBSubnetGroupInput) rds.DeleteDBSubnetGroupRequest
	DescribeDBSubnetGroupsRequest(input *rds.DescribeDBSubnetGroupsInput) rds.DescribeDBSubnetGroupsRequest
}

DBSubnetGroupClient is the external client used for DBSubnetGroup Custom Resource

func NewDBSubnetGroupClient

func NewDBSubnetGroupClient(cfg *aws.Config) (DBSubnetGroupClient, error)

NewDBSubnetGroupClient returns a new client using AWS credentials as JSON encoded data.

type Instance

type Instance struct {
	Name     string
	ARN      string
	Status   string
	Endpoint string
}

Instance crossplane representation of the to AWS DBInstance

func NewInstance

func NewInstance(instance *rds.DBInstance) *Instance

NewInstance returns new Instance structure

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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