rclone

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRcloneNotFound    = errors.New("rclone: rclone command not found in PATH")
	ErrRemoteNotFound    = errors.New("rclone: remote not found")
	ErrFailedToSaveFile  = errors.New("rclone: failed to save file")
	ErrFailedToListFiles = errors.New("rclone: failed to list files")
	ErrFailedToOpenFile  = errors.New("rclone: failed to open file")
	ErrFailedToCheckFile = errors.New("rclone: failed to check file exists")
	ErrFailedToCreateDir = errors.New("rclone: failed to create directory")
	ErrCommandFailed     = errors.New("rclone: command execution failed")
)

Functions

This section is empty.

Types

type Rclone

type Rclone struct {
	// contains filtered or unexported fields
}

func (*Rclone) Exists

func (r *Rclone) Exists(ctx context.Context, storagePath string) bool

func (*Rclone) Init

func (r *Rclone) Init(ctx context.Context, cfg config.StorageConfig) error

func (*Rclone) ListFiles

func (r *Rclone) ListFiles(ctx context.Context, dirPath string) ([]storagetypes.FileInfo, error)

ListFiles implements storage.StorageListable

func (*Rclone) Name

func (r *Rclone) Name() string

func (*Rclone) OpenFile

func (r *Rclone) OpenFile(ctx context.Context, filePath string) (io.ReadCloser, int64, error)

OpenFile implements storage.StorageReadable

func (*Rclone) Save

func (r *Rclone) Save(ctx context.Context, reader io.Reader, storagePath string) error

func (*Rclone) Type

func (r *Rclone) Type() storenum.StorageType

Jump to

Keyboard shortcuts

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