rclone

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (r *Runner) CopyFromRemote(remotePath string, localTargetPath string) error

CopyFromRemote invokes a "rclone copy" to bring files back from remote storage

func (*Runner) CopyToRemote

func (r *Runner) CopyToRemote(localPath string, targetPath string) error

CopyToRemote invokes a "rclone copy" to remote destination

func (*Runner) IsDirEmpty

func (r *Runner) IsDirEmpty(path string) (bool, error)

IsDirEmpty checks if remote directory is empty

func (*Runner) SyncFromRemote

func (r *Runner) SyncFromRemote(remotePath string, localTargetPath string) error

SyncFromRemote invokes a "rclone sync" to bring files back from remote storage

func (*Runner) SyncToRemote

func (r *Runner) SyncToRemote(localPath string, targetPath string) error

SyncToRemote invokes a "rclone sync" to remote destination

Jump to

Keyboard shortcuts

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