rds

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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.

func (*Driver) GetDatabases added in v0.0.9

func (d *Driver) GetDatabases(ctx context.Context) ([]schema.Database, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL