Documentation
¶
Index ¶
- type Driver
- func (d *Driver) CreateAccount(ctx context.Context, region, instanceID string) (schema.DatabaseActionResult, error)
- func (d *Driver) DeleteAccount(ctx context.Context, region, instanceID string) (schema.DatabaseActionResult, error)
- func (d *Driver) GetDatabases(ctx context.Context) ([]schema.Database, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶ added in v0.0.9
type Driver struct {
Cred auth.Credential
Regions []string
DomainID string
Client *api.Client
// contains filtered or unexported fields
}
func (*Driver) CreateAccount ¶ added in v0.3.1
func (d *Driver) CreateAccount(ctx context.Context, region, instanceID string) (schema.DatabaseActionResult, error)
CreateAccount provisions a Huawei RDS database account on the named instance. The endpoint family is `/v3/{project}/instances/{id}/db_user` (POST). engine routing is left to RDS itself — the MySQL path also serves PostgreSQL with the same payload shape.
func (*Driver) DeleteAccount ¶ added in v0.3.1
func (d *Driver) DeleteAccount(ctx context.Context, region, instanceID string) (schema.DatabaseActionResult, error)
DeleteAccount revokes the account named by the `rds-account-check` config.
Click to show internal directories.
Click to hide internal directories.