MCPcopy Create free account
hub / github.com/bytebase/bytebase / configureAWS

Function configureAWS

backend/store/dbauth/auth.go:49–55  ·  view source on GitHub ↗
(ctx context.Context, authConfig *awsConfig)

Source from the content-addressed store, hash-verified

47}
48
49func 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
57func configureGCP(ctx context.Context, pgxConfig *pgx.ConnConfig, authConfig *gcpConfig) ([]stdlib.OptionOpenDB, func() error, error) {
58 dialer, err := newGCPMetadataDBDialer(ctx, authConfig.ipType)

Callers 1

ConfigureFunction · 0.85

Calls 2

awsOpenOptionsFunction · 0.85

Tested by

no test coverage detected