Documentation ¶
Index ¶
- Constants
- func CancelTask(taskId uint64) error
- func CreateTaskInDB(data NewTask) (*models.Task, error)
- func CreateTasksInDBFromJSON(data [][]NewTask) [][]models.Task
- func GetPluginsApiResources() (map[string]map[string]map[string]core.ApiResourceHandler, error)
- func GetTasks(status string) ([]models.Task, error)
- func RunAllTasks(data [][]NewTask, tasks [][]models.Task) (err error)
- func RunTask(task models.Task, data NewTask, taskComplete chan bool) (models.Task, error)
- type NewTask
- type NotificationService
- type TaskSuccessNotification
Constants ¶
View Source
const ( TASK_CREATED = "TASK_CREATED" TASK_COMPLETED = "TASK_COMPLETED" TASK_FAILED = "TASK_FAILED" )
Variables ¶
This section is empty.
Functions ¶
func CancelTask ¶ added in v0.3.0
func CreateTasksInDBFromJSON ¶ added in v0.3.0
func GetPluginsApiResources ¶ added in v0.3.0
* return value
{ "jira": { "sources": { "POST": *ApiResourceHandler } } }
func RunAllTasks ¶ added in v0.3.0
Types ¶
type NotificationService ¶ added in v0.3.0
func NewNotificationService ¶ added in v0.3.0
func NewNotificationService(endpoint, secret string) *NotificationService
func (*NotificationService) TaskSuccess ¶ added in v0.3.0
func (n *NotificationService) TaskSuccess(params TaskSuccessNotification) error
Click to show internal directories.
Click to hide internal directories.