hookhandler

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookHandlerContext

type HookHandlerContext struct {
	*signal.Signaler
	// contains filtered or unexported fields
}

HookHandlerContext contains long lived resources. See bottom for getters/setters

func (*HookHandlerContext) HandleBBEvent

func (hhc *HookHandlerContext) HandleBBEvent(w http.ResponseWriter, r *http.Request)

func (*HookHandlerContext) HandleGHEvent added in v0.8.0

func (hhc *HookHandlerContext) HandleGHEvent(w http.ResponseWriter, r *http.Request)

func (*HookHandlerContext) PullRequest

func (hhc *HookHandlerContext) PullRequest(w http.ResponseWriter, r *http.Request, vcsType pb.SubCredType)

TODO: need to pass active PR branch to validator, but gonna get RepoPush handler working first On receive of pull request, marshal the json to an object then build the appropriate pipeline config and put on NSQ queue.

func (*HookHandlerContext) RepoPush

func (hhc *HookHandlerContext) RepoPush(w http.ResponseWriter, r *http.Request, vcsType pb.SubCredType)

On receive of repo push, marshal the json to an object then build the appropriate pipeline config and put on NSQ queue.

Jump to

Keyboard shortcuts

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