rds

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package rds wraps the JDCloud RDS account lifecycle used by rds-account-check. Replay fixtures and focused tests cover the account create/delete request paths used by this validation flow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client *api.Client
	Region string
}

func (*Driver) CreateAccount

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

CreateAccount provisions an RDS account on instanceID via the standard `/v1/regions/<region>/instances/<id>/accounts` POST.

func (*Driver) DeleteAccount

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

DeleteAccount revokes the RDS account named by `rds-account-check` from instanceID.

func (*Driver) GetDatabases

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

GetDatabases lists JDCloud RDS instances in the configured region and surfaces them as the cloudlist `database` asset.

Jump to

Keyboard shortcuts

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