maincmd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Overview

Package maincmd implements a subset of the '$ rsync' CLI surface, namely that it can:

  • serve as a server daemon over TCP or SSH (via SSH session stdin/stdout)
  • act as "client" CLI for connecting to the server
  • Not yet implemented: both "client" and "server" can act as the sender and the receiver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientRun added in v0.2.4

func ClientRun(osenv rsyncos.Std, opts *rsyncopts.Options, conn io.ReadWriter, paths []string, negotiate bool) (*rsyncstats.TransferStats, error)

rsync/main.c:client_run

func Main

func Main(ctx context.Context, args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer, cfg *rsyncdconfig.Config) (*rsyncstats.TransferStats, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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