dialer

package
v1.79.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer struct {
	// contains filtered or unexported fields
}

Dialer connects to Cloud SQL instances the way the Cloud SQL Auth Proxy does: TLS 1.3 to the instance's server-side proxy, authenticated by an ephemeral client certificate from the Admin API. The returned connection speaks the database protocol directly, so a Postgres driver dials through it with its own TLS turned off.

func New

func New(client *cloud_sql.Client, loginTokenSource token_source.TokenSource, options ...dialer_config.Option) (*Dialer, error)

func (*Dialer) Dial

func (d *Dialer) Dial(ctx context.Context, connectionNameString string) (net.Conn, error)

Dial returns a handshaken TLS connection to the instance named by connectionName (`project:region:instance`).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL