Documentation
¶
Index ¶
- Constants
- type Task
- func (t *Task) Add(taskLogId string, path string, gitX utils.GitXParams, ...) error
- func (t *Task) Delete(taskLogId string) error
- func (t *Task) End(taskLogId string, isSuccess int, result string, commitId string) (err error)
- func (t *Task) GetDefaultTasks() []*TaskMessage
- func (t *Task) GetTask(taskLogId string) (*TaskMessage, error)
- func (t *Task) PathIsHaveTask(path string) bool
- func (t *Task) Start(taskLogId string) (err error)
- type TaskMessage
Constants ¶
View Source
const Task_Failed = 0 // 执行失败
View Source
const Task_Status_Default = 0 // 任务未开始
View Source
const Task_Status_End = 2 // 任务完成
View Source
const Task_Status_Starting = 1 // 任务开始
View Source
const Task_Success = 1 // 执行成功
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { TaskMessages []*TaskMessage // contains filtered or unexported fields }
func (*Task) Add ¶
func (t *Task) Add(taskLogId string, path string, gitX utils.GitXParams, preCommandX utils.CommandXParams, postCommandX utils.CommandXParams) error
add a task message
func (*Task) PathIsHaveTask ¶
path is have staring task
type TaskMessage ¶
type TaskMessage struct { TaskLogId string Path string Status int IsSuccess int GitX utils.GitXParams PreCommandX utils.CommandXParams PostCommandX utils.CommandXParams Result string CommitId string }
Click to show internal directories.
Click to hide internal directories.