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 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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.