MCPcopy
hub / github.com/cloudreve/cloudreve / New

Method New

inventory/task.go:35–35  ·  view source on GitHub ↗

New creates a new task with the given args.

(ctx context.Context, task *TaskArgs)

Source from the content-addressed store, hash-verified

33 TxOperator
34 // New creates a new task with the given args.
35 New(ctx context.Context, task *TaskArgs) (*ent.Task, error)
36 // Update updates the task with the given args.
37 Update(ctx context.Context, task *ent.Task, args *TaskArgs) (*ent.Task, error)
38 // GetPendingTasks returns all pending tasks of given type.

Callers 15

share_preview.goFile · 0.65
ContentCORSFunction · 0.65
sqlSaveMethod · 0.65
checkMethod · 0.65
checkMethod · 0.65
sqlSaveMethod · 0.65
checkMethod · 0.65
ExecMethod · 0.65
ExecMethod · 0.65
checkMethod · 0.65
checkMethod · 0.65
sqlSaveMethod · 0.65

Implementers 1

taskClientinventory/task.go

Calls

no outgoing calls

Tested by 15

TestNewMemoStoreFunction · 0.52
TestMemoStore_SetFunction · 0.52
TestMemoStore_GetFunction · 0.52
TestMemoStore_GetsFunction · 0.52
TestMemoStore_SetsFunction · 0.52
TestMemoStore_DeleteFunction · 0.52
TestSetFunction · 0.52
TestGetFunction · 0.52
TestDeletesFunction · 0.52
TestGetSettingsFunction · 0.52
TestSetSettingsFunction · 0.52