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
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:9087
↓ 2 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:9901
↓ 2 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:10718
↓ 2 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:11336
↓ 2 callers
Function
FileChildrenNotNil
FileChildrenNotNil applies the NotNil predicate on the "file_children" field.
ent/file/where.go:429
↓ 2 callers
Function
FileID
FileID applies equality check predicate on the "file_id" field. It's identical to FileIDEQ.
ent/directlink/where.go:84
↓ 2 callers
Method
FileNameRuleCleared
FileNameRuleCleared returns if the "file_name_rule" field was cleared in this mutation.
ent/mutation.go:13242
↓ 2 callers
Method
FileOrErr
FileOrErr returns the File value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
ent/share.go:76
↓ 2 callers
Function
FileTypeFromString
(s string)
inventory/types/types.go:285
↓ 2 callers
Method
FirstID
FirstID returns the first Setting ID from the query. Returns a *NotFoundError when no Setting ID was found.
ent/setting_query.go:84
↓ 2 callers
Method
FirstID
FirstID returns the first Node ID from the query. Returns a *NotFoundError when no Node ID was found.
ent/node_query.go:109
↓ 2 callers
Method
FirstID
FirstID returns the first StoragePolicy ID from the query. Returns a *NotFoundError when no StoragePolicy ID was found.
ent/storagepolicy_query.go:181
↓ 2 callers
Method
FirstID
FirstID returns the first Group ID from the query. Returns a *NotFoundError when no Group ID was found.
ent/group_query.go:133
↓ 2 callers
Method
FirstID
FirstID returns the first FsEvent ID from the query. Returns a *NotFoundError when no FsEvent ID was found.
ent/fsevent_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first DavAccount ID from the query. Returns a *NotFoundError when no DavAccount ID was found.
ent/davaccount_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first Metadata ID from the query. Returns a *NotFoundError when no Metadata ID was found.
ent/metadata_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first OAuthGrant ID from the query. Returns a *NotFoundError when no OAuthGrant ID was found.
ent/oauthgrant_query.go:132
↓ 2 callers
Method
FirstID
FirstID returns the first DirectLink ID from the query. Returns a *NotFoundError when no DirectLink ID was found.
ent/directlink_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first Passkey ID from the query. Returns a *NotFoundError when no Passkey ID was found.
ent/passkey_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first Share ID from the query. Returns a *NotFoundError when no Share ID was found.
ent/share_query.go:133
↓ 2 callers
Method
FirstID
FirstID returns the first OAuthClient ID from the query. Returns a *NotFoundError when no OAuthClient ID was found.
ent/oauthclient_query.go:109
↓ 2 callers
Method
FirstID
FirstID returns the first Task ID from the query. Returns a *NotFoundError when no Task ID was found.
ent/task_query.go:108
↓ 2 callers
Method
FirstID
FirstID returns the first Entity ID from the query. Returns a *NotFoundError when no Entity ID was found.
ent/entity_query.go:157
↓ 2 callers
Method
FirstID
FirstID returns the first File ID from the query. Returns a *NotFoundError when no File ID was found.
ent/file_query.go:275
↓ 2 callers
Method
FirstID
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
ent/user_query.go:301
↓ 2 callers
Method
Float64s
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
ent/ent.go:428
↓ 2 callers
Method
FollowTx
FollowTx let the navigator inherit the transaction. Return a function to reset back to previous DB client.
pkg/filemanager/fs/dbfs/navigator.go:53
↓ 2 callers
Method
ForgotPasswordCaptchaEnabled
ForgotPasswordCaptchaEnabled returns true if forgot password captcha is enabled.
pkg/setting/provider.go:34
↓ 2 callers
Method
FormatFirstN
(n int)
pkg/serializer/error.go:451
↓ 2 callers
Function
FromString
FromString convert from base64 encoded boolset.
pkg/boolset/boolset.go:17
↓ 2 callers
Method
Get
(c *gin.Context)
service/admin/node.go:61
↓ 2 callers
Method
Get
(c *gin.Context)
service/admin/oauth_client.go:92
↓ 2 callers
Method
Get
(c *gin.Context)
service/admin/group.go:125
↓ 2 callers
Method
Get
Get gets a setting value from DB, returns error if setting cannot be found.
inventory/setting.go:23
↓ 2 callers
Method
GetByIDAndUserID
GetByIDAndUserID returns the dav account with given id and user id.
inventory/dav_account.go:25
↓ 2 callers
Method
GetByIDs
GetByIDs returns files with given IDs. The result is paginated. Caller should keep calling this until returned next page is negative.
inventory/file.go:166
↓ 2 callers
Method
GetEntity
GetEntitiesFromFileID returns all entities of a given file.
pkg/filemanager/fs/fs.go:85
↓ 2 callers
Method
GetEntityByID
GetEntityByID returns an entity by its ID.
inventory/file.go:173
↓ 2 callers
Method
GetEntityUrls
GetEntityUrls gets download urls of given entities, return URLs and the earliest expiry time
pkg/filemanager/manager/entity.go:25
↓ 2 callers
Method
GetRSCloser
GetRSCloser 返回带有空seeker的RSCloser,供http.ServeContent使用
pkg/request/request.go:299
↓ 2 callers
Function
GetScopesFromContext
(ctx context.Context)
pkg/auth/jwt.go:314
↓ 2 callers
Method
GetStorageDriver
GetStorageDriver gets storage driver for given policy
pkg/filemanager/manager/manager.go:79
↓ 2 callers
Method
GetTaskByID
GetTaskByID returns the task with the given ID.
inventory/task.go:41
↓ 2 callers
Method
GroupOrErr
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
ent/user.go:80
↓ 2 callers
Method
GroupUsers
GroupUsers returns the value of the "group_users" field in the mutation.
ent/mutation.go:15689
↓ 2 callers
Function
HasFileWith
HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).
ent/share/where.go:528
↓ 2 callers
Function
HasMetadataWith
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
ent/file/where.go:587
↓ 2 callers
Function
HasOp
HasOp is a condition testing mutation operation.
ent/hook/hook.go:245
↓ 2 callers
Function
HasParent
HasParent applies the HasEdge predicate on the "parent" edge.
ent/file/where.go:530
↓ 2 callers
Function
HasParentWith
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
ent/file/where.go:541
↓ 2 callers
Method
HomepageURLCleared
HomepageURLCleared returns if the "homepage_url" field was cleared in this mutation.
ent/mutation.go:8592
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/oauthgrant/where.go:14
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/metadata/where.go:14
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/setting/where.go:13
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/passkey/where.go:14
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/fsevent/where.go:15
↓ 2 callers
Function
ID
ID filters vertices based on their ID field.
ent/node/where.go:15
↓ 2 callers
Method
ID
(defaultUid string)
pkg/filemanager/fs/uri.go:132
↓ 2 callers
Method
ID
()
pkg/cluster/node.go:33
↓ 2 callers
Function
If
If executes the given hook under condition. hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))
ent/hook/hook.go:299
↓ 2 callers
Method
IncSubmittedTask
()
pkg/queue/metric.go:15
↓ 2 callers
Method
IncSuspendingTask
()
pkg/queue/metric.go:73
↓ 2 callers
Method
IndexFile
(ctx context.Context, ownerID, fileID, entityID int, fileName, text string)
pkg/searcher/indexer.go:32
↓ 2 callers
Method
Info
(ctx context.Context, handle *downloader.TaskHandle)
pkg/downloader/aria2/aria2.go:90
↓ 2 callers
Method
Info
Info 信息
pkg/util/logger.go:96
↓ 2 callers
Method
Init
Init 初始化发送队列
pkg/email/smtp.go:113
↓ 2 callers
Method
Intercept
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`
ent/client.go:284
↓ 2 callers
Method
Ints
Ints returns list of ints from a selector. It is only allowed when selecting one field.
ent/ent.go:381
↓ 2 callers
Function
IsEmpty
IsEmpty 返回给定目录是否为空目录
pkg/util/io.go:46
↓ 2 callers
Method
IsPrivateCleared
IsPrivateCleared returns if the "is_private" field was cleared in this mutation.
ent/mutation.go:12976
↓ 2 callers
Function
IsPublic
IsPublic applies equality check predicate on the "is_public" field. It's identical to IsPublicEQ.
ent/metadata/where.go:89
↓ 2 callers
Method
IsRootFile
IsRootFile return true if the file is the root file under user's view.
pkg/filemanager/fs/dbfs/file.go:294
↓ 2 callers
Function
IsShareExpired
(share *ent.Share)
inventory/share.go:250
↓ 2 callers
Function
IsSymbolic
IsSymbolic applies equality check predicate on the "is_symbolic" field. It's identical to IsSymbolicEQ.
ent/file/where.go:99
↓ 2 callers
Method
Issue
Issue issues a new pair of credentials for the given user.
pkg/auth/jwt.go:27
↓ 2 callers
Method
LastUsedAtCleared
LastUsedAtCleared returns if the "last_used_at" field was cleared in this mutation.
ent/mutation.go:9633
↓ 2 callers
Method
LibRawThumbExts
LibRawThumbExts returns the supported extensions of libraw thumb generator.
pkg/setting/provider.go:200
↓ 2 callers
Method
LibRawThumbGeneratorEnabled
LibRawThumbGeneratorEnabled returns true if libraw thumb generator is enabled.
pkg/setting/provider.go:196
↓ 2 callers
Method
LibreOfficeThumbExts
LibreOfficeThumbExts returns the supported extensions of libreoffice thumb generator.
pkg/setting/provider.go:146
↓ 2 callers
Method
LibreOfficeThumbGeneratorEnabled
LibreOfficeThumbGeneratorEnabled returns true if libreoffice thumb generator is enabled.
pkg/setting/provider.go:144
↓ 2 callers
Method
List
List lists files from remote server
pkg/filemanager/driver/remote/client.go:50
↓ 2 callers
Method
List
List lists files under give path.
pkg/filemanager/fs/fs.go:77
↓ 2 callers
Method
List
List lists files under given path
pkg/filemanager/manager/manager.go:39
↓ 2 callers
Method
ListActiveNodes
ListActiveNodes returns the active nodes.
inventory/node.go:15
↓ 2 callers
Method
LoadMetadata
LoadMetadata loads and decrypts the encryption metadata using the master key
pkg/filemanager/encrypt/encrypt.go:19
↓ 2 callers
Method
LocalDriver
LocalDriver gets local driver for operating local files.
pkg/filemanager/manager/manager.go:73
↓ 2 callers
Method
LocalPath
(ctx context.Context, path string)
pkg/filemanager/driver/local/local.go:121
↓ 2 callers
Function
LockSessionFromCtx
LockSessionFromCtx retrieves lock session from context. If no lock session found, a new empty lock session will be returned.
pkg/filemanager/fs/dbfs/lock.go:267
↓ 2 callers
Method
LockSystem
LockSystem Get a singleton lock.LockSystem instance for file lock management.
application/dependency/dependency.go:100
↓ 2 callers
Method
LoginCaptchaEnabled
LoginCaptchaEnabled returns true if login captcha is enabled.
pkg/setting/provider.go:32
↓ 2 callers
Method
MarshalXMLAttr
(name Name)
pkg/webdav/internal/xml/marshal.go:110
↓ 2 callers
Method
MasterEncryptKeyFile
MasterEncryptKeyFile returns the master encrypt key file.
pkg/setting/provider.go:216
↓ 2 callers
Function
MasterPolicyOAuthCallback
(base *url.URL)
pkg/cluster/routes/routes.go:103
↓ 2 callers
Function
MasterShareLongUrl
MasterShareLongUrl generates a long share URL for redirect.
pkg/cluster/routes/routes.go:85
↓ 2 callers
Method
MaxBatchedFile
MaxBatchedFile returns the maximum number of files in a batch operation.
pkg/setting/provider.go:66
↓ 2 callers
Method
MaxSizeCleared
MaxSizeCleared returns if the "max_size" field was cleared in this mutation.
ent/mutation.go:13143
↓ 2 callers
Method
MaxStorageCleared
MaxStorageCleared returns if the "max_storage" field was cleared in this mutation.
ent/mutation.go:5657
↓ 2 callers
Method
MediaMeta
MediaMeta extracts media metadata from the given file.
pkg/filemanager/driver/handler.go:86
↓ 2 callers
Method
Merge
(diff StorageDiff)
inventory/common.go:121
↓ 2 callers
Method
Meta
(ctx context.Context, id string, path string)
pkg/filemanager/driver/onedrive/client.go:32
← previous
next →
1,301–1,400 of 11,486, ranked by callers