Documentation ¶
Overview ¶
Package api provides the handlers for the Vela API.
Usage:
import "github.com/go-vela/worker/api"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func KillBuild ¶ added in v0.2.0
KillBuild represents the API handler to kill 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.
Types ¶
This section is empty.