mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
This add config to the Config callback in the backends and the related config functions.
This commit is contained in:
2
fs/fs.go
2
fs/fs.go
@@ -86,7 +86,7 @@ type RegInfo struct {
|
||||
// the parent of that object and ErrorIsFile.
|
||||
NewFs func(ctx context.Context, name string, root string, config configmap.Mapper) (Fs, error) `json:"-"`
|
||||
// Function to call to help with config
|
||||
Config func(name string, config configmap.Mapper) `json:"-"`
|
||||
Config func(ctx context.Context, name string, config configmap.Mapper) `json:"-"`
|
||||
// Options for the Fs configuration
|
||||
Options Options
|
||||
// The command help, if any
|
||||
|
||||
Reference in New Issue
Block a user