webhook

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2014 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIToken

func APIToken(t string)

APIToken sets the (global) apiToken for the webhook package

func DockerBuild

func DockerBuild(w http.ResponseWriter, req *http.Request) (int, string)

DockerBuild parses a simple JSON blob returns a JobSpec

func Github

func Github(w http.ResponseWriter, req *http.Request) (int, string)

Github parses a Github webhook HTTP request and returns a JobSpec.

func Logger

func Logger(l *logrus.Logger)

Logger sets the (global) logger for the webhook package

func TestMode

func TestMode(b bool)

TestMode sets the (global) testMode variable for the webhook package

func Travis

func Travis(w http.ResponseWriter, req *http.Request) (int, string)

Travis parses a webhook HTTP request from Travis CI and returns a JobSpec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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