handler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBadge

func GetBadge(c web.C, w http.ResponseWriter, r *http.Request)

GetBadge accepts a request to retrieve the named package and version build details from the datastore and return an SVG badges representing the build results.

GET /api/badges/:name/:number/channel/:channel/status.svg
GET /api/badges/:name/:number/channel/:channel/sdk/:sdk/status.svg

func GetBuild

func GetBuild(c web.C, w http.ResponseWriter, r *http.Request)

GetBuild accepts a request to retrieve the build details for the package version, channel and SDK from the datastore in JSON format.

GET /api/packages/:name/:number/channel/:channel/sdk/:sdk

func GetBuildLatest added in v0.0.2

func GetBuildLatest(c web.C, w http.ResponseWriter, r *http.Request)

GetBuildLatest accepts a request to retrieve the build details for the package version, channel and latest SDK from the datastore in JSON format.

GET /api/packages/:name/:number/channel/:channel

func GetChannel

func GetChannel(c web.C, w http.ResponseWriter, r *http.Request)

GetChannel accepts a request to retrieve the latest SDK version and revision for the specified channel.

GET /api/channel/:name

func GetFeed added in v0.0.3

func GetFeed(c web.C, w http.ResponseWriter, r *http.Request)

GetFeed accepts a request to retrieve a feed of the latest builds in JSON format.

GET /api/feed

func GetOutput

func GetOutput(c web.C, w http.ResponseWriter, r *http.Request)

GetOutput accepts a request to retrieve the named package and version raw build results from the blobstore.

GET /api/packages/:name/:number/channel/:channel/sdk/:sdk/stdout.txt

func GetWorkAssigned added in v0.0.2

func GetWorkAssigned(c web.C, w http.ResponseWriter, r *http.Request)

GetWorkAssigned accepts a request to retrieve the list of started work and returns in JSON format.

GET /api/work/assignments

func GetWorkPending added in v0.0.2

func GetWorkPending(c web.C, w http.ResponseWriter, r *http.Request)

GetWorkPending accepts a request to retrieve the list of pending work and returns in JSON format.

GET /api/work/pending

func GetWorkStarted added in v0.0.2

func GetWorkStarted(c web.C, w http.ResponseWriter, r *http.Request)

GetWorkStarted accepts a request to retrieve the list of started work and returns in JSON format.

GET /api/work/started

func GetWorkers added in v0.0.2

func GetWorkers(c web.C, w http.ResponseWriter, r *http.Request)

GetWorkers accepts a request to retrieve the list of registered workers and return the results in JSON format.

GET /api/workers

func PostBuild

func PostBuild(c web.C, w http.ResponseWriter, r *http.Request)

PostBuild accepts a request to execute a build for the named package, version, channel and SDK.

POST /sudo/api/build

func SetHeaders added in v0.0.2

func SetHeaders(c *web.C, h http.Handler) http.Handler

SetHeaders is a middleware function that applies default headers and caching rules to each request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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