MCPcopy Create free account

hub / github.com/cloudreve/cloudreve / functions

Functions11,486 in github.com/cloudreve/cloudreve

↓ 30 callersMethodOpen
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 callersMethodOwnerID
()
pkg/filemanager/fs/fs.go:157
↓ 29 callersFunctionErrWithDetails
ErrWithDetails 通用错误处理
pkg/serializer/error.go:341
↓ 28 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
ent/user_create.go:890
↓ 28 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
ent/user_create.go:1302
↓ 27 callersMethodGet
Get returns a file by its path.
pkg/filemanager/fs/fs.go:73
↓ 27 callersMethodUnique
Unique configures the query builder to filter duplicate records.
ent/intercept/intercept.go:41
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the FileCreate.OnConflict documentation for more info.
ent/file_create.go:809
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the FileCreateBulk.OnConflict documentation for more info.
ent/file_create.go:1214
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the EntityCreate.OnConflict documentation for more info.
ent/entity_create.go:645
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the EntityCreateBulk.OnConflict documentation for more info.
ent/entity_create.go:1050
↓ 27 callersMethodapply
(*dependency)
application/dependency/options.go:21
↓ 26 callersMethodLogger
()
application/dependency/dependency.go:290
↓ 26 callersMethodUse
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 callersFunctionDataPath
DataPath relative path for store persist data file
pkg/util/path.go:72
↓ 25 callersMethodDecodeResponse
DecodeResponse 尝试解析为serializer.Response,并对状态码进行检查
pkg/request/request.go:262
↓ 25 callersMethodSetStatus
SetStatus Set user to given status
inventory/user.go:59
↓ 25 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the NodeCreate.OnConflict documentation for more info.
ent/node_create.go:586
↓ 25 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the NodeCreateBulk.OnConflict documentation for more info.
ent/node_create.go:977
↓ 25 callersFunctionWithTx
WithTx wraps the given inventory client with a transaction.
inventory/tx.go:44
↓ 25 callersFunctionpurposeStatusCodeFromError
(err error)
pkg/webdav/webdav.go:729
↓ 24 callersMethodConfigProvider
ConfigProvider Get a singleton conf.ConfigProvider instance.
application/dependency/dependency.go:57
↓ 24 callersMethodCount
()
pkg/request/utils.go:38
↓ 24 callersMethodFileSystem
()
pkg/filemanager/fs/uri.go:214
↓ 24 callersMethodGet
Get gets file object by given path
pkg/filemanager/manager/manager.go:37
↓ 24 callersMethodGetType
GetType returns the value of the "type" field in the mutation.
ent/mutation.go:3194
↓ 24 callersMethodPrintln
Println 打印
pkg/util/logger.go:49
↓ 24 callersMethodRemove
(gid string)
pkg/downloader/aria2/rpc/proto.go:8
↓ 24 callersMethodSystem
()
pkg/conf/conf.go:20
↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ShareCreate.OnConflict documentation for more info.
ent/share_create.go:598
↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ShareCreateBulk.OnConflict documentation for more info.
ent/share_create.go:982
↓ 24 callersMethodWrite
(p []byte)
pkg/filemanager/manager/entitysource/entitysource.go:1093
↓ 23 callersMethodCopy
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 callersMethodEntity
Entity returns the entity of the source.
pkg/filemanager/manager/entitysource/entitysource.go:61
↓ 23 callersMethodField
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 callersMethodPath
()
pkg/filemanager/fs/uri.go:143
↓ 23 callersMethodState
State returns the internal Task state
pkg/queue/task.go:34
↓ 23 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GroupCreate.OnConflict documentation for more info.
ent/group_create.go:564
↓ 23 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GroupCreateBulk.OnConflict documentation for more info.
ent/group_create.go:941
↓ 22 callersMethodConfigProvider
()
application/dependency/dependency.go:272
↓ 22 callersMethodGetByID
GetByID returns a file by its ID.
inventory/file.go:168
↓ 22 callersMethodResumeAfter
ResumeAfter sets the time when the Task should be resumed
pkg/queue/task.go:54
↓ 22 callersMethodRollback
(context.Context, *Tx)
ent/tx.go:117
↓ 22 callersMethodSettingProvider
()
application/dependency/dependency.go:465
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the OAuthClientCreate.OnConflict documentation for more info.
ent/oauthclient_create.go:583
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the OAuthClientCreateBulk.OnConflict documentation for more info.
ent/oauthclient_create.go:953
↓ 22 callersMethodUpdate
Update updates a file
inventory/file.go:230
↓ 22 callersMethodmustgetc
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 callersFunctionCorrelationID
CorrelationID retrieves a correlation ID from context.
pkg/logging/logger.go:93
↓ 21 callersMethodMimeDetector
MimeDetector Get a singleton fs.MimeDetector instance for MIME type detection.
application/dependency/dependency.go:124
↓ 21 callersMethodSetSettings
SetSettings sets the "settings" field.
ent/mutation.go:7614
↓ 21 callersMethodSettings
Settings returns the settings of the node.
pkg/cluster/node.go:47
↓ 21 callersMethodgetNavigator
(ctx context.Context, path *fs.URI, requiredCapabilities ...NavigatorCapability)
pkg/filemanager/fs/dbfs/dbfs.go:718
↓ 21 callersMethodsyntaxError
Creates a SyntaxError with the current line number.
pkg/webdav/internal/xml/xml.go:455
↓ 20 callersMethodClone
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 callersMethodOwner
()
pkg/filemanager/fs/fs.go:156
↓ 20 callersMethodRequestClient
RequestClient Creates a new request.Client instance for HTTP requests.
application/dependency/dependency.go:104
↓ 20 callersFunctioninit
()
ent/migrate/schema.go:551
↓ 19 callersMethodFileClient
FileClient Creates a new inventory.FileClient instance for access DB file store.
application/dependency/dependency.go:86
↓ 19 callersFunctionHashID
HashID 将给定对象的HashID转换为真实ID
middleware/common.go:25
↓ 19 callersMethodProps
()
pkg/filemanager/fs/fs.go:187
↓ 19 callersMethodQueueTask
SubmitTask submits a Task to the queue.
pkg/queue/queue.go:25
↓ 18 callersMethodApply
Apply applies the options to the source.
pkg/filemanager/manager/entitysource/entitysource.go:67
↓ 18 callersFunctionExists
Exists reports whether the named file or directory exists.
pkg/util/io.go:10
↓ 18 callersMethodOnly
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 callersMethodSetType
SetType sets the "type" field.
ent/mutation.go:3188
↓ 18 callersMethodSetValue
SetValue sets the "value" field.
ent/mutation.go:11116
↓ 18 callersMethodStoragePolicyClient
ShareClient Creates a new inventory.ShareClient instance for access DB share store.
application/dependency/dependency.go:102
↓ 18 callersMethodTypeByName
TypeByName returns the mime type by file name.
pkg/filemanager/fs/mime/mime.go:14
↓ 18 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the DavAccountCreate.OnConflict documentation for more info.
ent/davaccount_create.go:472
↓ 18 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the DavAccountCreateBulk.OnConflict documentation for more info.
ent/davaccount_create.go:814
↓ 18 callersMethodUserIDs
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 callersFunctionformatTime
(t time.Time)
application/migrator/migrator.go:311
↓ 18 callersMethodinit
()
ent/client.go:84
↓ 18 callersFunctionwithInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
ent/ent.go:588
↓ 17 callersMethodClient
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 callersMethodDatabase
()
pkg/conf/conf.go:19
↓ 17 callersFunctionFromContext
(c context.Context)
pkg/hashid/hash.go:150
↓ 17 callersMethodOrder
Order specifies how the records should be ordered.
ent/intercept/intercept.go:43
↓ 17 callersMethodSource
获取外链/下载地址, url - 站点本身地址, isDownload - 是否直接下载
pkg/filemanager/driver/handler.go:66
↓ 17 callersMethodSource
()
pkg/filemanager/fs/fs.go:181
↓ 17 callersMethodTempPath
TempPath returns the path of temporary directory.
pkg/setting/provider.go:118
↓ 17 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TaskCreate.OnConflict documentation for more info.
ent/task_create.go:515
↓ 17 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TaskCreateBulk.OnConflict documentation for more info.
ent/task_create.go:853
↓ 17 callersMethodUpsert
Upsert updates or inserts a node into the pool.
pkg/cluster/pool.go:20
↓ 17 callersFunctionValidateExternalURL
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 callersMethodWhere
Where appends a list predicates to the FileMutation builder.
ent/mutation.go:4002
↓ 17 callersMethodWhere
Where adds a new predicate for the UserQuery builder.
ent/user_query.go:49
↓ 17 callersFunctionWithRequiredCapabilities
WithRequiredCapabilities sets the required capabilities for operations.
pkg/filemanager/fs/dbfs/options.go:127
↓ 17 callersFunctionWithValue
WithValue inject key-value pair into request context.
pkg/util/common.go:251
↓ 17 callersMethodgetFileByPath
(ctx context.Context, navigator Navigator, path *fs.URI)
pkg/filemanager/fs/dbfs/dbfs.go:684
↓ 17 callersMethodinit
()
ent/tx.go:179
↓ 17 callersFunctionnewFile
(parent *File, model *ent.File)
pkg/filemanager/fs/dbfs/file.go:329
↓ 16 callersMethodAggregate
Aggregate aggregates the error and returns nil if there is no error; otherwise returns the error itself
pkg/serializer/error.go:436
↓ 16 callersFunctionCreatNestedFile
CreatNestedFile 给定path创建文件,如果目录不存在就递归创建
pkg/util/io.go:20
↓ 16 callersMethodDisplayName
()
pkg/filemanager/fs/fs.go:147
↓ 16 callersMethodGetPolicyByID
GetPolicyByID returns the storage policy by id.
inventory/policy.go:34
↓ 16 callersMethodHooks
()
ent/schema/file.go:86
↓ 16 callersFunctionNewErrorFromResponse
NewErrorFromResponse 从 serializer.Response 构建错误
pkg/serializer/error.go:32
↓ 16 callersFunctionSets
Sets set BooleanSet values in batch.
pkg/boolset/boolset.go:69
← previousnext →101–200 of 11,486, ranked by callers