Documentation
¶
Index ¶
- type Driver
- func (d *Driver) CreateAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)
- func (d *Driver) DeleteAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)
- func (d *Driver) ListMariaDB(ctx context.Context) ([]schema.Database, error)
- func (d *Driver) ListMySQL(ctx context.Context) ([]schema.Database, error)
- func (d *Driver) ListPostgreSQL(ctx context.Context) ([]schema.Database, error)
- func (d *Driver) ListSQLServer(ctx context.Context) ([]schema.Database, error)
- func (d *Driver) LookupInstance(ctx context.Context, instanceID string) (api.CDBInstanceInfo, bool, error)
- func (d *Driver) PartialError() error
- func (d *Driver) SetClientOptions(opts ...api.Option)
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 (*Driver) ListPostgreSQL ¶ added in v0.0.9
func (*Driver) ListSQLServer ¶ added in v0.0.9
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 (*Driver) SetClientOptions ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.