{"modulePath":"github.com/GoogleCloudPlatform/cloud-sql-proxy","version":"v1.14.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package fuse\n\nPackage fuse provides a connection source wherein the user does not need to specify which instance they are connecting to before they start the executable. Instead, simply attempting to access a file in the provided directory will transparently create a proxied connection to an instance which has that name.\n\nSpecifically, given that NewConnSrc was called with the mounting directory as /cloudsql:\n\n 1. Execute \\`mysql -S /cloudsql/speckle:instance\\`\n 2. The 'mysql' executable looks up the file \"speckle:instance\" inside \"/cloudsql\"\n 3. This lookup is intercepted by the code in this package. A local unix socket located in a temporary directory is opened for listening and the lookup for \"speckle:instance\" returns to mysql saying that it is a symbolic link pointing to this new local socket.\n 4. mysql dials the local unix socket, creating a new connection to the specified instance.\n\n## Functions\n\n```go\nfunc NewConnSrc(mountdir, tmpdir string, connset *proxy.ConnSet) (\u003c-chan proxy.Conn, io.Closer, error)\n```\nNewConnSrc returns a source of new connections based on Lookups in the provided mount directory. If there isn't a directory located at tmpdir one is created. The second return parameter can be used to shutdown and release any resources. As a result of this shutdown, or during any other fatal error, the returned chan will be closed.\n\nThe connset parameter is optional.\n\n```go\nfunc Supported() bool\n```\nSupported returns true if the current system supports FUSE. TODO: for OSX, check to see if OSX FUSE is installed.\n\n","path":"github.com/GoogleCloudPlatform/cloud-sql-proxy/proxy/fuse","name":"fuse","synopsis":"Package fuse provides a connection source wherein the user does not need to specify which instance they are connecting to before they start the executable.","isRedistributable":true}
