transfer

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: AGPL-3.0 Imports: 11 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 transfer moves a subtree in one direction between a local root and an endpoint root. It is what `agyn sandbox cp` drives.

A copy is not a relationship: there is no ancestor, no watching, and no conflict handling, because there are no two sides to keep in agreement over time. What it shares with sync is the staged, atomic write — content lands whole or not at all.

Index

Constants

This section is empty.

Variables

View Source
var Discard io.Writer = io.Discard

Discard is an io.Writer sink used when a body must be drained but not kept.

Functions

This section is empty.

Types

type Report

type Report struct {
	Files       int
	Directories int
	Bytes       int64
	// Skipped names entries a copy cannot carry — sockets, devices — reported
	// rather than silently dropped.
	Skipped []string
}

Report is what a copy did, for the caller to print.

func Pull

func Pull(c *client.Client, remoteRel, localPath string, recursive bool) (*Report, error)

Pull copies remoteRel out of the endpoint's root to localPath.

func Push

func Push(c *client.Client, localPath, remoteRel string, recursive bool) (*Report, error)

Push copies localPath into the endpoint's root at remoteRel. recursive must be set for a directory, matching cp.

Jump to

Keyboard shortcuts

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