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
↓ 30 callers
Method
Open
Open physical files. Only implemented if HandlerCapabilityInboundGet capability is set. Returns file path and an os.File object.
pkg/filemanager/driver/handler.go:54
↓ 30 callers
Method
OwnerID
()
pkg/filemanager/fs/fs.go:157
↓ 29 callers
Function
ErrWithDetails
ErrWithDetails 通用错误处理
pkg/serializer/error.go:341
↓ 28 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
ent/user_create.go:890
↓ 28 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
ent/user_create.go:1302
↓ 27 callers
Method
Get
Get returns a file by its path.
pkg/filemanager/fs/fs.go:73
↓ 27 callers
Method
Unique
Unique configures the query builder to filter duplicate records.
ent/intercept/intercept.go:41
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the FileCreate.OnConflict documentation for more info.
ent/file_create.go:809
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the FileCreateBulk.OnConflict documentation for more info.
ent/file_create.go:1214
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the EntityCreate.OnConflict documentation for more info.
ent/entity_create.go:645
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the EntityCreateBulk.OnConflict documentation for more info.
ent/entity_create.go:1050
↓ 27 callers
Method
apply
(*dependency)
application/dependency/options.go:21
↓ 26 callers
Method
Logger
()
application/dependency/dependency.go:290
↓ 26 callers
Method
Use
Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.
ent/client.go:272
↓ 25 callers
Function
DataPath
DataPath relative path for store persist data file
pkg/util/path.go:72
↓ 25 callers
Method
DecodeResponse
DecodeResponse 尝试解析为serializer.Response,并对状态码进行检查
pkg/request/request.go:262
↓ 25 callers
Method
SetStatus
SetStatus Set user to given status
inventory/user.go:59
↓ 25 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NodeCreate.OnConflict documentation for more info.
ent/node_create.go:586
↓ 25 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NodeCreateBulk.OnConflict documentation for more info.
ent/node_create.go:977
↓ 25 callers
Function
WithTx
WithTx wraps the given inventory client with a transaction.
inventory/tx.go:44
↓ 25 callers
Function
purposeStatusCodeFromError
(err error)
pkg/webdav/webdav.go:729
↓ 24 callers
Method
ConfigProvider
ConfigProvider Get a singleton conf.ConfigProvider instance.
application/dependency/dependency.go:57
↓ 24 callers
Method
Count
()
pkg/request/utils.go:38
↓ 24 callers
Method
FileSystem
()
pkg/filemanager/fs/uri.go:214
↓ 24 callers
Method
Get
Get gets file object by given path
pkg/filemanager/manager/manager.go:37
↓ 24 callers
Method
GetType
GetType returns the value of the "type" field in the mutation.
ent/mutation.go:3194
↓ 24 callers
Method
Println
Println 打印
pkg/util/logger.go:49
↓ 24 callers
Method
Remove
(gid string)
pkg/downloader/aria2/rpc/proto.go:8
↓ 24 callers
Method
System
()
pkg/conf/conf.go:20
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ShareCreate.OnConflict documentation for more info.
ent/share_create.go:598
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ShareCreateBulk.OnConflict documentation for more info.
ent/share_create.go:982
↓ 24 callers
Method
Write
(p []byte)
pkg/filemanager/manager/entitysource/entitysource.go:1093
↓ 23 callers
Method
Copy
Copy copies a layer of file to its corresponding destination folder. dstMap is a map from src parent ID to dst parent Files.
inventory/file.go:196
↓ 23 callers
Method
Entity
Entity returns the entity of the source.
pkg/filemanager/manager/entitysource/entitysource.go:61
↓ 23 callers
Method
Field
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in t
ent/mutation.go:4075
↓ 23 callers
Method
Path
()
pkg/filemanager/fs/uri.go:143
↓ 23 callers
Method
State
State returns the internal Task state
pkg/queue/task.go:34
↓ 23 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GroupCreate.OnConflict documentation for more info.
ent/group_create.go:564
↓ 23 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GroupCreateBulk.OnConflict documentation for more info.
ent/group_create.go:941
↓ 22 callers
Method
ConfigProvider
()
application/dependency/dependency.go:272
↓ 22 callers
Method
GetByID
GetByID returns a file by its ID.
inventory/file.go:168
↓ 22 callers
Method
ResumeAfter
ResumeAfter sets the time when the Task should be resumed
pkg/queue/task.go:54
↓ 22 callers
Method
Rollback
(context.Context, *Tx)
ent/tx.go:117
↓ 22 callers
Method
SettingProvider
()
application/dependency/dependency.go:465
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the OAuthClientCreate.OnConflict documentation for more info.
ent/oauthclient_create.go:583
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the OAuthClientCreateBulk.OnConflict documentation for more info.
ent/oauthclient_create.go:953
↓ 22 callers
Method
Update
Update updates a file
inventory/file.go:230
↓ 22 callers
Method
mustgetc
Must read a single byte. If there is no byte to read, set d.err to SyntaxError("unexpected EOF") and return ok==false
pkg/webdav/internal/xml/xml.go:930
↓ 21 callers
Function
CorrelationID
CorrelationID retrieves a correlation ID from context.
pkg/logging/logger.go:93
↓ 21 callers
Method
MimeDetector
MimeDetector Get a singleton fs.MimeDetector instance for MIME type detection.
application/dependency/dependency.go:124
↓ 21 callers
Method
SetSettings
SetSettings sets the "settings" field.
ent/mutation.go:7614
↓ 21 callers
Method
Settings
Settings returns the settings of the node.
pkg/cluster/node.go:47
↓ 21 callers
Method
getNavigator
(ctx context.Context, path *fs.URI, requiredCapabilities ...NavigatorCapability)
pkg/filemanager/fs/dbfs/dbfs.go:718
↓ 21 callers
Method
syntaxError
Creates a SyntaxError with the current line number.
pkg/webdav/internal/xml/xml.go:455
↓ 20 callers
Method
Clone
Clone returns a duplicate of the NodeQuery builder, including all associated steps. It can be used to prepare common query builders and use them diffe
ent/node_query.go:267
↓ 20 callers
Method
Owner
()
pkg/filemanager/fs/fs.go:156
↓ 20 callers
Method
RequestClient
RequestClient Creates a new request.Client instance for HTTP requests.
application/dependency/dependency.go:104
↓ 20 callers
Function
init
()
ent/migrate/schema.go:551
↓ 19 callers
Method
FileClient
FileClient Creates a new inventory.FileClient instance for access DB file store.
application/dependency/dependency.go:86
↓ 19 callers
Function
HashID
HashID 将给定对象的HashID转换为真实ID
middleware/common.go:25
↓ 19 callers
Method
Props
()
pkg/filemanager/fs/fs.go:187
↓ 19 callers
Method
QueueTask
SubmitTask submits a Task to the queue.
pkg/queue/queue.go:25
↓ 18 callers
Method
Apply
Apply applies the options to the source.
pkg/filemanager/manager/entitysource/entitysource.go:67
↓ 18 callers
Function
Exists
Exists reports whether the named file or directory exists.
pkg/util/io.go:10
↓ 18 callers
Method
Only
Only returns a single Node entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Node entity is foun
ent/node_query.go:133
↓ 18 callers
Method
SetType
SetType sets the "type" field.
ent/mutation.go:3188
↓ 18 callers
Method
SetValue
SetValue sets the "value" field.
ent/mutation.go:11116
↓ 18 callers
Method
StoragePolicyClient
ShareClient Creates a new inventory.ShareClient instance for access DB share store.
application/dependency/dependency.go:102
↓ 18 callers
Method
TypeByName
TypeByName returns the mime type by file name.
pkg/filemanager/fs/mime/mime.go:14
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the DavAccountCreate.OnConflict documentation for more info.
ent/davaccount_create.go:472
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the DavAccountCreateBulk.OnConflict documentation for more info.
ent/davaccount_create.go:814
↓ 18 callers
Method
UserIDs
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. I
ent/mutation.go:14670
↓ 18 callers
Function
formatTime
(t time.Time)
application/migrator/migrator.go:311
↓ 18 callers
Method
init
()
ent/client.go:84
↓ 18 callers
Function
withInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
ent/ent.go:588
↓ 17 callers
Method
Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
ent/mutation.go:3070
↓ 17 callers
Method
Database
()
pkg/conf/conf.go:19
↓ 17 callers
Function
FromContext
(c context.Context)
pkg/hashid/hash.go:150
↓ 17 callers
Method
Order
Order specifies how the records should be ordered.
ent/intercept/intercept.go:43
↓ 17 callers
Method
Source
获取外链/下载地址, url - 站点本身地址, isDownload - 是否直接下载
pkg/filemanager/driver/handler.go:66
↓ 17 callers
Method
Source
()
pkg/filemanager/fs/fs.go:181
↓ 17 callers
Method
TempPath
TempPath returns the path of temporary directory.
pkg/setting/provider.go:118
↓ 17 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TaskCreate.OnConflict documentation for more info.
ent/task_create.go:515
↓ 17 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TaskCreateBulk.OnConflict documentation for more info.
ent/task_create.go:853
↓ 17 callers
Method
Upsert
Upsert updates or inserts a node into the pool.
pkg/cluster/pool.go:20
↓ 17 callers
Function
ValidateExternalURL
ValidateExternalURL returns an error wrapping ErrUnsafeURL if the URL would reach an internal-only address when fetched by a server-side downloader. M
pkg/request/ssrf.go:81
↓ 17 callers
Method
Where
Where appends a list predicates to the FileMutation builder.
ent/mutation.go:4002
↓ 17 callers
Method
Where
Where adds a new predicate for the UserQuery builder.
ent/user_query.go:49
↓ 17 callers
Function
WithRequiredCapabilities
WithRequiredCapabilities sets the required capabilities for operations.
pkg/filemanager/fs/dbfs/options.go:127
↓ 17 callers
Function
WithValue
WithValue inject key-value pair into request context.
pkg/util/common.go:251
↓ 17 callers
Method
getFileByPath
(ctx context.Context, navigator Navigator, path *fs.URI)
pkg/filemanager/fs/dbfs/dbfs.go:684
↓ 17 callers
Method
init
()
ent/tx.go:179
↓ 17 callers
Function
newFile
(parent *File, model *ent.File)
pkg/filemanager/fs/dbfs/file.go:329
↓ 16 callers
Method
Aggregate
Aggregate aggregates the error and returns nil if there is no error; otherwise returns the error itself
pkg/serializer/error.go:436
↓ 16 callers
Function
CreatNestedFile
CreatNestedFile 给定path创建文件,如果目录不存在就递归创建
pkg/util/io.go:20
↓ 16 callers
Method
DisplayName
()
pkg/filemanager/fs/fs.go:147
↓ 16 callers
Method
GetPolicyByID
GetPolicyByID returns the storage policy by id.
inventory/policy.go:34
↓ 16 callers
Method
Hooks
()
ent/schema/file.go:86
↓ 16 callers
Function
NewErrorFromResponse
NewErrorFromResponse 从 serializer.Response 构建错误
pkg/serializer/error.go:32
↓ 16 callers
Function
Sets
Sets set BooleanSet values in batch.
pkg/boolset/boolset.go:69
← previous
next →
101–200 of 11,486, ranked by callers