internal

package
Version: v0.0.0-...-407aed9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConnectionTimeout is the max inactivity time allowed before the connection
	// to the SFTP server is closed
	ConnectionTimeout = 5 * time.Minute
	// FilesBuffer is the number of files that can be in the buffered chan
	FilesBuffer = 100
	// ConcurrentOperations is the number of remote operations that can
	// happen concurrently
	ConcurrentOperations = 5
)

Variables

View Source
var (
	RemoteRoot            string
	Host                  string
	Config                *ssh.ClientConfig
	ModifiedFiles         chan string
	DeletedFiles          chan string
	RemoteFileManagerExit chan bool
)
View Source
var (
	Log *logrus.Logger
)
View Source
var (
	WatchExit chan bool
)

Functions

func CloseClient

func CloseClient()

func Logger

func Logger() *logrus.Logger

func OpenClient

func OpenClient() (err error)

func RemoteFileManager

func RemoteFileManager()

RemoteFileManager manages files on the server. This function handles the deleting and uploading of files/directories

func SetVerbose

func SetVerbose(verbose bool)

func Watch

func Watch(path string)

Watch watches the given path for changes using fsnotify and will upload files as needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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