rclone

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package rclone implements blob storage provider proxied by rclone (http://rclone.org)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opt *Options) (blob.Storage, error)

New creates new RClone storage with specified options. nolint:funlen

Types

type Options

type Options struct {
	RemotePath      string   `json:"remotePath"`               // remote:path supported by RClone
	RCloneExe       string   `json:"rcloneExe,omitempty"`      // path to rclone executable
	RCloneArgs      []string `json:"rcloneArgs,omitempty"`     // additional rclone arguments
	RCloneEnv       []string `json:"rcloneEnv,omitempty"`      // additional rclone environment variables
	StartupTimeout  int      `json:"startupTimeout,omitempty"` // time to wait for rclone to start
	DirectoryShards []int    `json:"dirShards"`
	EmbeddedConfig  string   `json:"embeddedConfig,omitempty"`
}

Options defines options for RClone storage.

Jump to

Keyboard shortcuts

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