Documentation ¶
Index ¶
- func DownloadTestReports(taskInfo *task.Task, logger *zap.SugaredLogger) ([]*types.TestSuite, error)
- func InitTaskController(ctx context.Context) error
- func Logger(pipelineTask *task.Task) *zap.SugaredLogger
- type CancelHandler
- type CancelMessage
- type ExecHandler
- type HookPayload
- type Pool
- type StatsMessage
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTestReports ¶
func InitTaskController ¶
Types ¶
type CancelHandler ¶
type CancelHandler struct{}
CancelHandler ...
func (*CancelHandler) HandleMessage ¶
func (h *CancelHandler) HandleMessage(message *nsq.Message) error
HandleMessage ...
type CancelMessage ¶
type CancelMessage struct { Revoker string `json:"revoker"` PipelineName string `json:"pipeline_name"` TaskID int64 `json:"task_id"` ReqID string `json:"req_id"` }
CancelMessage ...
type ExecHandler ¶
ExecHandler ... Sender: sender to send ack/notification TaskPlugins: registered task plugin initiators to initiate specific plugin to execute task
func (*ExecHandler) HandleMessage ¶
func (h *ExecHandler) HandleMessage(message *nsq.Message) error
HandleMessage ... Message handler to handle task execution message
func (*ExecHandler) SendNotification ¶
func (h *ExecHandler) SendNotification()
SendNotification ...
type HookPayload ¶
type HookPayload struct { Owner string `json:"owner,omitempty"` Repo string `json:"repo,omitempty"` Ref string `json:"ref,omitempty"` IsPr bool `json:"is_pr,omitempty"` }
HookPayload reference. Ref can be a SHA, a branch name, or a tag name.
type Pool ¶
type Pool struct { Tasks []*Task // contains filtered or unexported fields }
Pool is a worker group that runs a number of tasks at a configured concurrency.
type StatsMessage ¶
type StatsMessage struct { Agent string `json:"agent"` MessagesReceived uint64 `json:"messages_received"` MessagesFinished uint64 `json:"messages_finished"` MessagesRequeued uint64 `json:"messages_requeued"` Connections int `json:"connections"` StartTime int64 `json:"start_time"` UpdateTime int64 `json:"update_time"` }
StatsMessage ...
type Task ¶
type Task struct { //Status holds task status Status config.Status // Err holds an error that occurred during a task. Its // result is only meaningful after Run has been called // for the pool that holds it. Err error // contains filtered or unexported fields }
Task encapsulates a taskOperator item that should go in a worker pool
Click to show internal directories.
Click to hide internal directories.