Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncryptionKey ¶ added in v0.1.10
Types ¶
type GlobalConfig ¶
type HandleFileOutcome ¶ added in v0.1.18
type HandleFileOutcome int
const ( DownloadedFile HandleFileOutcome = iota UploadedFile MarkedDeleted NoChange )
type LocalConfig ¶
type LocalConfig struct {
// Specifies with tags this machine should be associated with.
Tags []string `yaml:"tags"`
}
type LocalFileStateData ¶ added in v0.1.9
type LocalStateData ¶ added in v0.1.9
type LocalStateData struct {
// Key is file path. Value is the state data associated with that file.
FileStateData map[string]*LocalFileStateData
}
type RemoteFileStateData ¶ added in v0.1.9
type RemoteStateData ¶ added in v0.1.9
type RemoteStateData struct {
// Key is file path. Value is the state data associated with that file.
FileStateData map[string]*RemoteFileStateData
}
type SyncedFile ¶ added in v0.1.9
type Syncer ¶
type Syncer struct {
RemoteFileStore filestore.FileStore
LocalFileStore filestore.FileStore
Logger utils.Logger
// Used to encrypt files stored in the remote file store.
Encryptor utils.ReaderEncryptor
// ForceDownload will download a file even if the local modified time is after the remote modified time.
ForceDownload bool
// contains filtered or unexported fields
}
func (*Syncer) PerformSync ¶
PerformSync does the entire sync from end to end.
Click to show internal directories.
Click to hide internal directories.