cdb

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: 11 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 {
	Credential auth.Credential
	Region     string
	// contains filtered or unexported fields
}

func (*Driver) CreateAccount added in v0.3.1

func (d *Driver) CreateAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)

CreateAccount provisions a CDB account on the named instance using the `rds-account-check` config. The username/password come from `env.Active().RDSAccount` (form `username:password`).

func (*Driver) DeleteAccount added in v0.3.1

func (d *Driver) DeleteAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)

DeleteAccount removes the CDB account named by the `rds-account-check` config from the supplied instance.

func (*Driver) ListMariaDB added in v0.0.9

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

func (*Driver) ListMySQL added in v0.0.9

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

func (*Driver) ListPostgreSQL added in v0.0.9

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

func (*Driver) ListSQLServer added in v0.0.9

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

func (*Driver) LookupInstance added in v0.3.1

func (d *Driver) LookupInstance(ctx context.Context, instanceID string) (api.CDBInstanceInfo, bool, error)

LookupInstance scans CDB to confirm an instanceID is reachable. Used by the shell helper to look up region context for region=all sessions.

func (*Driver) PartialError added in v0.2.4

func (d *Driver) PartialError() error

func (*Driver) SetClientOptions added in v0.2.1

func (d *Driver) SetClientOptions(opts ...api.Option)

Jump to

Keyboard shortcuts

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