rds

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 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

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

type RDSClient

type RDSClient struct {
	// contains filtered or unexported fields
}

RDSClient implements RDS RDSClient

func (*RDSClient) CreateInstance

func (r *RDSClient) CreateInstance(name, password string, spec *v1alpha1.RDSInstanceSpec) (*Instance, error)

CreateInstance creates RDS Instance with provided Specification

func (*RDSClient) DeleteInstance

func (r *RDSClient) DeleteInstance(name string) (*Instance, error)

DeleteInstance deletes RDS Instance

func (*RDSClient) GetInstance

func (r *RDSClient) GetInstance(name string) (*Instance, error)

GetInstance finds RDS Instance by name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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