aws

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRDSClientFactory

func NewRDSClientFactory(awsMaker blip.AWSConfigFactory) rdsClientFactory

func Region

func Region(ctx context.Context) (string, error)

Region auto-detects the region. Currently, the function relies on IMDS v2: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html If the region cannot be detect, it returns an empty string.

func RegisterRDSCA

func RegisterRDSCA()

RegisterRDSCA registers the Amazon RDS certificate authority (CA) to enable TLS connections to RDS. The TLS param is called "rds". It is only registered once (as required by Go), but it's safe to call multiple times.

Types

type AuthToken

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

func NewAuthToken

func NewAuthToken(username, hostname string, cfg aws.Config) AuthToken

func (AuthToken) Password

func (a AuthToken) Password(ctx context.Context) (string, error)

type ConfigFactory

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

func (*ConfigFactory) Make

func (f *ConfigFactory) Make(ba blip.AWS, endpoint string) (aws.Config, error)

type RDSClientFactory

type RDSClientFactory interface {
	Make(blip.AWS) (RDSClient, error)
}

type RDSLoader

type RDSLoader struct {
	ClientFactory RDSClientFactory
}

func (RDSLoader) Load

func (rl RDSLoader) Load(ctx context.Context, cfg blip.Config) ([]blip.ConfigMonitor, error)

Load calls DescribeDBInstances to return a list of RDS instances. This is equivalent to the command "aws rds describe-db-instances".

type Secret

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

func NewSecret

func NewSecret(name string, cfg aws.Config) Secret

func (Secret) Password

func (s Secret) Password(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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