Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTestReports ¶
Types ¶
type CancelHandler ¶
type CancelHandler struct{}
func (*CancelHandler) HandleMessage ¶
func (h *CancelHandler) HandleMessage(msg *CancelMessage) error
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 ControllerI ¶
type ControllerI interface {
// Init initializes the controller.
Init(ctx context.Context) error
// Stop stops process logics.
Stop(ctx context.Context) error
}
func NewController ¶
func NewController() ControllerI
type ExecHandler ¶
TaskPlugins: registered task plugin initiators to initiate specific plugin to execute task
func (*ExecHandler) PipelineTaskHandler ¶
func (h *ExecHandler) PipelineTaskHandler()
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.