Documentation
¶
Index ¶
- type Pipeline
- type Stage
- type Task
- func (t *Task) Complete()
- func (t *Task) Duration() time.Duration
- func (t *Task) Fail(err error)
- func (t *Task) IsCompleted() bool
- func (t *Task) IsFailed() bool
- func (t *Task) IsPending() bool
- func (t *Task) IsRunning() bool
- func (t *Task) Skip()
- func (t *Task) Start()
- func (t *Task) ToTodoListTask() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline 流水线编排器
func (*Pipeline) GetBuiltImages ¶
GetBuiltImages 获取已构建的镜像列表
func (*Pipeline) SetProgram ¶
SetProgram 设置 tea.Program 用于发送消息
type Stage ¶
Stage 流水线阶段
func (*Stage) GetCompletedCount ¶
GetCompletedCount 获取已完成的任务数量
type Task ¶
type Task struct {
ID string
Name string
Type string
Config config.TaskConfig
Status types.TaskStatus
StartTime time.Time
EndTime time.Time
Error error
StageIndex int
TaskIndex int
}
Task 流水线任务
func (*Task) ToTodoListTask ¶
func (t *Task) ToTodoListTask() interface{}
ToTodoListTask 转换为 TodoList 任务
Click to show internal directories.
Click to hide internal directories.