plugin

package
v1.52.3-0...-16af9ab Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package plugin implements loading out-of-tree storage backends using https://golang.org/pkg/plugin/ on Linux and macOS.

If the $RCLONE_PLUGIN_PATH is present, any Go plugins in that dir named like librcloneplugin_NAME.so will be loaded.

To create a plugin, write the backend package like it was in-tree but set the package name to "main". Then, build the plugin with

go build -buildmode=plugin -o librcloneplugin_NAME.so

where NAME equals the plugin's fs.RegInfo.Name.

Jump to

Keyboard shortcuts

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