Documentation ¶
Index ¶
- func HandleAccept(m manager.BuildManager) http.HandlerFunc
- func HandleInfo(m manager.BuildManager) http.HandlerFunc
- func HandleJoin() http.HandlerFunc
- func HandleLeave() http.HandlerFunc
- func HandleLogBatch(m manager.BuildManager) http.HandlerFunc
- func HandleLogUpload(m manager.BuildManager) http.HandlerFunc
- func HandlePing() http.HandlerFunc
- func HandleRequest(m manager.BuildManager) http.HandlerFunc
- func HandleUpdateStage(m manager.BuildManager) http.HandlerFunc
- func HandleUpdateStep(m manager.BuildManager) http.HandlerFunc
- func HandleWatch(m manager.BuildManager) http.HandlerFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAccept ¶
func HandleAccept(m manager.BuildManager) http.HandlerFunc
HandleAccept returns an http.HandlerFunc that processes an http.Request to accept ownership of the stage.
POST /rpc/v2/stage/{stage}?machine=
func HandleInfo ¶
func HandleInfo(m manager.BuildManager) http.HandlerFunc
HandleInfo returns an http.HandlerFunc that processes an http.Request to get the build details.
POST /rpc/v2/build/{build}
func HandleJoin ¶
func HandleJoin() http.HandlerFunc
HandleJoin returns an http.HandlerFunc that makes an http.Request to join the cluster.
POST /rpc/v2/nodes/:machine
func HandleLeave ¶
func HandleLeave() http.HandlerFunc
HandleLeave returns an http.HandlerFunc that makes an http.Request to leave the cluster.
DELETE /rpc/v2/nodes/:machine
func HandleLogBatch ¶
func HandleLogBatch(m manager.BuildManager) http.HandlerFunc
HandleLogBatch returns an http.HandlerFunc that accepts an http.Request to submit a stream of logs to the system.
POST /rpc/v2/step/{step}/logs/batch
func HandleLogUpload ¶
func HandleLogUpload(m manager.BuildManager) http.HandlerFunc
HandleLogUpload returns an http.HandlerFunc that accepts an http.Request to upload and persist logs for a pipeline stage.
POST /rpc/v2/step/{step}/logs/upload
func HandlePing ¶
func HandlePing() http.HandlerFunc
HandlePing returns an http.HandlerFunc that makes an http.Request to ping the server and confirm connectivity.
GET /rpc/v2/ping
func HandleRequest ¶
func HandleRequest(m manager.BuildManager) http.HandlerFunc
HandleRequest returns an http.HandlerFunc that processes an http.Request to reqeust a stage from the queue for execution.
POST /rpc/v2/stage
func HandleUpdateStage ¶
func HandleUpdateStage(m manager.BuildManager) http.HandlerFunc
HandleUpdateStage returns an http.HandlerFunc that processes an http.Request to update a stage.
PUT /rpc/v2/stage/{stage}
func HandleUpdateStep ¶
func HandleUpdateStep(m manager.BuildManager) http.HandlerFunc
HandleUpdateStep returns an http.HandlerFunc that processes an http.Request to update a step.
POST /rpc/v2/step/{step}
func HandleWatch ¶
func HandleWatch(m manager.BuildManager) http.HandlerFunc
HandleWatch returns an http.HandlerFunc that accepts a blocking http.Request that watches a build for cancellation events.
GET /rpc/v2/build/{build}/watch