MCPcopy Create free account

hub / github.com/cloudreve/cloudreve / functions

Functions11,486 in github.com/cloudreve/cloudreve

↓ 3 callersFunctionValidateScopes
ValidateScopes checks if all requested scopes are a subset of the allowed scopes. Returns true if all requested scopes are valid, false otherwise.
pkg/auth/jwt.go:301
↓ 3 callersMethodVersionControl
VersionControl performs version control on given file. - `delete` is false: set version as current version; - `delete` is true: delete version.
pkg/filemanager/fs/fs.go:95
↓ 3 callersMethodWhere
Where adds a new predicate for the GroupQuery builder.
ent/group_query.go:35
↓ 3 callersMethodWithEntities
WithEntities tells the query-builder to eager-load the nodes that are connected to the "entities" edge. The optional arguments are used to configure t
ent/file_query.go:514
↓ 3 callersFunctionWithErrorOnConflict
WithErrorOnConflict sets to throw error on conflict for the create operation.
pkg/filemanager/fs/dbfs/options.go:106
↓ 3 callersFunctionWithExtendedInfo
WithExtendedInfo enables loading extended info for the file.
pkg/filemanager/fs/dbfs/options.go:163
↓ 3 callersFunctionWithForcePublicEndpoint
WithForcePublicEndpoint sets the context to force using public endpoint for supported storage policies.
pkg/filemanager/driver/handler.go:126
↓ 3 callersFunctionWithNode
WithNode sets node for stateless upload manager.
pkg/filemanager/fs/fs.go:597
↓ 3 callersMethodWithNode
WithNode tells the query-builder to eager-load the nodes that are connected to the "node" edge. The optional arguments are used to configure the query
ent/storagepolicy_query.go:394
↓ 3 callersFunctionWithProFlag
WithProFlag Set if current instance is a pro version.
application/dependency/options.go:66
↓ 3 callersFunctionWithStatelessUserID
WithStatelessUserID sets stateless user ID for manager.
pkg/filemanager/fs/fs.go:604
↓ 3 callersFunctionWithTPSLimit
WithTPSLimit 请求时使用全局流量限制
pkg/request/options.go:146
↓ 3 callersFunctionWithTaskPullInterval
WithTaskPullInterval set task pull interval
pkg/queue/options.go:105
↓ 3 callersFunctionWithUrlExpire
WithUrlExpire sets expire time for entity's URL.
pkg/filemanager/fs/fs.go:519
↓ 3 callersMethodWithUser
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query
ent/task_query.go:285
↓ 3 callersFunctionallocateNode
allocateNode allocates a node for the task.
pkg/filemanager/workflows/worfklows.go:29
↓ 3 callersMethodbatchInCondition
batchInCondition returns a list of predicates that divide original group into smaller ones to bypass DB limitations.
inventory/file_utils.go:159
↓ 3 callersFunctioncheckFileSize
checkFileSize checks if the file size exceeds the limit.
pkg/mediameta/extractor.go:126
↓ 3 callersMethodclearUrlCache
clearUrlCache clears the cached URL and expiry
pkg/filemanager/manager/entitysource/entitysource.go:573
↓ 3 callersFunctioncurrentDatabaseAndTable
(dialect gorm.Dialect, tableName string)
application/migrator/model/dialects/dialect_sqlite.go:100
↓ 3 callersMethodemitFileCreated
(ctx context.Context, file *File)
pkg/filemanager/fs/dbfs/events.go:15
↓ 3 callersMethodemitFileModified
(ctx context.Context, file *File)
pkg/filemanager/fs/dbfs/events.go:26
↓ 3 callersMethodfindRoot
findRoot finds the root folder of the given child.
pkg/filemanager/fs/dbfs/navigator.go:206
↓ 3 callersMethodflushLocked
flushLocked sends all buffered events to the channel. Caller must hold s.mu.
pkg/filemanager/eventhub/subscriber.go:166
↓ 3 callersFunctiongetEntityDisplayName
(f fs.File, e fs.Entity)
pkg/filemanager/manager/operation.go:343
↓ 3 callersFunctiongetFileOrderOption
(args *ListFileParameters)
inventory/file_utils.go:379
↓ 3 callersFunctiongetGpsElemValue
(elm string)
pkg/filemanager/driver/cos/media.go:264
↓ 3 callersFunctiongetGpsElemValue
(elm string)
pkg/filemanager/driver/obs/media.go:120
↓ 3 callersFunctiongetGpsElemValue
(elm string)
pkg/filemanager/driver/upyun/media.go:137
↓ 3 callersFunctiongetSignContent
getSignContent 签名请求 path、正文、以`X-`开头的 Header. 如果请求 path 为从机上传 API, 则不对正文签名。返回待签名/验证的字符串
pkg/auth/auth.go:98
↓ 3 callersFunctiongetUrlSignContent
(ctx context.Context, url *url.URL)
pkg/auth/auth.go:212
↓ 3 callersFunctionisInCharacterRange
Decide whether the given rune is in the XML Character Range, per the Char production of http://www.xml.com/axml/testaxml.htm, Section 2.2 Characters.
pkg/webdav/internal/xml/xml.go:1128
↓ 3 callersFunctionisName
(s []byte)
pkg/webdav/internal/xml/xml.go:1206
↓ 3 callersFunctionlockTupleFromUri
(uri *fs.URI, u *ent.User, hasher hashid.Encoder)
pkg/filemanager/fs/dbfs/lock.go:317
↓ 3 callersFunctionlookupXMLName
lookupXMLName returns the fieldInfo for typ's XMLName field in case it exists and has a valid xml field tag, otherwise it returns nil.
pkg/webdav/internal/xml/typeinfo.go:238
↓ 3 callersMethodmarshalValue
marshalValue writes one or more XML elements representing val. If val was obtained from a struct field, finfo must have its details.
pkg/webdav/internal/xml/marshal.go:556
↓ 3 callersFunctionnewChildrenStep
()
ent/file/file.go:326
↓ 3 callersFunctionnewDavAccountsStep
()
ent/user/user.go:403
↓ 3 callersFunctionnewDirectLinksStep
()
ent/file/file.go:354
↓ 3 callersFunctionnewEntitiesStep
()
ent/user/user.go:438
↓ 3 callersFunctionnewEntitiesStep
()
ent/file/file.go:340
↓ 3 callersFunctionnewEntitiesStep
()
ent/storagepolicy/storagepolicy.go:277
↓ 3 callersFunctionnewFileStep
()
ent/entity/entity.go:204
↓ 3 callersFunctionnewFilesStep
()
ent/user/user.go:396
↓ 3 callersFunctionnewFilesStep
()
ent/storagepolicy/storagepolicy.go:270
↓ 3 callersFunctionnewFseventsStep
()
ent/user/user.go:431
↓ 3 callersFunctionnewGrantsStep
()
ent/oauthclient/oauthclient.go:173
↓ 3 callersFunctionnewGroupsStep
()
ent/storagepolicy/storagepolicy.go:263
↓ 3 callersFunctionnewMetadataStep
()
ent/file/file.go:333
↓ 3 callersFunctionnewOauthGrantsStep
()
ent/user/user.go:445
↓ 3 callersFunctionnewPasskeyStep
()
ent/user/user.go:417
↓ 3 callersFunctionnewSharesStep
()
ent/user/user.go:410
↓ 3 callersFunctionnewSharesStep
()
ent/file/file.go:347
↓ 3 callersFunctionnewStoragePolicyStep
()
ent/node/node.go:213
↓ 3 callersFunctionnewTasksStep
()
ent/user/user.go:424
↓ 3 callersFunctionnewUsersStep
()
ent/group/group.go:164
↓ 3 callersMethodnsname
Get name space name: name with a : stuck in the middle. The part before the : is the name space identifier.
pkg/webdav/internal/xml/xml.go:1139
↓ 3 callersMethodpop
()
pkg/webdav/internal/xml/xml.go:392
↓ 3 callersFunctionprepareSlaveTaskCtx
prepareSlaveTaskCtx prepares the context for the slave task.
pkg/filemanager/workflows/worfklows.go:45
↓ 3 callersMethodpushPrefix
pushPrefix pushes a new prefix on the prefix stack without checking to see if it is already defined.
pkg/webdav/internal/xml/marshal.go:482
↓ 3 callersMethodremove
(n *memLSNode)
pkg/filemanager/lock/memlock.go:326
↓ 3 callersFunctionrenderOGHTML
(data *ogData)
middleware/share_preview.go:217
↓ 3 callersMethodrequest
(ctx context.Context, method string, url string, body io.Reader, option ...request.Option)
pkg/filemanager/driver/onedrive/api.go:470
↓ 3 callersMethodresetRequest
()
pkg/filemanager/manager/entitysource/entitysource.go:670
↓ 3 callersFunctionsanitizeFileName
(name string)
pkg/filemanager/workflows/remote_download.go:681
↓ 3 callersFunctionscanETag
scanETag determines if a syntactically valid ETag is present at s. If so, the ETag and remaining text after consuming ETag is returned. Otherwise, it
pkg/filemanager/manager/entitysource/entitysource.go:861
↓ 3 callersMethodsetDefaultNamespace
setDefaultNamespace sets the namespace of the element as the default for all elements contained within it.
pkg/webdav/internal/xml/xml.go:86
↓ 3 callersMethodsignSourceURL
(ctx context.Context, path string, expire *time.Time, options *urlOption)
pkg/filemanager/driver/cos/cos.go:410
↓ 3 callersMethodsignSourceURL
(input *obs.CreateSignedUrlInput)
pkg/filemanager/driver/obs/obs.go:578
↓ 3 callersMethodsignSourceURL
(ctx context.Context, path string, expire *time.Time, req *oss.GetObjectRequest, forceSign bool)
pkg/filemanager/driver/oss/oss.go:446
↓ 3 callersMethodsignSourceURL
(path string, query url.Values, expire *time.Time)
pkg/filemanager/driver/qiniu/qiniu.go:332
↓ 3 callersMethodsignURL
(ctx context.Context, path string, query *url.Values, expire *time.Time)
pkg/filemanager/driver/upyun/upyun.go:236
↓ 3 callersFunctionslashClean
slashClean is equivalent to but slightly more efficient than path.Clean("/" + name).
pkg/webdav/file.go:13
↓ 3 callersFunctionsortSearch
sortSearch is like sort.Search, avoiding an import.
application/statics/embed.go:418
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/node_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/fsevent_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/davaccount_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/metadata_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/directlink_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/passkey_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/oauthclient_query.go:485
↓ 3 callersMethodsqlQuery
(ctx context.Context)
ent/task_query.go:485
↓ 3 callersMethodtext
Read plain text section (XML calls it character data). If quote >= 0, we are in a quoted string and need to find the matching quote. If cdata == true,
pkg/webdav/internal/xml/xml.go:960
↓ 3 callersMethodtranslate
Apply name space translation to name n. The default name space (for Space=="") applies only to element names, not to attribute names.
pkg/webdav/internal/xml/xml.go:332
↓ 3 callersFunctionvalidateExtension
validateExtension validates the file extension.
pkg/filemanager/fs/dbfs/validator.go:34
↓ 3 callersFunctionvalidateFileName
validateFileName validates the file name.
pkg/filemanager/fs/dbfs/validator.go:17
↓ 3 callersFunctionvalidateFileNameRegexp
(name string, policy *ent.StoragePolicy)
pkg/filemanager/fs/dbfs/validator.go:47
↓ 3 callersMethodvalidateMetadata
(ctx context.Context, data ...fs.MetadataPatch)
pkg/filemanager/manager/metadata.go:290
↓ 3 callersMethodwalk
(ctx context.Context, levelFiles []*File, limit, depth int, f WalkFunc)
pkg/filemanager/fs/dbfs/navigator.go:270
↓ 3 callersFunctionwalkToRoot
(name string, f func(name0 string, first bool) bool)
pkg/webdav/lock.go:352
↓ 3 callersFunctionwalkToRoot
(name string, f func(name0 string, first bool) bool)
pkg/filemanager/lock/memlock.go:367
↓ 3 callersFunctionwithEntityEagerLoading
(ctx context.Context, q *ent.EntityQuery)
inventory/file_utils.go:361
↓ 3 callersFunctionwithNodeEagerLoading
(ctx context.Context, query *ent.NodeQuery)
inventory/node.go:148
↓ 3 callersFunctionwithTaskEagerLoading
(ctx context.Context, q *ent.TaskQuery)
inventory/task.go:332
↓ 3 callersMethodwriteIndent
(depthDelta int)
pkg/webdav/internal/xml/marshal.go:1104
↓ 3 callersMethodwriteName
writeName writes the given name. It assumes that p.createNSPrefix(name) has already been called.
pkg/webdav/internal/xml/marshal.go:894
↓ 2 callersMethodAccessKeyCleared
AccessKeyCleared returns if the "access_key" field was cleared in this mutation.
ent/mutation.go:13025
↓ 2 callersMethodAddChildIDs
AddChildIDs adds the "children" edge to the File entity by IDs.
ent/file_update.go:259
↓ 2 callersMethodAddDavAccountIDs
AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs.
ent/user_update.go:243
↓ 2 callersMethodAddDirectLinkIDs
AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs.
ent/file_update.go:319
← previousnext →1,101–1,200 of 11,486, ranked by callers