fs

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Client

type Client = rfs.Client

Client is a remote filesystem session (see rfs.Client).

func NewClient

func NewClient(ctx context.Context, conn *peer.Conn) (*Client, error)

NewClient opens a filesystem session on conn.

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 File

type File = rfs.File

File is an open remote file.

type FileInfo

type FileInfo = rfs.FileInfo

FileInfo describes a remote file; it implements io/fs.FileInfo.

type MountOptions

type MountOptions = mount.Options

MountOptions configure mount.New (Linux and macOS only).

type Path

type Path = xfer.Path

Path is a local or (":"-prefixed) remote transfer path.

func ParsePath

func ParsePath(s string) Path

ParsePath parses a command-line transfer path (":remote" or local).

type PutOptions

type PutOptions = rfs.PutOptions

PutOptions control atomic remote writes.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL