Documentation
¶
Overview ¶
Package fs is the RemoHop fs service: remote file access, transfer and mounting. Importing it registers everything:
- the host services "fs", "fs.get" and "fs.put" (package rfs), which expose the host user's filesystem;
- `remohop <ID> cp` and `remohop <ID> sync` (package xfer);
- `remohop <ID> mount` and `remohop umount` (package mount).
The Go API lives in those packages; the common entry points are re-exported here so callers such as the MCP server need only this import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyOptions ¶
type CopyOptions = xfer.CopyOptions
CopyOptions, CopyResult, SyncOptions and SyncResult configure and report Copy and Sync.
type CopyResult ¶
type CopyResult = xfer.CopyResult
func Copy ¶
func Copy(ctx context.Context, c *Client, srcs []Path, dst Path, o CopyOptions) (*CopyResult, error)
Copy copies files with cp/scp semantics (see xfer.Copy).
type MountOptions ¶
MountOptions configure mount.New (Linux and macOS only).
type SyncOptions ¶
type SyncOptions = xfer.SyncOptions
type SyncResult ¶
type SyncResult = xfer.SyncResult
func Sync ¶
func Sync(ctx context.Context, c *Client, src, dst Path, o SyncOptions) (*SyncResult, error)
Sync mirrors one directory onto another across the session (see xfer.Sync).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mount implements `remohop <ID> mount` and `remohop umount`: a directory of the remote machine shown as a local directory (or drive), so local editors, IDEs and tools work on remote code directly.
|
Package mount implements `remohop <ID> mount` and `remohop umount`: a directory of the remote machine shown as a local directory (or drive), so local editors, IDEs and tools work on remote code directly. |
|
Package rfs is the remote filesystem protocol of the RemoHop fs service: the host handlers that expose the host user's filesystem and the Client that the CLI commands (cp, sync, mount) and the MCP server use.
|
Package rfs is the remote filesystem protocol of the RemoHop fs service: the host handlers that expose the host user's filesystem and the Client that the CLI commands (cp, sync, mount) and the MCP server use. |
|
Package xfer implements file transfer between the local machine and a RemoHop host: `remohop <ID> cp` and `remohop <ID> sync`, as a library (Copy, Sync) with thin CLI wrappers.
|
Package xfer implements file transfer between the local machine and a RemoHop host: `remohop <ID> cp` and `remohop <ID> sync`, as a library (Copy, Sync) with thin CLI wrappers. |