rclone

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdCopy       string = "copy"
	CmdMove       string = "move"
	CmdSync       string = "sync"
	CmdDeleteFile string = "deletefile"
	CmdDeleteDir  string = "rmdir"
	CmdDeleteDirs string = "rmdirs"
	CmdDedupe     string = "dedupe"
)
View Source
const (
	ExitSuccess int = iota
	ExitSyntaxError
	ExitErrorUnknown
	ExitDirectoryNotFound
	ExitFileNotFound
	ExitTemporaryError
	ExitLessSeriousError
	ExitFatalError
	ExitTransferExceeded
)

Variables

This section is empty.

Functions

func AnyRemotesBanned

func AnyRemotesBanned(remotes []string) (bool, time.Time)

Public

func Copy

func Copy(from string, to string, serviceAccountFile *pathutils.Path,
	additionalRcloneParams []string) (bool, int, error)

func Dedupe

func Dedupe(remotePath string, additionalRcloneParams []string) (bool, int, error)

func DeleteFile

func DeleteFile(remoteFilePath string) (bool, int, error)

func GetAvailableServiceAccount

func GetAvailableServiceAccount(serviceAccountFiles []pathutils.Path) (*pathutils.Path, error)

Private

func Init

func Init(c *config.Configuration) error

func Move

func Move(from string, to string, serviceAccountFile *pathutils.Path, serverSide bool,
	additionalRcloneParams []string) (bool, int, error)

func RmDir

func RmDir(remoteFilePath string) (bool, int, error)

func Sync

func Sync(from string, to string, serviceAccountFile *pathutils.Path,
	additionalRcloneParams []string) (bool, int, error)

Types

type RemoteInstruction

type RemoteInstruction struct {
	From       string
	To         string
	ServerSide bool
}

Jump to

Keyboard shortcuts

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