Documentation ¶
Index ¶
- func HandleCancel(users core.UserStore, repos core.RepositoryStore, builds core.BuildStore, ...) http.HandlerFunc
- func HandleCreate(users core.UserStore, repos core.RepositoryStore, commits core.CommitService, ...) http.HandlerFunc
- func HandleFind(repos core.RepositoryStore, builds core.BuildStore, stages core.StageStore) http.HandlerFunc
- func HandleLast(repos core.RepositoryStore, builds core.BuildStore, stages core.StageStore) http.HandlerFunc
- func HandleList(repos core.RepositoryStore, builds core.BuildStore) http.HandlerFunc
- func HandlePromote(repos core.RepositoryStore, builds core.BuildStore, triggerer core.Triggerer) http.HandlerFunc
- func HandlePurge(repos core.RepositoryStore, builds core.BuildStore) http.HandlerFunc
- func HandleRetry(repos core.RepositoryStore, builds core.BuildStore, triggerer core.Triggerer) http.HandlerFunc
- func HandleRollback(repos core.RepositoryStore, builds core.BuildStore, triggerer core.Triggerer) http.HandlerFunc
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 ¶
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 ¶
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.