aws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInstanceResult

type DBInstanceResult struct {
	Instance types.DBInstance
	Error    error
}

DBInstanceResult is wrapper around a DBInstance or error as a result of listing RDS Instances

type RDSClient

type RDSClient interface {
	GetPostgresInstances(ctx context.Context) <-chan DBInstanceResult
	NewAuthToken(ctx context.Context, host, region, user string) (string, error)
	RegionForInstance(inst types.DBInstance) (string, error)
}

RDSClient is our wrapper around the RDS library, allows us to mock this for testing

func NewRDSClient

func NewRDSClient(ctx context.Context) (RDSClient, error)

NewRDSClient loads AWS Config and creds, and returns an RDS client

Jump to

Keyboard shortcuts

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