hooks

package
v0.0.0-...-25cab48 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package hooks contains various Webhook implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitbucketHook

type BitbucketHook struct{}

A BitbucketHook contains push info in JSON within an x-www-form-urlencoded POST body

func (BitbucketHook) GetGitRepoUri

func (h BitbucketHook) GetGitRepoUri(req *http.Request) (string, error)

type GitHubFormHook

type GitHubFormHook struct{}

A GitHubFormHook contains push info in JSON within an x-www-form-urlencoded POST body

func (GitHubFormHook) GetGitRepoUri

func (h GitHubFormHook) GetGitRepoUri(req *http.Request) (string, error)

type GitHubJsonHook

type GitHubJsonHook struct{}

A GitHubFormHook contains push info in JSON

func (GitHubJsonHook) GetGitRepoUri

func (h GitHubJsonHook) GetGitRepoUri(req *http.Request) (string, error)

type JenkinsHook

type JenkinsHook struct{}

A JenkinsHook contains the repository URI in the "url" GET parameter

func (JenkinsHook) GetGitRepoUri

func (h JenkinsHook) GetGitRepoUri(req *http.Request) (string, error)

type Webhook

type Webhook interface {
	// GetGitRepoUri determines the Git repository URI a webhook refers to
	GetGitRepoUri(*http.Request) (string, error)
}

A Webhook knows how to parse a particular webhook format call in order to determine the Git repository URI it refers to.

Jump to

Keyboard shortcuts

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