Documentation ¶
Index ¶
- Variables
- func CancelPipeline(pipelineId uint64) error
- func CancelTask(taskId uint64) error
- func CreateBlueprint(blueprint *models.Blueprint) error
- func CreatePipeline(newPipeline *models.NewPipeline) (*models.Pipeline, error)
- func CreateTask(newTask *models.NewTask) (*models.Task, error)
- func DeleteBlueprint(id uint64) error
- func GetBlueprint(blueprintId uint64) (*models.Blueprint, error)
- func GetBlueprints(query *BlueprintQuery) ([]*models.Blueprint, int64, error)
- func GetPipeline(pipelineId uint64) (*models.Pipeline, error)
- func GetPipelines(query *PipelineQuery) ([]*models.Pipeline, int64, error)
- func GetPluginsApiResources() (map[string]map[string]map[string]core.ApiResourceHandler, error)
- func GetRepos() ([]*code.Repo, int64, error)
- func GetTask(taskId uint64) (*models.Task, error)
- func GetTasks(query *TaskQuery) ([]models.Task, int64, error)
- func InsertRow(table string, rows []map[string]interface{}) (int64, error)
- func NotifyExternal(pipelineId uint64) error
- func ReloadBlueprints(c *cron.Cron) error
- func RunPipeline(pipelineId uint64) error
- func UpdateBlueprint(blueprint *models.Blueprint) error
- type BlueprintQuery
- type NotificationService
- type PipelineNotification
- type PipelineQuery
- type RunningTask
- func (rt *RunningTask) Add(taskId uint64, cancel context.CancelFunc) error
- func (rt *RunningTask) FillProgressDetailToTasks(tasks []models.Task)
- func (rt *RunningTask) GetProgressDetail(taskId uint64) *models.TaskProgressDetail
- func (rt *RunningTask) Remove(taskId uint64) (context.CancelFunc, error)
- type RunningTaskData
- type TaskQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var ACTIVITY_PATTERN = regexp.MustCompile(`task #(\d+)`)
Functions ¶
func CancelPipeline ¶ added in v0.6.0
func CancelTask ¶ added in v0.3.0
func CreateBlueprint ¶ added in v0.10.0
func CreatePipeline ¶ added in v0.6.0
func CreatePipeline(newPipeline *models.NewPipeline) (*models.Pipeline, error)
func DeleteBlueprint ¶ added in v0.10.0
func GetBlueprint ¶ added in v0.10.0
func GetBlueprints ¶ added in v0.10.0
func GetBlueprints(query *BlueprintQuery) ([]*models.Blueprint, int64, error)
func GetPipelines ¶ added in v0.6.0
func GetPipelines(query *PipelineQuery) ([]*models.Pipeline, int64, error)
func GetPluginsApiResources ¶ added in v0.3.0
* return value
{ "jira": { "connections": { "POST": *ApiResourceHandler } } }
func NotifyExternal ¶ added in v0.6.0
func ReloadBlueprints ¶ added in v0.10.0
func ReloadBlueprints(c *cron.Cron) error
func RunPipeline ¶ added in v0.6.0
func UpdateBlueprint ¶ added in v0.10.0
Types ¶
type BlueprintQuery ¶ added in v0.10.0
type NotificationService ¶ added in v0.3.0
func NewNotificationService ¶ added in v0.3.0
func NewNotificationService(endpoint, secret string) *NotificationService
func (*NotificationService) PipelineStatusChanged ¶ added in v0.6.0
func (n *NotificationService) PipelineStatusChanged(params PipelineNotification) error
type PipelineNotification ¶ added in v0.6.0
type PipelineQuery ¶ added in v0.6.0
type RunningTask ¶ added in v0.6.0
type RunningTask struct {
// contains filtered or unexported fields
}
func (*RunningTask) Add ¶ added in v0.6.0
func (rt *RunningTask) Add(taskId uint64, cancel context.CancelFunc) error
func (*RunningTask) FillProgressDetailToTasks ¶ added in v0.10.0
func (rt *RunningTask) FillProgressDetailToTasks(tasks []models.Task)
less lock times than GetProgressDetail
func (*RunningTask) GetProgressDetail ¶ added in v0.10.0
func (rt *RunningTask) GetProgressDetail(taskId uint64) *models.TaskProgressDetail
func (*RunningTask) Remove ¶ added in v0.6.0
func (rt *RunningTask) Remove(taskId uint64) (context.CancelFunc, error)
type RunningTaskData ¶ added in v0.10.0
type RunningTaskData struct { Cancel context.CancelFunc ProgressDetail *models.TaskProgressDetail }
Click to show internal directories.
Click to hide internal directories.