Documentation ¶
Index ¶
- func HandleFind(builds core.BuildStore) http.HandlerFunc
- func HandleFindJob(jobs core.JobStore, scheduler core.Scheduler) http.HandlerFunc
- func HandleList(builds core.BuildStore) http.HandlerFunc
- func HandleRestart(builds core.BuildStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
- func HandleRestartJob(jobs core.JobStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
- func HandleStop(builds core.BuildStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
- func HandleStopJob(jobs core.JobStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
- func HandleTrigger(builds core.BuildStore, scheduler core.Scheduler, ws *ws.Server) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFind ¶
func HandleFind(builds core.BuildStore) http.HandlerFunc
HandleFind returns an http.HandlerFunc that writes JSON encoded result of build to the http response.
func HandleFindJob ¶
HandleFindJob returns http.handlerFunc that writes JSON encoded job result to the http response body.
func HandleList ¶
func HandleList(builds core.BuildStore) http.HandlerFunc
HandleList returns an http.HandlerFunc that writes JSON encoded list of builds to the http response body.
func HandleRestart ¶
func HandleRestart(builds core.BuildStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
HandleRestart returns an http.HandlerFunc that writes JSON encoded result about restarting build to http response body.
func HandleRestartJob ¶
func HandleRestartJob(jobs core.JobStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
HandleRestartJob returns an http.HandlerFunc that writes JSON encoded result about restarting job to http response body.
func HandleStop ¶
func HandleStop(builds core.BuildStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
HandleStop returns an http.HandlerFunc that writes JSON encoded result about stopping build to http response body.
func HandleStopJob ¶
func HandleStopJob(jobs core.JobStore, repos core.RepositoryStore, scheduler core.Scheduler) http.HandlerFunc
HandleStopJob returns an http.HandlerFunc that writes JSON encoded result about stopping job to the http response body.
func HandleTrigger ¶
func HandleTrigger(builds core.BuildStore, scheduler core.Scheduler, ws *ws.Server) http.HandlerFunc
HandleTrigger returns an http.HandlerFunc that writes JSON encoded result about triggering build to http response body.
Types ¶
This section is empty.