Documentation
¶
Index ¶
Constants ¶
View Source
const MaxRdsRetriesSec = 5
View Source
const (
Rds2019 = iota
)
View Source
const RdsRootCert2019 = `` /* 1456-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func MakeCaCertFile ¶
func MakeCaCertFile(version RdsCaVersion) (string, error)
Types ¶
type PgConnectorWithRds ¶
type PgConnectorWithRds struct {
// contains filtered or unexported fields
}
func MakePgConnector ¶
func MakePgConnector(ctx context.Context, connStr string, sslCaPath string, config aws.Config) (*PgConnectorWithRds, error)
Create a Postgres connector to use with NewRelic. The PgConnector supports resolving RDS endpoints and AWS secrets-based authentication. Example conn string: "rdsDb=terra-rds dbName=terra secretName=terra-rds-admin"
func (*PgConnectorWithRds) Driver ¶
func (pc *PgConnectorWithRds) Driver() driver.Driver
type RdsCaVersion ¶
type RdsCaVersion int
Click to show internal directories.
Click to hide internal directories.