Documentation ¶
Overview ¶
Package api provides the handlers for the Vela API.
Usage:
import "github.com/go-vela/worker/api"
Index ¶
- func CancelBuild(c *gin.Context)
- func GetBuild(c *gin.Context)
- func GetExecutor(c *gin.Context)
- func GetExecutors(c *gin.Context)
- func GetPipeline(c *gin.Context)
- func GetRepo(c *gin.Context)
- func Health(c *gin.Context)
- func Metrics() http.Handler
- func Shutdown(c *gin.Context)
- func Version(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelBuild ¶ added in v0.5.1
CancelBuild represents the API handler to cancel a build currently running on an executor.
This function performs a hard cancellation of a build on worker. Any build running during this time will immediately be stopped.
func GetBuild ¶ added in v0.2.0
GetBuild represents the API handler to capture the build currently running on an executor.
func GetExecutor ¶ added in v0.2.0
GetExecutor represents the API handler to capture the executor currently running on a worker.
func GetExecutors ¶ added in v0.2.0
GetExecutors represents the API handler to capture the executors currently running on a worker.
func GetPipeline ¶ added in v0.2.0
GetPipeline represents the API handler to capture the pipeline currently running on an executor.
func GetRepo ¶ added in v0.2.0
GetRepo represents the API handler to capture the repo currently running on an executor.
Types ¶
This section is empty.