rpc2

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

Types

type Server

type Server http.Handler

Server wraps the chi Router in a custom type for wire injection purposes.

func NewServer

func NewServer(manager manager.BuildManager, secret string) Server

NewServer returns a new rpc server that enables remote interaction with the build controller using the http transport.

Jump to

Keyboard shortcuts

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