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 ¶
IsDBSubnetGroupNotFoundErr returns true if the error is because the item doesn't exist
func IsErrorAlreadyExists ¶
IsErrorAlreadyExists returns true if the supplied error indicates a cluster does already exists.
func IsErrorNotFound ¶
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
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.
Click to show internal directories.
Click to hide internal directories.