MCPcopy
hub / github.com/rclone/rclone / GetConfig

Function GetConfig

fs/config.go:793–802  ·  view source on GitHub ↗

GetConfig returns the global or context sensitive context

(ctx context.Context)

Source from the content-addressed store, hash-verified

791
792// GetConfig returns the global or context sensitive context
793func GetConfig(ctx context.Context) *ConfigInfo {
794 if ctx == nil {
795 return globalConfig
796 }
797 c := ctx.Value(configContextKey)
798 if c == nil {
799 return globalConfig
800 }
801 return c.(*ConfigInfo)
802}
803
804// CopyConfig copies the global config (if any) from srcCtx into
805// dstCtx returning the new context. It also copies the rc request

Callers 15

newCacheFsMethod · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
putMethod · 0.92
NewFsFunction · 0.92
s3ConnectionFunction · 0.92
NewFsFunction · 0.92
CopyMethod · 0.92

Calls

no outgoing calls

Tested by 15

newCacheFsMethod · 0.74
resetTestDefaultsMethod · 0.74
testUploadTimeoutMethod · 0.74
TestPoolMaxBufferMemoryFunction · 0.74
TestBatcherNewFunction · 0.74
TestUnicodeNormalizationFunction · 0.74
TestWriteBackMaxQueueFunction · 0.74
TestCacheFunction · 0.74
TestTouchWithMetadataFunction · 0.74
TestMainFunction · 0.74
testBisyncFunction · 0.74
runTestStepMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…