rds

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDBInstanceInput

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

CreateDBInstanceInput from RDSInstanceSpec

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, *v1alpha1.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 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