Documentation
¶
Index ¶
- type RDS
- func (r *RDS) CreateDatabase(ctx context.Context, db *crd.Database) (string, error)
- func (r *RDS) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error
- func (r *RDS) DeleteDatabase(ctx context.Context, db *crd.Database) error
- func (r *RDS) DeleteService(ctx context.Context, namespace string, dbname string) error
- func (r *RDS) GetSecret(ctx context.Context, namespace string, name string, key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RDS ¶
type RDS struct { EC2 *ec2.Client Config aws.Config Subnets []string SecurityGroups []string VpcId string ServiceProvider provider.ServiceProvider }
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 (r *RDS) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error
CreateService Creates or updates a service in Kubernetes with the new information
func (*RDS) DeleteDatabase ¶
func (*RDS) DeleteService ¶
Click to show internal directories.
Click to hide internal directories.