rclone

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 13 Imported by: 0

README

Rclone Integrations

Rclone can be used as a subcommand with: $ suitcasectl rclone src dest.

The destination must be a valid rclone endpoint, usually configured in ~/.config/rclone/rclone.conf, however the rclone binary itself is not needed.

Pretty decent API doc here

Documentation

Overview

Package rclone contains all the rclone operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIOneShot added in v0.17.0

func APIOneShot(command string, params rc.Params) error

APIOneShot is a generic way to call the API. Good for single commands to send through that don't have to wait and such

func Clone

func Clone(source, destination string) error

Clone mimics rclonse 'clone' option, given a source and destination

func Copy added in v0.18.0

func Copy(source, destination string, c chan TransferStatus) error

Copy copies a single file to the destination

func Exists

func Exists(d string) bool

Exists checks to see if a destination exists. This is useful as a pre-flight check

Types

type TransferStatus added in v0.18.0

type TransferStatus struct {
	Name   string    `json:"name,omitempty"`
	Stats  jobStats  `json:"stats,omitempty"`
	Status jobStatus `json:"status,omitempty"`
}

TransferStatus is the status of a transfer, used for reporting back to our travel agent or such

Jump to

Keyboard shortcuts

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