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

Function awsOpenOptions

backend/store/dbauth/aws.go:108–113  ·  view source on GitHub ↗
(authConfig *awsConfig, tokenProvider awsTokenProvider)

Source from the content-addressed store, hash-verified

106}
107
108func awsOpenOptions(authConfig *awsConfig, tokenProvider awsTokenProvider) []stdlib.OptionOpenDB {
109 if authConfig == nil || !authConfig.enabled {
110 return nil
111 }
112 return []stdlib.OptionOpenDB{stdlib.OptionBeforeConnect(newAWSBeforeConnect(authConfig, tokenProvider))}
113}

Callers 2

configureAWSFunction · 0.85
TestAWSOpenOptionsFunction · 0.85

Calls 1

newAWSBeforeConnectFunction · 0.85

Tested by 1

TestAWSOpenOptionsFunction · 0.68