Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudreve/cloudreve
/ functions
Functions
11,486 in github.com/cloudreve/cloudreve
⨍
Functions
11,486
◇
Types & classes
1,532
↓ 3 callers
Function
ValidateScopes
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 callers
Method
VersionControl
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 callers
Method
Where
Where adds a new predicate for the GroupQuery builder.
ent/group_query.go:35
↓ 3 callers
Method
WithEntities
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 callers
Function
WithErrorOnConflict
WithErrorOnConflict sets to throw error on conflict for the create operation.
pkg/filemanager/fs/dbfs/options.go:106
↓ 3 callers
Function
WithExtendedInfo
WithExtendedInfo enables loading extended info for the file.
pkg/filemanager/fs/dbfs/options.go:163
↓ 3 callers
Function
WithForcePublicEndpoint
WithForcePublicEndpoint sets the context to force using public endpoint for supported storage policies.
pkg/filemanager/driver/handler.go:126
↓ 3 callers
Function
WithNode
WithNode sets node for stateless upload manager.
pkg/filemanager/fs/fs.go:597
↓ 3 callers
Method
WithNode
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 callers
Function
WithProFlag
WithProFlag Set if current instance is a pro version.
application/dependency/options.go:66
↓ 3 callers
Function
WithStatelessUserID
WithStatelessUserID sets stateless user ID for manager.
pkg/filemanager/fs/fs.go:604
↓ 3 callers
Function
WithTPSLimit
WithTPSLimit 请求时使用全局流量限制
pkg/request/options.go:146
↓ 3 callers
Function
WithTaskPullInterval
WithTaskPullInterval set task pull interval
pkg/queue/options.go:105
↓ 3 callers
Function
WithUrlExpire
WithUrlExpire sets expire time for entity's URL.
pkg/filemanager/fs/fs.go:519
↓ 3 callers
Method
WithUser
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 callers
Function
allocateNode
allocateNode allocates a node for the task.
pkg/filemanager/workflows/worfklows.go:29
↓ 3 callers
Method
batchInCondition
batchInCondition returns a list of predicates that divide original group into smaller ones to bypass DB limitations.
inventory/file_utils.go:159
↓ 3 callers
Function
checkFileSize
checkFileSize checks if the file size exceeds the limit.
pkg/mediameta/extractor.go:126
↓ 3 callers
Method
clearUrlCache
clearUrlCache clears the cached URL and expiry
pkg/filemanager/manager/entitysource/entitysource.go:573
↓ 3 callers
Function
currentDatabaseAndTable
(dialect gorm.Dialect, tableName string)
application/migrator/model/dialects/dialect_sqlite.go:100
↓ 3 callers
Method
emitFileCreated
(ctx context.Context, file *File)
pkg/filemanager/fs/dbfs/events.go:15
↓ 3 callers
Method
emitFileModified
(ctx context.Context, file *File)
pkg/filemanager/fs/dbfs/events.go:26
↓ 3 callers
Method
findRoot
findRoot finds the root folder of the given child.
pkg/filemanager/fs/dbfs/navigator.go:206
↓ 3 callers
Method
flushLocked
flushLocked sends all buffered events to the channel. Caller must hold s.mu.
pkg/filemanager/eventhub/subscriber.go:166
↓ 3 callers
Function
getEntityDisplayName
(f fs.File, e fs.Entity)
pkg/filemanager/manager/operation.go:343
↓ 3 callers
Function
getFileOrderOption
(args *ListFileParameters)
inventory/file_utils.go:379
↓ 3 callers
Function
getGpsElemValue
(elm string)
pkg/filemanager/driver/cos/media.go:264
↓ 3 callers
Function
getGpsElemValue
(elm string)
pkg/filemanager/driver/obs/media.go:120
↓ 3 callers
Function
getGpsElemValue
(elm string)
pkg/filemanager/driver/upyun/media.go:137
↓ 3 callers
Function
getSignContent
getSignContent 签名请求 path、正文、以`X-`开头的 Header. 如果请求 path 为从机上传 API, 则不对正文签名。返回待签名/验证的字符串
pkg/auth/auth.go:98
↓ 3 callers
Function
getUrlSignContent
(ctx context.Context, url *url.URL)
pkg/auth/auth.go:212
↓ 3 callers
Function
isInCharacterRange
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 callers
Function
isName
(s []byte)
pkg/webdav/internal/xml/xml.go:1206
↓ 3 callers
Function
lockTupleFromUri
(uri *fs.URI, u *ent.User, hasher hashid.Encoder)
pkg/filemanager/fs/dbfs/lock.go:317
↓ 3 callers
Function
lookupXMLName
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 callers
Method
marshalValue
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 callers
Function
newChildrenStep
()
ent/file/file.go:326
↓ 3 callers
Function
newDavAccountsStep
()
ent/user/user.go:403
↓ 3 callers
Function
newDirectLinksStep
()
ent/file/file.go:354
↓ 3 callers
Function
newEntitiesStep
()
ent/user/user.go:438
↓ 3 callers
Function
newEntitiesStep
()
ent/file/file.go:340
↓ 3 callers
Function
newEntitiesStep
()
ent/storagepolicy/storagepolicy.go:277
↓ 3 callers
Function
newFileStep
()
ent/entity/entity.go:204
↓ 3 callers
Function
newFilesStep
()
ent/user/user.go:396
↓ 3 callers
Function
newFilesStep
()
ent/storagepolicy/storagepolicy.go:270
↓ 3 callers
Function
newFseventsStep
()
ent/user/user.go:431
↓ 3 callers
Function
newGrantsStep
()
ent/oauthclient/oauthclient.go:173
↓ 3 callers
Function
newGroupsStep
()
ent/storagepolicy/storagepolicy.go:263
↓ 3 callers
Function
newMetadataStep
()
ent/file/file.go:333
↓ 3 callers
Function
newOauthGrantsStep
()
ent/user/user.go:445
↓ 3 callers
Function
newPasskeyStep
()
ent/user/user.go:417
↓ 3 callers
Function
newSharesStep
()
ent/user/user.go:410
↓ 3 callers
Function
newSharesStep
()
ent/file/file.go:347
↓ 3 callers
Function
newStoragePolicyStep
()
ent/node/node.go:213
↓ 3 callers
Function
newTasksStep
()
ent/user/user.go:424
↓ 3 callers
Function
newUsersStep
()
ent/group/group.go:164
↓ 3 callers
Method
nsname
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 callers
Method
pop
()
pkg/webdav/internal/xml/xml.go:392
↓ 3 callers
Function
prepareSlaveTaskCtx
prepareSlaveTaskCtx prepares the context for the slave task.
pkg/filemanager/workflows/worfklows.go:45
↓ 3 callers
Method
pushPrefix
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 callers
Method
remove
(n *memLSNode)
pkg/filemanager/lock/memlock.go:326
↓ 3 callers
Function
renderOGHTML
(data *ogData)
middleware/share_preview.go:217
↓ 3 callers
Method
request
(ctx context.Context, method string, url string, body io.Reader, option ...request.Option)
pkg/filemanager/driver/onedrive/api.go:470
↓ 3 callers
Method
resetRequest
()
pkg/filemanager/manager/entitysource/entitysource.go:670
↓ 3 callers
Function
sanitizeFileName
(name string)
pkg/filemanager/workflows/remote_download.go:681
↓ 3 callers
Function
scanETag
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 callers
Method
setDefaultNamespace
setDefaultNamespace sets the namespace of the element as the default for all elements contained within it.
pkg/webdav/internal/xml/xml.go:86
↓ 3 callers
Method
signSourceURL
(ctx context.Context, path string, expire *time.Time, options *urlOption)
pkg/filemanager/driver/cos/cos.go:410
↓ 3 callers
Method
signSourceURL
(input *obs.CreateSignedUrlInput)
pkg/filemanager/driver/obs/obs.go:578
↓ 3 callers
Method
signSourceURL
(ctx context.Context, path string, expire *time.Time, req *oss.GetObjectRequest, forceSign bool)
pkg/filemanager/driver/oss/oss.go:446
↓ 3 callers
Method
signSourceURL
(path string, query url.Values, expire *time.Time)
pkg/filemanager/driver/qiniu/qiniu.go:332
↓ 3 callers
Method
signURL
(ctx context.Context, path string, query *url.Values, expire *time.Time)
pkg/filemanager/driver/upyun/upyun.go:236
↓ 3 callers
Function
slashClean
slashClean is equivalent to but slightly more efficient than path.Clean("/" + name).
pkg/webdav/file.go:13
↓ 3 callers
Function
sortSearch
sortSearch is like sort.Search, avoiding an import.
application/statics/embed.go:418
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/node_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/fsevent_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/davaccount_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/metadata_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/directlink_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/passkey_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/oauthclient_query.go:485
↓ 3 callers
Method
sqlQuery
(ctx context.Context)
ent/task_query.go:485
↓ 3 callers
Method
text
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 callers
Method
translate
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 callers
Function
validateExtension
validateExtension validates the file extension.
pkg/filemanager/fs/dbfs/validator.go:34
↓ 3 callers
Function
validateFileName
validateFileName validates the file name.
pkg/filemanager/fs/dbfs/validator.go:17
↓ 3 callers
Function
validateFileNameRegexp
(name string, policy *ent.StoragePolicy)
pkg/filemanager/fs/dbfs/validator.go:47
↓ 3 callers
Method
validateMetadata
(ctx context.Context, data ...fs.MetadataPatch)
pkg/filemanager/manager/metadata.go:290
↓ 3 callers
Method
walk
(ctx context.Context, levelFiles []*File, limit, depth int, f WalkFunc)
pkg/filemanager/fs/dbfs/navigator.go:270
↓ 3 callers
Function
walkToRoot
(name string, f func(name0 string, first bool) bool)
pkg/webdav/lock.go:352
↓ 3 callers
Function
walkToRoot
(name string, f func(name0 string, first bool) bool)
pkg/filemanager/lock/memlock.go:367
↓ 3 callers
Function
withEntityEagerLoading
(ctx context.Context, q *ent.EntityQuery)
inventory/file_utils.go:361
↓ 3 callers
Function
withNodeEagerLoading
(ctx context.Context, query *ent.NodeQuery)
inventory/node.go:148
↓ 3 callers
Function
withTaskEagerLoading
(ctx context.Context, q *ent.TaskQuery)
inventory/task.go:332
↓ 3 callers
Method
writeIndent
(depthDelta int)
pkg/webdav/internal/xml/marshal.go:1104
↓ 3 callers
Method
writeName
writeName writes the given name. It assumes that p.createNSPrefix(name) has already been called.
pkg/webdav/internal/xml/marshal.go:894
↓ 2 callers
Method
AccessKeyCleared
AccessKeyCleared returns if the "access_key" field was cleared in this mutation.
ent/mutation.go:13025
↓ 2 callers
Method
AddChildIDs
AddChildIDs adds the "children" edge to the File entity by IDs.
ent/file_update.go:259
↓ 2 callers
Method
AddDavAccountIDs
AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs.
ent/user_update.go:243
↓ 2 callers
Method
AddDirectLinkIDs
AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs.
ent/file_update.go:319
← previous
next →
1,101–1,200 of 11,486, ranked by callers