database

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func New

func New(provider Provider) *Database

func (*Database) Lookup

func (db *Database) Lookup(ctx context.Context, name string) (*types.Node, error)

Lookup database ID using human-friendly name

func (*Database) LookupAll

func (db *Database) LookupAll(ctx context.Context) ([]types.Node, error)

type Provider

type Provider interface {
	DescribeDBInstances(
		context.Context,
		*rds.DescribeDBInstancesInput,
		...func(*rds.Options),
	) (*rds.DescribeDBInstancesOutput, error)
}

Jump to

Keyboard shortcuts

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