MCPcopy
hub / github.com/rclone/rclone / Command

Method Command

fs/features.go:803–803  ·  view source on GitHub ↗

Command the backend to run a named command The command run is name args may be used to read arguments from opts may be used to read optional arguments from The result should be capable of being JSON encoded If it is a string or a []string it will be shown to the user otherwise it will be JSON enco

(ctx context.Context, name string, arg []string, opt map[string]string)

Source from the content-addressed store, hash-verified

801 // If it is a string or a []string it will be shown to the user
802 // otherwise it will be JSON encoded and shown to the user like that
803 Command(ctx context.Context, name string, arg []string, opt map[string]string) (any, error)
804}
805
806// Shutdowner is an interface to wrap the Shutdown function

Callers 15

rcloneExecMainFunction · 0.65
fetchBearerTokenMethod · 0.65
runFunction · 0.65
mapperFunction · 0.65
startMountSubProcessMethod · 0.65
TestMountFunction · 0.65
RunFunction · 0.65
runFunction · 0.65
runMethod · 0.65
TestResticIntegrationFunction · 0.65
mountFunction · 0.65
commandOKFunction · 0.65

Implementers 12

Fsbackend/cache/cache.go
Fsbackend/http/http.go
Fsbackend/b2/b2.go
Fsbackend/crypt/crypt.go
Fsbackend/hasher/hasher.go
Fsbackend/s3/s3.go
Fsbackend/local/local.go
Fsbackend/doi/doi.go
Fsbackend/oracleobjectstorage/oracleobje
Fsbackend/pikpak/pikpak.go
Fsbackend/netstorage/netstorage.go
Fsbackend/drive/drive.go

Calls

no outgoing calls

Tested by 11

rcloneExecMainFunction · 0.52
runFunction · 0.52
TestMountFunction · 0.52
TestResticIntegrationFunction · 0.52
commandOKFunction · 0.52
checkRcloneBinaryVersionFunction · 0.52
runInRepoMethod · 0.52
TestInstallOnLinuxFunction · 0.52
TestRenameOnWindowsFunction · 0.52
TestTestsToRegexpLiveFunction · 0.52
DiffFunction · 0.52