job

package
v0.0.0-...-ede0ace Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWsEventListener

func AddWsEventListener(jobId string, conn *websocket.Conn)

func AskForCancelation

func AskForCancelation(jobId, jobExecutionId string)

AskForCancelation is called to cancel a jobExecution. if there is no corresponding running jobExecution, the demand is simply ignored.

func Broadcast

func Broadcast(jobId string, e model.Event)

func Start

func Start(job model.Job, branchName string, conf *configuration.Conf, ctx context.Context) model.JobExecution

Start launch a new job execution. It runs in a dedicated goroutine.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL