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

Method Open

internal/proxy/fuse.go:89–93  ·  view source on GitHub ↗

Open implements fs.NodeOpener and supports opening the README as a read-only file.

(_ context.Context, _ uint32)

Source from the content-addressed store, hash-verified

87// Open implements fs.NodeOpener and supports opening the README as a read-only
88// file.
89func (*readme) Open(_ context.Context, _ uint32) (fs.FileHandle, uint32, syscall.Errno) {
90 df := nodefs.NewDataFile([]byte(readmeText))
91 rf := nodefs.NewReadOnlyFile(df)
92 return rf, 0, fs.OK
93}

Callers 1

proxyConnTestWithReadyFunction · 0.80

Calls

no outgoing calls

Tested by 1

proxyConnTestWithReadyFunction · 0.64