(ctx context.Context, authConfig *awsConfig)
| 47 | } |
| 48 | |
| 49 | func configureAWS(ctx context.Context, authConfig *awsConfig) ([]stdlib.OptionOpenDB, func() error, error) { |
| 50 | tokenProvider, err := newAWSMetadataDBTokenProvider(ctx, authConfig.region) |
| 51 | if err != nil { |
| 52 | return nil, nil, err |
| 53 | } |
| 54 | return awsOpenOptions(authConfig, tokenProvider), nil, nil |
| 55 | } |
| 56 | |
| 57 | func configureGCP(ctx context.Context, pgxConfig *pgx.ConnConfig, authConfig *gcpConfig) ([]stdlib.OptionOpenDB, func() error, error) { |
| 58 | dialer, err := newGCPMetadataDBDialer(ctx, authConfig.ipType) |
no test coverage detected