callbackFS wraps a base filesystem and delegates certain operations to the client via RPC callbacks. This allows the API client to provide a virtual filesystem (e.g., in-memory files for testing). The callbacks to enable are specified at construction time via the --callbacks CLI flag. The connectio
| 17 | // --callbacks CLI flag. The connection is set via SetConnection after |
| 18 | // the transport connection is established. |
| 19 | type callbackFS struct { |
| 20 | base vfs.FS |
| 21 | enabledCallbacks map[string]bool |
| 22 | |
| 23 | // conn and ctx are set after connection is established |
| 24 | conn Conn |
| 25 | ctx context.Context |
| 26 | } |
| 27 | |
| 28 | // Callback names that can be enabled |
| 29 | const ( |
nothing calls this directly
no outgoing calls
no test coverage detected