MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / UnixAddress

Function UnixAddress

internal/proxy/unix.go:24–26  ·  view source on GitHub ↗

UnixAddress is defined as a function to distinguish between Unix-based implementations where the dir and inst are simply joined, and Windows-based implementations where the inst must be further altered.

(dir, inst string)

Source from the content-addressed store, hash-verified

22// implementations where the dir and inst are simply joined, and Windows-based
23// implementations where the inst must be further altered.
24func UnixAddress(dir, inst string) string {
25 return filepath.Join(dir, inst)
26}

Callers 6

TestMySQLUnixFunction · 0.92
TestMySQLMCPUnixFunction · 0.92
TestPostgresFUSEConnectFunction · 0.92
TestPostgresUnixFunction · 0.92
TestPostgresMCPUnixFunction · 0.92
newUnixSocketMountFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestMySQLUnixFunction · 0.74
TestMySQLMCPUnixFunction · 0.74
TestPostgresFUSEConnectFunction · 0.74
TestPostgresUnixFunction · 0.74
TestPostgresMCPUnixFunction · 0.74