githook

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package githook adds support for git-based sources in pipeline specs. It does so by exposing an HTTP server that listens for webhook requests. This works with github's webhook API, and anything else API-compatible with their push events.

Index

Constants

View Source
const GitHookPort = 999

GitHookPort specifies the port the server will listen on

Variables

This section is empty.

Functions

func ExternalPort added in v1.6.7

func ExternalPort() int32

ExternalPort provides the port used to access the service via a load balancer

func NodePort added in v1.6.7

func NodePort() int32

NodePort provides the port used to access the service via a node

func RunGitHookServer

func RunGitHookServer(address string, etcdAddress string, etcdPrefix string) error

RunGitHookServer starts the webhook server

func URLFromDomain added in v1.6.7

func URLFromDomain(domain string) string

URLFromDomain provides the webhook URL given an input domain

Types

This section is empty.

Jump to

Keyboard shortcuts

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