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
↓ 2 callers
Method
AddDownloads
AddDownloads adds i to the "downloads" field.
ent/mutation.go:11811
↓ 2 callers
Method
AddEntities
AddEntities adds the "entities" edges to the Entity entity.
ent/file_update.go:295
↓ 2 callers
Method
AddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/file_update.go:289
↓ 2 callers
Method
AddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/storagepolicy_update.go:320
↓ 2 callers
Method
AddEntityIDs
AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
ent/user_update.go:318
↓ 2 callers
Method
AddFile
AddFile adds the "file" edges to the File entity.
ent/entity_create.go:151
↓ 2 callers
Method
AddFileIDs
AddFileIDs adds the "files" edge to the File entity by IDs.
ent/storagepolicy_update.go:305
↓ 2 callers
Method
AddFileIDs
AddFileIDs adds the "file" edge to the File entity by IDs.
ent/entity_update.go:206
↓ 2 callers
Method
AddFileIDs
AddFileIDs adds the "files" edge to the File entity by IDs.
ent/user_update.go:228
↓ 2 callers
Method
AddFseventIDs
AddFseventIDs adds the "fsevents" edge to the FsEvent entity by IDs.
ent/user_update.go:303
↓ 2 callers
Method
AddGrantIDs
AddGrantIDs adds the "grants" edge to the OAuthGrant entity by IDs.
ent/oauthclient_update.go:167
↓ 2 callers
Method
AddGroupIDs
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
ent/storagepolicy_update.go:290
↓ 2 callers
Method
AddMetadatumIDs
AddMetadatumIDs adds the "metadata" edge to the Metadata entity by IDs.
ent/file_update.go:274
↓ 2 callers
Method
AddOauthGrantIDs
AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs.
ent/user_update.go:333
↓ 2 callers
Method
AddPasskeyIDs
AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs.
ent/user_update.go:273
↓ 2 callers
Method
AddRemainDownloads
AddRemainDownloads adds i to the "remain_downloads" field.
ent/mutation.go:11916
↓ 2 callers
Method
AddShareIDs
AddShareIDs adds the "shares" edge to the Share entity by IDs.
ent/file_update.go:304
↓ 2 callers
Method
AddShareIDs
AddShareIDs adds the "shares" edge to the Share entity by IDs.
ent/user_update.go:258
↓ 2 callers
Method
AddStorage
AddStorage adds i to the "storage" field.
ent/mutation.go:15513
↓ 2 callers
Method
AddStoragePolicyIDs
AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
ent/node_update.go:182
↓ 2 callers
Method
AddTaskIDs
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
ent/user_update.go:288
↓ 2 callers
Method
AddUserIDs
AddUserIDs adds the "users" edge to the User entity by IDs.
ent/group_update.go:168
↓ 2 callers
Method
AddViews
AddViews adds i to the "views" field.
ent/mutation.go:11755
↓ 2 callers
Method
AddedField
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 callers
Method
Aggregate
Aggregate returns a NodeSelect configured with the given aggregations.
ent/node_query.go:339
↓ 2 callers
Method
Ancestors
Ancestors return all ancestors of the file, until the owner root is reached.
pkg/filemanager/fs/dbfs/file.go:267
↓ 2 callers
Function
AnonymousPermLink
AnonymousPermLink 文件中转后的永久直链接
routers/controllers/file.go:104
↓ 2 callers
Method
AnonymousUser
AnonymousUser returns the anonymous user.
inventory/user.go:61
↓ 2 callers
Method
AppSetting
AppSetting returns the app related settings.
pkg/setting/provider.go:188
↓ 2 callers
Method
AppendedRedirectUris
AppendedRedirectUris returns the list of values that were appended to the "redirect_uris" field in this mutation.
ent/mutation.go:8641
↓ 2 callers
Method
Apply
Apply applies the given options to this client.
pkg/request/request.go:47
↓ 2 callers
Function
ApplyProxyIfNeeded
(policy *ent.StoragePolicy, srcUrl *url.URL)
pkg/filemanager/driver/util.go:12
↓ 2 callers
Method
AvatarCleared
AvatarCleared returns if the "avatar" field was cleared in this mutation.
ent/mutation.go:15623
↓ 2 callers
Method
Bools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
ent/ent.go:475
↓ 2 callers
Method
BucketNameCleared
BucketNameCleared returns if the "bucket_name" field was cleared in this mutation.
ent/mutation.go:12927
↓ 2 callers
Function
BuildConcat
BuildConcat 根据数据库类型构建字符串连接表达式
pkg/util/common.go:206
↓ 2 callers
Function
BuildListShareResponse
(ctx context.Context, res *inventory.ListShareResult, hasher hashid.Encoder, base *url.URL, requester *ent.Use
service/share/response.go:22
↓ 2 callers
Function
BuildNode
BuildNode serialize a node.
service/user/response.go:91
↓ 2 callers
Function
BuildPasskey
(passkey *ent.Passkey)
service/user/response.go:63
↓ 2 callers
Function
BuildRegexp
BuildRegexp 构建用于SQL查询用的多条件正则
pkg/util/common.go:194
↓ 2 callers
Function
BuildShareLink
(s *ent.Share, hasher hashid.Encoder, base *url.URL, unlocked bool)
service/explorer/response.go:500
↓ 2 callers
Method
BuiltinThumbGeneratorEnabled
BuiltinThumbGeneratorEnabled returns true if builtin thumb generator is enabled.
pkg/setting/provider.go:114
↓ 2 callers
Function
ByID
ByID orders the results by the id field.
ent/task/task.go:124
↓ 2 callers
Function
ByID
ByID orders the results by the id field.
ent/storagepolicy/storagepolicy.go:141
↓ 2 callers
Method
CanHaveChildren
()
pkg/filemanager/fs/dbfs/file.go:99
↓ 2 callers
Method
CancelUploadSession
CancelUploadSession cancels an upload session. Delete the placeholder file if no other entity is created.
pkg/filemanager/fs/fs.go:111
↓ 2 callers
Method
CapCaptcha
CapCaptcha returns the Cap settings.
pkg/setting/provider.go:44
↓ 2 callers
Method
Capacity
(ctx context.Context, u *ent.User)
pkg/filemanager/fs/dbfs/dbfs.go:228
↓ 2 callers
Method
CaptchaType
CaptchaType returns the type of captcha used.
pkg/setting/provider.go:36
↓ 2 callers
Method
CastStoragePolicyOnSlave
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 callers
Method
Check
对给定Body和Sign进行检查
pkg/auth/auth.go:40
↓ 2 callers
Function
CheckPassword
CheckPassword 根据明文校验密码
inventory/user.go:551
↓ 2 callers
Function
CheckRequest
CheckRequest 对复杂请求进行签名验证
pkg/auth/auth.go:78
↓ 2 callers
Method
Children
Children returns the children of the parent file.
pkg/filemanager/fs/dbfs/navigator.go:43
↓ 2 callers
Method
ClearExpires
ClearExpires clears the value of the "expires" field.
ent/mutation.go:11866
↓ 2 callers
Method
ClearParent
ClearParent clears the "parent" edge to the File entity.
ent/mutation.go:3697
↓ 2 callers
Method
ClearRemainDownloads
ClearRemainDownloads clears the value of the "remain_downloads" field.
ent/mutation.go:11934
↓ 2 callers
Method
ClearStoragePolicies
ClearStoragePolicies clears the "storage_policies" edge to the StoragePolicy entity.
ent/mutation.go:3657
↓ 2 callers
Method
ClearUploadSessionID
ClearUploadSessionID clears the value of the "upload_session_id" field.
ent/mutation.go:2286
↓ 2 callers
Method
ConfirmLock
(ctx context.Context, ancestor fs.File, uri *fs.URI, token ...string)
pkg/filemanager/fs/dbfs/lock.go:35
↓ 2 callers
Function
ContextHint
ContextHint parses the context hint header and set it to context
middleware/file.go:41
↓ 2 callers
Method
CorrelationIDCleared
CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation.
ent/mutation.go:14583
↓ 2 callers
Function
Count
Count applies the "count" aggregation function on each group.
ent/ent.go:151
↓ 2 callers
Method
CountUsers
CountUsers returns the number of users in the group.
inventory/group.go:34
↓ 2 callers
Function
CreatNestedFolder
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 callers
Method
Create
Create creates a new OAuth client.
inventory/oauth_client.go:37
↓ 2 callers
Method
CreateFile
CreateFile creates a file on the node.
pkg/filemanager/fs/fs.go:138
↓ 2 callers
Method
CreateFolder
CreateOrGetFolder creates a folder with given name under root, or return the existed one
inventory/file.go:163
↓ 2 callers
Function
CreatedAt
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
ent/file/where.go:59
↓ 2 callers
Function
CreatedAtGTE
CreatedAtGTE applies the GTE predicate on the "created_at" field.
ent/file/where.go:134
↓ 2 callers
Function
CreatedAtLT
CreatedAtLT applies the LT predicate on the "created_at" field.
ent/file/where.go:139
↓ 2 callers
Method
CreatedBy
()
pkg/filemanager/fs/fs.go:185
↓ 2 callers
Function
CredentialID
CredentialID applies equality check predicate on the "credential_id" field. It's identical to CredentialIDEQ.
ent/passkey/where.go:79
↓ 2 callers
Method
CustomProps
CustomProps returns the custom props settings.
pkg/setting/provider.go:204
↓ 2 callers
Method
DBClient
DBClient Get a singleton ent.Client instance for database access.
application/dependency/dependency.go:65
↓ 2 callers
Method
DeadProps
()
pkg/webdav/prop.go:107
↓ 2 callers
Method
Debug
Debug 校验
pkg/util/logger.go:105
↓ 2 callers
Method
DecodeElement
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 callers
Method
Delete
Delete performs hard-delete for given paths, return newly generated stale entities in this delete operation.
pkg/filemanager/fs/fs.go:83
↓ 2 callers
Method
Delete
Delete deletes the share.
inventory/share.go:51
↓ 2 callers
Method
Delete
Delete deletes an OAuth client by its ID.
inventory/oauth_client.go:41
↓ 2 callers
Method
DeleteAll
Remove all entries
pkg/cache/driver.go:35
↓ 2 callers
Method
DeleteByFileIDs
(ctx context.Context, fileID ...int)
pkg/searcher/indexer.go:33
↓ 2 callers
Method
DeleteUploadSession
(ctx context.Context, uploadURL string)
pkg/filemanager/driver/onedrive/client.go:38
↓ 2 callers
Method
DirNameRuleCleared
DirNameRuleCleared returns if the "dir_name_rule" field was cleared in this mutation.
ent/mutation.go:13193
↓ 2 callers
Function
DiscoveryXmlToViewerGroup
(xmlStr string)
pkg/wopi/discovery.go:19
↓ 2 callers
Function
EmailContainsFold
EmailContainsFold applies the ContainsFold predicate on the "email" field.
ent/user/where.go:299
↓ 2 callers
Function
EmailEqualFold
EmailEqualFold applies the EqualFold predicate on the "email" field.
ent/user/where.go:294
↓ 2 callers
Method
EmojiPresets
EmojiPresets returns the emoji presets used in file icon customization.
pkg/setting/provider.go:172
↓ 2 callers
Function
EncodePolicyID
EncodeEntityID encode policy id to hash id
pkg/hashid/hash.go:127
↓ 2 callers
Function
EncryptWithMasterKey
EncryptWithMasterKey encrypts data using the master key with AES-256-CTR Returns: [16-byte IV] + [encrypted data]
pkg/filemanager/encrypt/encrypt.go:42
↓ 2 callers
Method
EntityUrlCacheMargin
EntityUrlCacheMargin returns the safe margin of entity URL cache. URL cache will expire in (EntityUrlValidDuration - EntityUrlCacheMargin).
pkg/setting/provider.go:81
↓ 2 callers
Method
EscapeString
EscapeString writes to p the properly escaped XML equivalent of the plain text data s.
pkg/webdav/internal/xml/xml.go:1932
↓ 2 callers
Method
ExecContext
ExecContext logs its params and calls the underlying transaction ExecContext method if it is supported.
inventory/debug/debug.go:138
↓ 2 callers
Method
ExecuteNavigatorHooks
ExecuteNavigatorHooks executes hooks of given type on a file for navigator based custom hooks.
pkg/filemanager/fs/fs.go:68
↓ 2 callers
Method
ExpiresCleared
ExpiresCleared returns if the "expires" field was cleared in this mutation.
ent/mutation.go:11872
↓ 2 callers
Method
FFMpegThumbExts
FFMpegThumbExts returns the supported extensions of ffmpeg thumb generator.
pkg/setting/provider.go:130
↓ 2 callers
Method
FFMpegThumbGeneratorEnabled
FFMpegThumbGeneratorEnabled returns true if ffmpeg thumb generator is enabled.
pkg/setting/provider.go:128
↓ 2 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:792
↓ 2 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:5198
← previous
next →
1,201–1,300 of 11,486, ranked by callers