Documentation ¶
Index ¶
- type RDS
- func (r *RDS) CreateDatabase(db *crd.Database) (*provider.DBEndpoint, error)
- func (k *RDS) CreateService(namespace string, dbEndpoint *provider.DBEndpoint, internalname string, ...) (*v1.Service, error)
- func (r *RDS) DeleteDatabase(db *crd.Database) error
- func (k *RDS) DeleteService(namespace string, dbname string) error
- func (k *RDS) GetSecret(namespace string, name string) (*v1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RDS ¶
type RDS struct { EC2 *ec2.EC2 Subnets []string SecurityGroups []string ServiceProvider provider.ServiceProvider }
RDS represents AWS RDS database
func (*RDS) CreateDatabase ¶
CreateDatabase creates a database from the CRD database object, is also ensures that the correct subnets are created for the database so we can access it
func (*RDS) CreateService ¶
func (k *RDS) CreateService(namespace string, dbEndpoint *provider.DBEndpoint, internalname string, owner *crd.Database) (*v1.Service, error)
CreateService Creates or updates a service in Kubernetes with the new information
func (*RDS) DeleteDatabase ¶
DeleteDatabase attempts to delete the RDS database
Click to show internal directories.
Click to hide internal directories.