Documentation
¶
Index ¶
- type HookHandlerContext
- func (hhc *HookHandlerContext) HandleBBEvent(w http.ResponseWriter, r *http.Request)
- func (hhc *HookHandlerContext) HandleGHEvent(w http.ResponseWriter, r *http.Request)
- func (hhc *HookHandlerContext) PullRequest(w http.ResponseWriter, r *http.Request, vcsType pb.SubCredType)
- func (hhc *HookHandlerContext) RepoPush(w http.ResponseWriter, r *http.Request, vcsType pb.SubCredType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookHandlerContext ¶
HookHandlerContext contains long lived resources. See bottom for getters/setters
func GetContext ¶
func GetContext(sig *signal.Signaler, teller *signal.PushWerkerTeller, prTeller *webhook.PullReqWerkerTeller) *HookHandlerContext
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.
Click to show internal directories.
Click to hide internal directories.