awsrds

package module
v0.0.0-...-44d78a2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint    string // Endpoint takes the form of host:port
	Region      string
	User        string
	Credentials aws.CredentialsProvider
}

Config contains configuration information.

type Store

type Store struct {
	*Config
	// contains filtered or unexported fields
}

Store is a Store implementation for AWS RDS. https://aws.amazon.com/premiumsupport/knowledge-center/users-connect-rds-iam/

func NewStore

func NewStore(c *Config) (*Store, error)

NewStore creates a new RDS-backed store.

func (*Store) Get

func (v *Store) Get(ctx context.Context) (driver.Credentials, error)

Get implements the Store interface.

func (*Store) Refresh

func (v *Store) Refresh(ctx context.Context) (driver.Credentials, error)

Refresh implements the store interface.

Jump to

Keyboard shortcuts

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