This website requires JavaScript.
0
Pull Requests
Explore
Active Time Tracker
#
0
Create…
New Repository
New Migration
anonymous
Signed in as
anonymous
Profile
Subscriptions
Settings
Help
Sign Out
common
/
machinery-plugins
Private
Watch
1
Fork
You've already forked machinery-plugins
Fork to a different account
0
Code
Pull Requests
Releases
Activity
machinery-plugins
/
task
/
store
/
or
Cancel
Edit File
Preview
Preview Changes
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License. */ // Package store implements task storage package store import ( "context" "git.ifooth.com/common/machinery-plugins/task/types" ) // ListOption options for list task type ListOption struct { // Sort map for sort list results Sort map[string]int // Offset offset for list results Offset int64 // Limit limit for list results Limit int64 // All for all results All bool // Count for index Count bool // SkipDecrypt skip data decrypt SkipDecrypt bool } // TaskManagerModel model for TaskManager type TaskManagerModel interface { // task information storage management CreateTask(ctx context.Context, task *types.Task) error UpdateTask(ctx context.Context, task *types.Task) error PatchTask(ctx context.Context, taskID string, patchs map[string]interface{}) error DeleteTask(ctx context.Context, taskID string) error GetTask(ctx context.Context, taskID string) (*types.Task, error) ListTask(ctx context.Context, cond any, opt *ListOption) ([]types.Task, error) } // ModelSet model for task type ModelSet struct { }
Loading…
Loading…
Commit Changes
Add a Signed-off-by trailer by the committer at the end of the commit log message.
Commit directly to the
main
branch.
Create a
new branch
for this commit and start a pull request.
Commit Changes
Cancel
Commit an empty file
The file you're about to commit is empty. Proceed?
Cancel
Commit Changes