github

package
v3.11.0-0.19.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package github contains webhook.Plugin implementation of github webhooks according to https://developer.github.com/webhooks/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebHookPlugin

type WebHookPlugin struct{}

WebHookPlugin used for processing github webhook requests.

func New

func New() *WebHookPlugin

New returns github webhook plugin.

func (*WebHookPlugin) Extract

func (p *WebHookPlugin) Extract(buildCfg *buildapi.BuildConfig, trigger *buildapi.WebHookTrigger, req *http.Request) (revision *buildapi.SourceRevision, envvars []kapi.EnvVar, dockerStrategyOptions *buildapi.DockerStrategyOptions, proceed bool, err error)

Extract services webhooks from github.com

func (*WebHookPlugin) GetTriggers

func (p *WebHookPlugin) GetTriggers(buildConfig *buildapi.BuildConfig) ([]*buildapi.WebHookTrigger, error)

GetTriggers retrieves the WebHookTriggers for this webhook type (if any)

Jump to

Keyboard shortcuts

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