fonctions

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(config *Config) error

Clear Vide (supprime puis recrée) le repertoire distant.

func Upload

func Upload(config *Config, ajouter, supprimer, ajouterd []string) error

Upload telecharge les fichiers en amont.

func WatchDir

func WatchDir(config *Config) error

WatchDir Tous les interval, recupere et synchronise les fichiers modifiés du repertoire watched.

Types

type Config

type Config struct {
	Watched    string
	Host       string
	RemoteRoot string
	RemoteUser string
	Interval   time.Duration
	KeyFile    string
	Passphrase []byte
	Type       string
	Resume     bool // Skip deleting the remote path first
}

Config stores all the configuration for dir watched and remote syncing.

Jump to

Keyboard shortcuts

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