rclone

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New constructs an rclone-backed filesystem. All disks share a single config path. @group Drivers

Example: rclone driver

fs, _ := rclone.New(context.Background(), filesystem.DiskConfig{Remote: "myremote:bucket"}, filesystem.Config{RcloneConfigData: "[myremote]\ntype = local\n"})

Types

type Driver

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

func (*Driver) Delete

func (d *Driver) Delete(ctx context.Context, p string) error

func (*Driver) Exists

func (d *Driver) Exists(ctx context.Context, p string) (bool, error)

func (*Driver) Get

func (d *Driver) Get(ctx context.Context, p string) ([]byte, error)

func (*Driver) List

func (d *Driver) List(ctx context.Context, p string) ([]filesystem.Entry, error)

func (*Driver) ModTime

func (d *Driver) ModTime(ctx context.Context, p string) (time.Time, error)

ModTime returns the object's mod time. Intended for testing only.

func (*Driver) Put

func (d *Driver) Put(ctx context.Context, p string, contents []byte) error

func (*Driver) URL

func (d *Driver) URL(ctx context.Context, p string) (string, error)

Jump to

Keyboard shortcuts

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