package
1.64.0-Personal
Repository: https://github.com/dceldran/rclone.git
Documentation: pkg.go.dev

# Packages

Package jobs manages background jobs that the rc is running.
Package rcflags implements command line flags to set up the remote control.
Package rcserver implements the HTTP endpoint to serve the remote control.
Package webgui defines the Web GUI helpers.

# Functions

Add a function to the global registry.
AddOption adds an option set.
AddOptionReload adds an option set with a reload function to be called when options are changed.
Error creates the standard response for an errored rc call using an rc.Param from a path, input Params, error and a suggested HTTP response code.
GetFs gets an fs.Fs named "fs" either from the cache or creates it afresh.
GetFsAndRemote gets the `fs` parameter from in, makes a remote or fetches it from the cache then gets the `remote` parameter from in too.
GetFsAndRemoteNamed gets the fsName parameter from in, makes a remote or fetches it from the cache then gets the remoteName parameter from in too.
GetFsNamed gets an fs.Fs named fsName either from the cache or creates it afresh.
IsErrParamInvalid returns whether err is ErrParamInvalid.
IsErrParamNotFound returns whether err is ErrParamNotFound.
NewErrParamInvalid returns new ErrParamInvalid from given error.
NewRegistry makes a new registry for remote control functions.
NotErrParamNotFound returns true if err != nil and !IsErrParamNotFound(err) This is for checking error returns of the Get* functions to ignore error not found returns and take the default value.
Reshape reshapes one blob of data into another via json serialization out should be a pointer type This isn't a very efficient way of dealing with this!.
WriteJSON writes JSON in out to w.

# Variables

Calls is the global registry of Call objects.
DefaultOpt is the default values used for Options.

# Structs

Call defines info about a remote control function and is used in the Add function to create new entry points.
ErrParamInvalid - this is returned from the Get* functions if the parameter is invalid.
Options contains options for the remote control server.
Registry holds the list of all the registered remote control functions.

# Type aliases

ErrParamNotFound - this is returned from the Get* functions if the parameter isn't found along with a zero value of the requested item.
Func defines a type for a remote control function.
Params is the input and output type for the Func.