Documentation ¶
Index ¶
- Variables
- type Runner
- func (r *Runner) CopyFromRemote(remotePath string, localTargetPath string) error
- func (r *Runner) CopyToRemote(localPath string, targetPath string) error
- func (r *Runner) IsDirEmpty(path string) (bool, error)
- func (r *Runner) SyncFromRemote(remotePath string, localTargetPath string) error
- func (r *Runner) SyncToRemote(localPath string, targetPath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyRunning = errors.New("rclone is already running")
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct { RenderConfig bool ConfigPath string // configuration for the remote RemoteParams []string // configuration for the encryption (if configured) Encryption bool EncryptionParams []string Debug bool // contains filtered or unexported fields }
func (*Runner) CopyFromRemote ¶
CopyFromRemote invokes a "rclone copy" to bring files back from remote storage
func (*Runner) CopyToRemote ¶
CopyToRemote invokes a "rclone copy" to remote destination
func (*Runner) IsDirEmpty ¶
IsDirEmpty checks if remote directory is empty
func (*Runner) SyncFromRemote ¶
SyncFromRemote invokes a "rclone sync" to bring files back from remote storage
Click to show internal directories.
Click to hide internal directories.