lxd: github.com/lxc/lxd/lxd/rsync Index | Files

package rsync

import "github.com/lxc/lxd/lxd/rsync"

Index

Package Files

rsync.go

func AtLeast Uses

func AtLeast(min string) bool

AtLeast compares the local version to a minimum version.

func LocalCopy Uses

func LocalCopy(source string, dest string, bwlimit string, xattrs bool, rsyncArgs ...string) (string, error)

LocalCopy copies a directory using rsync (with the --devices option).

func Recv Uses

func Recv(path string, conn io.ReadWriteCloser, tracker *ioprogress.ProgressTracker, features []string) error

Recv sets up the receiving half of the websocket to rsync (the other half set up by rsync.Send), putting the contents in the directory specified by path.

func Send Uses

func Send(name string, path string, conn io.ReadWriteCloser, tracker *ioprogress.ProgressTracker, features []string, bwlimit string, execPath string, rsyncArgs ...string) error

Send sets up the sending half of an rsync, to recursively send the directory pointed to by path over the websocket.

Package rsync imports 14 packages (graph) and is imported by 9 packages. Updated 2020-07-07. Refresh now. Tools for package owners.