MCPcopy Create free account

hub / github.com/cloudreve/cloudreve / functions

Functions11,486 in github.com/cloudreve/cloudreve

↓ 2 callersMethodAddDownloads
AddDownloads adds i to the "downloads" field.
ent/mutation.go:11811
↓ 2 callersMethodAddEntities
AddEntities adds the "entities" edges to the Entity entity.
ent/file_update.go:295
↓ 2 callersMethodAddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/file_update.go:289
↓ 2 callersMethodAddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/storagepolicy_update.go:320
↓ 2 callersMethodAddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/user_update.go:318
↓ 2 callersMethodAddFile
AddFile adds the "file" edges to the File entity.
ent/entity_create.go:151
↓ 2 callersMethodAddFileIDs
AddFileIDs adds the "files" edge to the File entity by IDs.
ent/storagepolicy_update.go:305
↓ 2 callersMethodAddFileIDs
AddFileIDs adds the "file" edge to the File entity by IDs.
ent/entity_update.go:206
↓ 2 callersMethodAddFileIDs
AddFileIDs adds the "files" edge to the File entity by IDs.
ent/user_update.go:228
↓ 2 callersMethodAddFseventIDs
AddFseventIDs adds the "fsevents" edge to the FsEvent entity by IDs.
ent/user_update.go:303
↓ 2 callersMethodAddGrantIDs
AddGrantIDs adds the "grants" edge to the OAuthGrant entity by IDs.
ent/oauthclient_update.go:167
↓ 2 callersMethodAddGroupIDs
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
ent/storagepolicy_update.go:290
↓ 2 callersMethodAddMetadatumIDs
AddMetadatumIDs adds the "metadata" edge to the Metadata entity by IDs.
ent/file_update.go:274
↓ 2 callersMethodAddOauthGrantIDs
AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs.
ent/user_update.go:333
↓ 2 callersMethodAddPasskeyIDs
AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs.
ent/user_update.go:273
↓ 2 callersMethodAddRemainDownloads
AddRemainDownloads adds i to the "remain_downloads" field.
ent/mutation.go:11916
↓ 2 callersMethodAddShareIDs
AddShareIDs adds the "shares" edge to the Share entity by IDs.
ent/file_update.go:304
↓ 2 callersMethodAddShareIDs
AddShareIDs adds the "shares" edge to the Share entity by IDs.
ent/user_update.go:258
↓ 2 callersMethodAddStorage
AddStorage adds i to the "storage" field.
ent/mutation.go:15513
↓ 2 callersMethodAddStoragePolicyIDs
AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
ent/node_update.go:182
↓ 2 callersMethodAddTaskIDs
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
ent/user_update.go:288
↓ 2 callersMethodAddUserIDs
AddUserIDs adds the "users" edge to the User entity by IDs.
ent/group_update.go:168
↓ 2 callersMethodAddViews
AddViews adds i to the "views" field.
ent/mutation.go:11755
↓ 2 callersMethodAddedField
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that t
ent/mutation.go:4239
↓ 2 callersMethodAggregate
Aggregate returns a NodeSelect configured with the given aggregations.
ent/node_query.go:339
↓ 2 callersMethodAncestors
Ancestors return all ancestors of the file, until the owner root is reached.
pkg/filemanager/fs/dbfs/file.go:267
↓ 2 callersFunctionAnonymousPermLink
AnonymousPermLink 文件中转后的永久直链接
routers/controllers/file.go:104
↓ 2 callersMethodAnonymousUser
AnonymousUser returns the anonymous user.
inventory/user.go:61
↓ 2 callersMethodAppSetting
AppSetting returns the app related settings.
pkg/setting/provider.go:188
↓ 2 callersMethodAppendedRedirectUris
AppendedRedirectUris returns the list of values that were appended to the "redirect_uris" field in this mutation.
ent/mutation.go:8641
↓ 2 callersMethodApply
Apply applies the given options to this client.
pkg/request/request.go:47
↓ 2 callersFunctionApplyProxyIfNeeded
(policy *ent.StoragePolicy, srcUrl *url.URL)
pkg/filemanager/driver/util.go:12
↓ 2 callersMethodAvatarCleared
AvatarCleared returns if the "avatar" field was cleared in this mutation.
ent/mutation.go:15623
↓ 2 callersMethodBools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
ent/ent.go:475
↓ 2 callersMethodBucketNameCleared
BucketNameCleared returns if the "bucket_name" field was cleared in this mutation.
ent/mutation.go:12927
↓ 2 callersFunctionBuildConcat
BuildConcat 根据数据库类型构建字符串连接表达式
pkg/util/common.go:206
↓ 2 callersFunctionBuildListShareResponse
(ctx context.Context, res *inventory.ListShareResult, hasher hashid.Encoder, base *url.URL, requester *ent.Use
service/share/response.go:22
↓ 2 callersFunctionBuildNode
BuildNode serialize a node.
service/user/response.go:91
↓ 2 callersFunctionBuildPasskey
(passkey *ent.Passkey)
service/user/response.go:63
↓ 2 callersFunctionBuildRegexp
BuildRegexp 构建用于SQL查询用的多条件正则
pkg/util/common.go:194
↓ 2 callersFunctionBuildShareLink
(s *ent.Share, hasher hashid.Encoder, base *url.URL, unlocked bool)
service/explorer/response.go:500
↓ 2 callersMethodBuiltinThumbGeneratorEnabled
BuiltinThumbGeneratorEnabled returns true if builtin thumb generator is enabled.
pkg/setting/provider.go:114
↓ 2 callersFunctionByID
ByID orders the results by the id field.
ent/task/task.go:124
↓ 2 callersFunctionByID
ByID orders the results by the id field.
ent/storagepolicy/storagepolicy.go:141
↓ 2 callersMethodCanHaveChildren
()
pkg/filemanager/fs/dbfs/file.go:99
↓ 2 callersMethodCancelUploadSession
CancelUploadSession cancels an upload session. Delete the placeholder file if no other entity is created.
pkg/filemanager/fs/fs.go:111
↓ 2 callersMethodCapCaptcha
CapCaptcha returns the Cap settings.
pkg/setting/provider.go:44
↓ 2 callersMethodCapacity
(ctx context.Context, u *ent.User)
pkg/filemanager/fs/dbfs/dbfs.go:228
↓ 2 callersMethodCaptchaType
CaptchaType returns the type of captcha used.
pkg/setting/provider.go:36
↓ 2 callersMethodCastStoragePolicyOnSlave
CastStoragePolicyOnSlave check if given storage policy need to be casted to another. It is used on slave node, when local policy need to cast to remot
pkg/filemanager/manager/manager.go:77
↓ 2 callersMethodCheck
对给定Body和Sign进行检查
pkg/auth/auth.go:40
↓ 2 callersFunctionCheckPassword
CheckPassword 根据明文校验密码
inventory/user.go:551
↓ 2 callersFunctionCheckRequest
CheckRequest 对复杂请求进行签名验证
pkg/auth/auth.go:78
↓ 2 callersMethodChildren
Children returns the children of the parent file.
pkg/filemanager/fs/dbfs/navigator.go:43
↓ 2 callersMethodClearExpires
ClearExpires clears the value of the "expires" field.
ent/mutation.go:11866
↓ 2 callersMethodClearParent
ClearParent clears the "parent" edge to the File entity.
ent/mutation.go:3697
↓ 2 callersMethodClearRemainDownloads
ClearRemainDownloads clears the value of the "remain_downloads" field.
ent/mutation.go:11934
↓ 2 callersMethodClearStoragePolicies
ClearStoragePolicies clears the "storage_policies" edge to the StoragePolicy entity.
ent/mutation.go:3657
↓ 2 callersMethodClearUploadSessionID
ClearUploadSessionID clears the value of the "upload_session_id" field.
ent/mutation.go:2286
↓ 2 callersMethodConfirmLock
(ctx context.Context, ancestor fs.File, uri *fs.URI, token ...string)
pkg/filemanager/fs/dbfs/lock.go:35
↓ 2 callersFunctionContextHint
ContextHint parses the context hint header and set it to context
middleware/file.go:41
↓ 2 callersMethodCorrelationIDCleared
CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation.
ent/mutation.go:14583
↓ 2 callersFunctionCount
Count applies the "count" aggregation function on each group.
ent/ent.go:151
↓ 2 callersMethodCountUsers
CountUsers returns the number of users in the group.
inventory/group.go:34
↓ 2 callersFunctionCreatNestedFolder
CreatNestedFolder creates a folder with the given path, if the directory does not exist, it will be created recursively.
pkg/util/io.go:34
↓ 2 callersMethodCreate
Create creates a new OAuth client.
inventory/oauth_client.go:37
↓ 2 callersMethodCreateFile
CreateFile creates a file on the node.
pkg/filemanager/fs/fs.go:138
↓ 2 callersMethodCreateFolder
CreateOrGetFolder creates a folder with given name under root, or return the existed one
inventory/file.go:163
↓ 2 callersFunctionCreatedAt
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
ent/file/where.go:59
↓ 2 callersFunctionCreatedAtGTE
CreatedAtGTE applies the GTE predicate on the "created_at" field.
ent/file/where.go:134
↓ 2 callersFunctionCreatedAtLT
CreatedAtLT applies the LT predicate on the "created_at" field.
ent/file/where.go:139
↓ 2 callersMethodCreatedBy
()
pkg/filemanager/fs/fs.go:185
↓ 2 callersFunctionCredentialID
CredentialID applies equality check predicate on the "credential_id" field. It's identical to CredentialIDEQ.
ent/passkey/where.go:79
↓ 2 callersMethodCustomProps
CustomProps returns the custom props settings.
pkg/setting/provider.go:204
↓ 2 callersMethodDBClient
DBClient Get a singleton ent.Client instance for database access.
application/dependency/dependency.go:65
↓ 2 callersMethodDeadProps
()
pkg/webdav/prop.go:107
↓ 2 callersMethodDebug
Debug 校验
pkg/util/logger.go:105
↓ 2 callersMethodDecodeElement
DecodeElement works like xml.Unmarshal except that it takes a pointer to the start XML element to decode into v. It is useful when a client reads some
pkg/webdav/internal/xml/read.go:128
↓ 2 callersMethodDelete
Delete performs hard-delete for given paths, return newly generated stale entities in this delete operation.
pkg/filemanager/fs/fs.go:83
↓ 2 callersMethodDelete
Delete deletes the share.
inventory/share.go:51
↓ 2 callersMethodDelete
Delete deletes an OAuth client by its ID.
inventory/oauth_client.go:41
↓ 2 callersMethodDeleteAll
Remove all entries
pkg/cache/driver.go:35
↓ 2 callersMethodDeleteByFileIDs
(ctx context.Context, fileID ...int)
pkg/searcher/indexer.go:33
↓ 2 callersMethodDeleteUploadSession
(ctx context.Context, uploadURL string)
pkg/filemanager/driver/onedrive/client.go:38
↓ 2 callersMethodDirNameRuleCleared
DirNameRuleCleared returns if the "dir_name_rule" field was cleared in this mutation.
ent/mutation.go:13193
↓ 2 callersFunctionDiscoveryXmlToViewerGroup
(xmlStr string)
pkg/wopi/discovery.go:19
↓ 2 callersFunctionEmailContainsFold
EmailContainsFold applies the ContainsFold predicate on the "email" field.
ent/user/where.go:299
↓ 2 callersFunctionEmailEqualFold
EmailEqualFold applies the EqualFold predicate on the "email" field.
ent/user/where.go:294
↓ 2 callersMethodEmojiPresets
EmojiPresets returns the emoji presets used in file icon customization.
pkg/setting/provider.go:172
↓ 2 callersFunctionEncodePolicyID
EncodeEntityID encode policy id to hash id
pkg/hashid/hash.go:127
↓ 2 callersFunctionEncryptWithMasterKey
EncryptWithMasterKey encrypts data using the master key with AES-256-CTR Returns: [16-byte IV] + [encrypted data]
pkg/filemanager/encrypt/encrypt.go:42
↓ 2 callersMethodEntityUrlCacheMargin
EntityUrlCacheMargin returns the safe margin of entity URL cache. URL cache will expire in (EntityUrlValidDuration - EntityUrlCacheMargin).
pkg/setting/provider.go:81
↓ 2 callersMethodEscapeString
EscapeString writes to p the properly escaped XML equivalent of the plain text data s.
pkg/webdav/internal/xml/xml.go:1932
↓ 2 callersMethodExecContext
ExecContext logs its params and calls the underlying transaction ExecContext method if it is supported.
inventory/debug/debug.go:138
↓ 2 callersMethodExecuteNavigatorHooks
ExecuteNavigatorHooks executes hooks of given type on a file for navigator based custom hooks.
pkg/filemanager/fs/fs.go:68
↓ 2 callersMethodExpiresCleared
ExpiresCleared returns if the "expires" field was cleared in this mutation.
ent/mutation.go:11872
↓ 2 callersMethodFFMpegThumbExts
FFMpegThumbExts returns the supported extensions of ffmpeg thumb generator.
pkg/setting/provider.go:130
↓ 2 callersMethodFFMpegThumbGeneratorEnabled
FFMpegThumbGeneratorEnabled returns true if ffmpeg thumb generator is enabled.
pkg/setting/provider.go:128
↓ 2 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:792
↓ 2 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:5198
← previousnext →1,201–1,300 of 11,486, ranked by callers