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
Model
Model returns the ent model of the Task
pkg/queue/task.go:48
↓ 2 callers
Method
MusicCoverThumbExts
MusicCoverThumbExts returns the supported extensions of music cover thumb generator.
pkg/setting/provider.go:156
↓ 2 callers
Method
MusicCoverThumbGeneratorEnabled
MusicCoverThumbGeneratorEnabled returns true if music cover thumb generator is enabled.
pkg/setting/provider.go:152
↓ 2 callers
Function
Name
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
ent/directlink/where.go:74
↓ 2 callers
Function
Name
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
ent/metadata/where.go:74
↓ 2 callers
Function
NameContains
NameContains applies the Contains predicate on the "name" field.
ent/file/where.go:269
↓ 2 callers
Function
NameContainsFold
NameContainsFold applies the ContainsFold predicate on the "name" field.
ent/file/where.go:289
↓ 2 callers
Function
NameEQ
NameEQ applies the EQ predicate on the "name" field.
ent/metadata/where.go:224
↓ 2 callers
Function
NameNEQ
NameNEQ applies the NEQ predicate on the "name" field.
ent/file/where.go:234
↓ 2 callers
Function
New
(ctx context.Context, policy *ent.StoragePolicy, settings setting.Provider, config conf.ConfigProvider, l log
pkg/filemanager/driver/cos/cos.go:101
↓ 2 callers
Function
New
(ctx context.Context, policy *ent.StoragePolicy, settings setting.Provider, config conf.ConfigProvider, l log
pkg/filemanager/driver/obs/obs.go:79
↓ 2 callers
Function
New
(ctx context.Context, policy *ent.StoragePolicy, settings setting.Provider, config conf.ConfigProvider, l log
pkg/filemanager/driver/oss/oss.go:83
↓ 2 callers
Function
New
(ctx context.Context, policy *ent.StoragePolicy, settings setting.Provider, config conf.ConfigProvider, l log
pkg/filemanager/driver/s3/s3.go:74
↓ 2 callers
Function
New
(ctx context.Context, policy *ent.StoragePolicy, settings setting.Provider, config conf.ConfigProvider, l log
pkg/filemanager/driver/ks3/ks3.go:88
↓ 2 callers
Function
NewBalancer
NewBalancer 根据策略标识返回新的负载均衡器
pkg/balancer/balancer.go:8
↓ 2 callers
Function
NewCallbackReader
(reader io.Reader, callback func(int64))
pkg/util/io.go:65
↓ 2 callers
Function
NewEmptyEntity
(u *ent.User)
pkg/filemanager/fs/fs.go:800
↓ 2 callers
Function
NewEncoder
NewEncoder returns a new encoder that writes to w.
pkg/webdav/internal/xml/marshal.go:132
↓ 2 callers
Function
NewEnvOverrideStore
NewEnvOverwriteStore creates an adapter that always returns overrided setting value defined in environment variables.
pkg/setting/adapters.go:64
↓ 2 callers
Function
NewFullTextIndexTask
(ctx context.Context, uri *fs.URI, entityID, fileID, ownerID int, creator *ent.User)
pkg/filemanager/manager/fulltextindex.go:91
↓ 2 callers
Function
NewGroupClient
(client *ent.Client, dbType conf.DBType, cache cache.Driver)
inventory/group.go:49
↓ 2 callers
Function
NewProvider
NewProvider creates a new setting provider.
pkg/setting/provider.go:247
↓ 2 callers
Function
NewQuery
NewQuery returns the generic Query interface for the given typed query.
ent/intercept/intercept.go:519
↓ 2 callers
Function
NewRawEntClient
NewRawEntClient returns a new ent.Client without additional configurations.
inventory/client.go:48
↓ 2 callers
Function
NewRedisStore
NewRedisStore 创建新的redis存储
pkg/cache/redis.go:49
↓ 2 callers
Function
NewRemoteDownloadTask
NewRemoteDownloadTask creates a new RemoteDownloadTask
pkg/filemanager/workflows/remote_download.go:85
↓ 2 callers
Function
NewSlaveDownloader
NewSlaveDownloader creates a new slave downloader
pkg/downloader/slave/slave.go:25
↓ 2 callers
Function
NewTPSLimiter
()
pkg/request/tpslimiter.go:15
↓ 2 callers
Function
NewThumbFromFile
NewThumbFromFile 从文件数据获取新的Thumb对象, 尝试通过文件名name解码图像
pkg/thumb/builtin.go:41
↓ 2 callers
Function
NewUserClient
(client *ent.Client)
inventory/user.go:112
↓ 2 callers
Function
NickContainsFold
NickContainsFold applies the ContainsFold predicate on the "nick" field.
ent/user/where.go:364
↓ 2 callers
Method
NodeCleared
NodeCleared reports if the "node" edge to the Node entity was cleared.
ent/mutation.go:13520
↓ 2 callers
Function
Not
Not applies the not operator on the given predicate.
ent/file/where.go:678
↓ 2 callers
Method
OnBtDownloadComplete
OnBtDownloadComplete will be sent when a torrent download is complete but seeding is still going on.
pkg/downloader/aria2/rpc/notification.go:34
↓ 2 callers
Method
OnConflict
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example: client.File.Create(). SetCreat
ent/file_create.go:576
↓ 2 callers
Method
OnDownloadComplete
OnDownloadComplete will be sent when a download is complete. For BitTorrent downloads, this notification is sent when the download is complete and see
pkg/downloader/aria2/rpc/notification.go:30
↓ 2 callers
Method
OnDownloadError
OnDownloadError will be sent when a download is stopped due to an error.
pkg/downloader/aria2/rpc/notification.go:32
↓ 2 callers
Method
OnDownloadPause
OnDownloadPause will be sent when a download is paused.
pkg/downloader/aria2/rpc/notification.go:26
↓ 2 callers
Method
OnDownloadStart
OnDownloadStart will be sent when a download is started.
pkg/downloader/aria2/rpc/notification.go:24
↓ 2 callers
Method
OnDownloadStop
OnDownloadStop will be sent when a download is stopped by the user.
pkg/downloader/aria2/rpc/notification.go:28
↓ 2 callers
Method
OnUploadFailed
OnUploadFailed handles the failed upload on the node.
pkg/filemanager/fs/fs.go:136
↓ 2 callers
Method
OnUploadFailed
OnUploadFailed should be called when an unmanaged upload failed before complete.
pkg/filemanager/manager/upload.go:38
↓ 2 callers
Method
Open
Open opens the named file for reading and returns it as an fs.File. The returned file implements io.Seeker when the file is not a directory.
application/statics/embed.go:302
↓ 2 callers
Method
P
P adds a storage-level predicate to the queries and mutations.
ent/schema/common.go:46
↓ 2 callers
Method
ParentCleared
ParentCleared reports if the "parent" edge to the File entity was cleared.
ent/mutation.go:3703
↓ 2 callers
Method
PatchMedata
UpsertMedata update or insert metadata of given file
pkg/filemanager/manager/manager.go:55
↓ 2 callers
Method
PrepareUpload
PrepareUpload prepares an upload session. It performs validation on upload request and returns a placeholder file if needed.
pkg/filemanager/fs/fs.go:107
↓ 2 callers
Method
PrimaryEntityCleared
PrimaryEntityCleared returns if the "primary_entity" field was cleared in this mutation.
ent/mutation.go:3429
↓ 2 callers
Method
Priority
Priority of execution order, smaller value means higher priority.
pkg/thumb/pipeline.go:27
↓ 2 callers
Method
PrivateStateCleared
PrivateStateCleared returns if the "private_state" field was cleared in this mutation.
ent/mutation.go:14534
↓ 2 callers
Method
Progress
(ctx context.Context)
pkg/queue/task.go:55
↓ 2 callers
Method
QueryContext
QueryContext logs its params and calls the underlying transaction QueryContext method if it is supported.
inventory/debug/debug.go:164
↓ 2 callers
Function
RandString
RandString returns random string in given length and variant
pkg/util/common.go:54
↓ 2 callers
Method
ReCaptcha
ReCaptcha returns the Google reCaptcha settings.
pkg/setting/provider.go:38
↓ 2 callers
Function
RedactSensitiveValues
(errorMessage string)
pkg/auth/auth.go:183
↓ 2 callers
Function
ReferenceCountLTE
ReferenceCountLTE applies the LTE predicate on the "reference_count" field.
ent/entity/where.go:420
↓ 2 callers
Method
Refresh
(ctx context.Context)
pkg/credmanager/credmanager.go:34
↓ 2 callers
Method
Refresh
Refresh refreshes a lock.
pkg/filemanager/fs/fs.go:127
↓ 2 callers
Method
RegCaptchaEnabled
RegCaptchaEnabled returns true if registration captcha is enabled.
pkg/setting/provider.go:30
↓ 2 callers
Method
RegisterEnabled
RegisterEnabled returns true if public sign-up is enabled.
pkg/setting/provider.go:26
↓ 2 callers
Method
RemainDownloadsCleared
RemainDownloadsCleared returns if the "remain_downloads" field was cleared in this mutation.
ent/mutation.go:11941
↓ 2 callers
Method
RemoveChildIDs
RemoveChildIDs removes the "children" edge to File entities by IDs.
ent/file_update.go:363
↓ 2 callers
Method
RemoveDavAccountIDs
RemoveDavAccountIDs removes the "dav_accounts" edge to DavAccount entities by IDs.
ent/user_update.go:386
↓ 2 callers
Method
RemoveDirectLinkIDs
RemoveDirectLinkIDs removes the "direct_links" edge to DirectLink entities by IDs.
ent/file_update.go:447
↓ 2 callers
Method
RemoveEntityIDs
RemoveEntityIDs removes the "entities" edge to Entity entities by IDs.
ent/file_update.go:405
↓ 2 callers
Method
RemoveEntityIDs
RemoveEntityIDs removes the "entities" edge to Entity entities by IDs.
ent/storagepolicy_update.go:393
↓ 2 callers
Method
RemoveEntityIDs
RemoveEntityIDs removes the "entities" edge to Entity entities by IDs.
ent/user_update.go:491
↓ 2 callers
Method
RemoveFile
RemoveFile removes "file" edges to File entities.
ent/entity_update.go:268
↓ 2 callers
Method
RemoveFileIDs
RemoveFileIDs removes the "files" edge to File entities by IDs.
ent/storagepolicy_update.go:372
↓ 2 callers
Method
RemoveFileIDs
RemoveFileIDs removes the "file" edge to File entities by IDs.
ent/entity_update.go:262
↓ 2 callers
Method
RemoveFileIDs
RemoveFileIDs removes the "files" edge to File entities by IDs.
ent/user_update.go:365
↓ 2 callers
Method
RemoveFseventIDs
RemoveFseventIDs removes the "fsevents" edge to FsEvent entities by IDs.
ent/user_update.go:470
↓ 2 callers
Method
RemoveGrantIDs
RemoveGrantIDs removes the "grants" edge to OAuthGrant entities by IDs.
ent/oauthclient_update.go:193
↓ 2 callers
Method
RemoveGroupIDs
RemoveGroupIDs removes the "groups" edge to Group entities by IDs.
ent/storagepolicy_update.go:351
↓ 2 callers
Method
RemoveMetadatumIDs
RemoveMetadatumIDs removes the "metadata" edge to Metadata entities by IDs.
ent/file_update.go:384
↓ 2 callers
Method
RemoveOauthGrantIDs
RemoveOauthGrantIDs removes the "oauth_grants" edge to OAuthGrant entities by IDs.
ent/user_update.go:512
↓ 2 callers
Method
RemovePasskeyIDs
RemovePasskeyIDs removes the "passkey" edge to Passkey entities by IDs.
ent/user_update.go:428
↓ 2 callers
Method
RemoveShareIDs
RemoveShareIDs removes the "shares" edge to Share entities by IDs.
ent/file_update.go:426
↓ 2 callers
Method
RemoveShareIDs
RemoveShareIDs removes the "shares" edge to Share entities by IDs.
ent/user_update.go:407
↓ 2 callers
Method
RemoveStoragePolicyIDs
RemoveStoragePolicyIDs removes the "storage_policy" edge to StoragePolicy entities by IDs.
ent/node_update.go:208
↓ 2 callers
Method
RemoveTaskIDs
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
ent/user_update.go:449
↓ 2 callers
Method
RemoveUserIDs
RemoveUserIDs removes the "users" edge to User entities by IDs.
ent/group_update.go:213
↓ 2 callers
Method
RemovedChildrenIDs
RemovedChildren returns the removed IDs of the "children" edge to the File entity.
ent/mutation.go:3763
↓ 2 callers
Method
RemovedDavAccountsIDs
RemovedDavAccounts returns the removed IDs of the "dav_accounts" edge to the DavAccount entity.
ent/mutation.go:15845
↓ 2 callers
Method
RemovedDirectLinksIDs
RemovedDirectLinks returns the removed IDs of the "direct_links" edge to the DirectLink entity.
ent/mutation.go:3979
↓ 2 callers
Method
RemovedFileIDs
RemovedFile returns the removed IDs of the "file" edge to the File entity.
ent/mutation.go:2384
↓ 2 callers
Method
RemovedFseventsIDs
RemovedFsevents returns the removed IDs of the "fsevents" edge to the FsEvent entity.
ent/mutation.go:16061
↓ 2 callers
Method
RemovedGrantsIDs
RemovedGrants returns the removed IDs of the "grants" edge to the OAuthGrant entity.
ent/mutation.go:8809
↓ 2 callers
Method
RemovedGroupsIDs
RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.
ent/mutation.go:13383
↓ 2 callers
Method
RemovedMetadataIDs
RemovedMetadata returns the removed IDs of the "metadata" edge to the Metadata entity.
ent/mutation.go:3817
↓ 2 callers
Method
RemovedOauthGrantsIDs
RemovedOauthGrants returns the removed IDs of the "oauth_grants" edge to the OAuthGrant entity.
ent/mutation.go:16169
↓ 2 callers
Method
RemovedPasskeyIDs
RemovedPasskey returns the removed IDs of the "passkey" edge to the Passkey entity.
ent/mutation.go:15953
↓ 2 callers
Method
RemovedStoragePolicyIDs
RemovedStoragePolicy returns the removed IDs of the "storage_policy" edge to the StoragePolicy entity.
ent/mutation.go:7750
↓ 2 callers
Method
RemovedTasksIDs
RemovedTasks returns the removed IDs of the "tasks" edge to the Task entity.
ent/mutation.go:16007
↓ 2 callers
Method
RemovedUsersIDs
RemovedUsers returns the removed IDs of the "users" edge to the User entity.
ent/mutation.go:5905
↓ 2 callers
Method
Rename
Rename renames a file or directory
pkg/filemanager/manager/manager.go:43
↓ 2 callers
Method
RequestClient
(opts ...request.Option)
application/dependency/dependency.go:223
↓ 2 callers
Function
Resize
(newWidth, newHeight uint, img image.Image)
pkg/thumb/builtin.go:139
↓ 2 callers
Function
Sandbox
()
middleware/common.go:64
↓ 2 callers
Method
Save
Save executes the query and returns the number of nodes affected by the update operation.
ent/group_update.go:234
← previous
next →
1,401–1,500 of 11,486, ranked by callers