crons

package
v0.0.0-...-e99cc0b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreate

func HandleCreate(
	repos core.RepositoryStore,
	crons core.CronStore,
) http.HandlerFunc

HandleCreate returns an http.HandlerFunc that processes http requests to create a new cronjob.

func HandleDelete

func HandleDelete(
	repos core.RepositoryStore,
	crons core.CronStore,
) http.HandlerFunc

HandleDelete returns an http.HandlerFunc that processes http requests to delete the cron job.

func HandleExec

func HandleExec(
	users core.UserStore,
	repos core.RepositoryStore,
	crons core.CronStore,
	commits core.CommitService,
	trigger core.Triggerer,
) http.HandlerFunc

HandleExec returns an http.HandlerFunc that processes http requests to execute a cronjob on-demand.

func HandleFind

func HandleFind(
	repos core.RepositoryStore,
	crons core.CronStore,
) http.HandlerFunc

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

func HandleList

func HandleList(
	repos core.RepositoryStore,
	crons core.CronStore,
) http.HandlerFunc

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

func HandleUpdate

func HandleUpdate(
	repos core.RepositoryStore,
	crons core.CronStore,
) http.HandlerFunc

HandleUpdate returns an http.HandlerFunc that processes http requests to enable or disable a cron job.

Types

This section is empty.

Jump to

Keyboard shortcuts

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