Documentation
¶
Index ¶
- func New(ctx context.Context, cfg filesystem.DiskConfig, global filesystem.Config) (filesystem.Filesystem, error)
- type Driver
- func (d *Driver) Delete(ctx context.Context, p string) error
- func (d *Driver) Exists(ctx context.Context, p string) (bool, error)
- func (d *Driver) Get(ctx context.Context, p string) ([]byte, error)
- func (d *Driver) List(ctx context.Context, p string) ([]filesystem.Entry, error)
- func (d *Driver) ModTime(ctx context.Context, p string) (time.Time, error)
- func (d *Driver) Put(ctx context.Context, p string, contents []byte) error
- func (d *Driver) URL(ctx context.Context, p string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, cfg filesystem.DiskConfig, global filesystem.Config) (filesystem.Filesystem, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.