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 IsErrorNotFound ¶
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
type Instance ¶
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 ¶
DeleteInstance deletes RDS Instance
Click to show internal directories.
Click to hide internal directories.