{"modulePath":"github.com/GoogleCloudPlatform/cloudsql-proxy","version":"v1.37.13","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\ncloudsql-proxy can be used as a proxy to Cloud SQL databases. It supports connecting to many instances and authenticating via different means. Specifically, a list of instances may be provided on the command line, in GCE metadata (for VMs), or provided during connection time via a FUSE-mounted directory. See flags for a more specific explanation.\n\n## Functions\n\n```go\nfunc CreateInstanceConfigs(dir string, useFuse bool, instances []string, instancesSrc string, cl *http.Client, skipFailedInstanceConfigs bool) ([]instanceConfig, error)\n```\nCreateInstanceConfigs verifies that the parameters passed to it are valid for the proxy for the platform and system and then returns a slice of valid instanceConfig. It is possible for the instanceConfig to be empty if no valid configurations were specified, however \\`err\\` will be set.\n\n```go\nfunc WatchInstances(dir string, cfgs []instanceConfig, updates \u003c-chan string, cl *http.Client) (\u003c-chan proxy.Conn, error)\n```\nWatchInstances handles the lifecycle of local sockets used for proxying local connections.  Values received from the updates channel are interpretted as a comma-separated list of instances.  The set of sockets in 'dir' is the union of 'instances' and the most recent list from 'updates'.\n\n","path":"github.com/GoogleCloudPlatform/cloudsql-proxy/cmd/cloud_sql_proxy","name":"main","synopsis":"cloudsql-proxy can be used as a proxy to Cloud SQL databases.","isRedistributable":true}
