builds

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCancel

func HandleCancel(
	users core.UserStore,
	repos core.RepositoryStore,
	builds core.BuildStore,
	stages core.StageStore,
	steps core.StepStore,
	status core.StatusService,
	scheduler core.Scheduler,
	webhooks core.WebhookSender,
) http.HandlerFunc

HandleCancel returns an http.HandlerFunc that processes http requests to cancel a pending or running build.

func HandleCreate added in v1.2.0

func HandleCreate(
	users core.UserStore,
	repos core.RepositoryStore,
	commits core.CommitService,
	triggerer core.Triggerer,
) http.HandlerFunc

HandleCreate returns an http.HandlerFunc that processes http requests to create a build for the specified commit.

func HandleFind

func HandleFind(
	repos core.RepositoryStore,
	builds core.BuildStore,
	stages core.StageStore,
) http.HandlerFunc

HandleFind returns an http.HandlerFunc that writes json-encoded build details to the the response body.

func HandleLast

func HandleLast(
	repos core.RepositoryStore,
	builds core.BuildStore,
	stages core.StageStore,
) http.HandlerFunc

HandleLast returns an http.HandlerFunc that writes json-encoded build details to the the response body for the latest build.

func HandleList

func HandleList(
	repos core.RepositoryStore,
	builds core.BuildStore,
) http.HandlerFunc

HandleList returns an http.HandlerFunc that writes a json-encoded list of build history to the response body.

func HandlePromote

func HandlePromote(
	repos core.RepositoryStore,
	builds core.BuildStore,
	triggerer core.Triggerer,
) http.HandlerFunc

HandlePromote returns an http.HandlerFunc that processes http requests to promote and re-execute a build.

func HandlePurge

func HandlePurge(repos core.RepositoryStore, builds core.BuildStore) http.HandlerFunc

HandlePurge returns an http.HandlerFunc that purges the build history. If successful a 204 status code is returned.

func HandleRetry

func HandleRetry(
	repos core.RepositoryStore,
	builds core.BuildStore,
	triggerer core.Triggerer,
) http.HandlerFunc

HandleRetry returns an http.HandlerFunc that processes http requests to retry and re-execute a build.

func HandleRollback added in v1.4.0

func HandleRollback(
	repos core.RepositoryStore,
	builds core.BuildStore,
	triggerer core.Triggerer,
) http.HandlerFunc

HandleRollback returns an http.HandlerFunc that processes http requests to rollback and re-execute a build.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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