Documentation
¶
Index ¶
- Variables
- type Rclone
- func (r *Rclone) Exists(ctx context.Context, storagePath string) bool
- func (r *Rclone) Init(ctx context.Context, cfg config.StorageConfig) error
- func (r *Rclone) ListFiles(ctx context.Context, dirPath string) ([]storagetypes.FileInfo, error)
- func (r *Rclone) Name() string
- func (r *Rclone) OpenFile(ctx context.Context, filePath string) (io.ReadCloser, int64, error)
- func (r *Rclone) Save(ctx context.Context, reader io.Reader, storagePath string) error
- func (r *Rclone) Type() storenum.StorageType
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) Type ¶
func (r *Rclone) Type() storenum.StorageType
Click to show internal directories.
Click to hide internal directories.