Documentation
¶
Index ¶
- func GetCloudSQLOpts(ipType, userAgent string, useIAM bool) ([]cloudsqlconn.Option, error)
- func GetIAMPrincipalEmailFromADC(ctx context.Context) (string, error)
- func InitConnectionSpan(ctx context.Context, tracer trace.Tracer, sourceKind, sourceName string) (context.Context, trace.Span)
- type Dialect
- type IPType
- type Source
- type SourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCloudSQLOpts ¶ added in v0.1.0
func GetCloudSQLOpts(ipType, userAgent string, useIAM bool) ([]cloudsqlconn.Option, error)
GetCloudSQLDialOpts retrieve dial options with the right ip type and user agent for cloud sql databases.
func GetIAMPrincipalEmailFromADC ¶ added in v0.4.0
GetIAMPrincipalEmailFromADC finds the email associated with ADC
Types ¶
type Dialect ¶ added in v0.0.3
type Dialect string
Dialect represents the dialect type of a database.
Click to show internal directories.
Click to hide internal directories.