plugin

package
v0.0.0-...-b4aeae5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 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