internal

package
v0.0.0-...-dc544e5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClients

func BuildClients(host string, config *ssh.ClientConfig, num int) []*sftp.Client

func BuildRemoteFileList

func BuildRemoteFileList(walker *fs.Walker, basepath string) map[string]file

func CompareTree

func CompareTree(basepath string, remoteMap map[string]file, skipFiles, skipDirs []*regexp.Regexp, appendFile bool) (rmdirs []file, rms []file, mkdirs []file, puts []file)

func FileSliceToChan

func FileSliceToChan(in []file) <-chan file

func NewSFTPClient

func NewSFTPClient(addr string, config *ssh.ClientConfig) (*sftp.Client, error)

func ProcessDelete

func ProcessDelete(client *sftp.Client, dc <-chan file, dryRun bool, done chan<- bool)

func ProcessPut

func ProcessPut(client *sftp.Client, basepath string, pc <-chan file, dryRun bool, done chan<- bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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