slack

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package slack provides an slash Handler for adding the Conveyor push webhook on the GitHub repo.

Index

Constants

This section is empty.

Variables

View Source
var Help = replyHandler(helpText)

Functions

func NewHook

func NewHook(url, secret string) *github.Hook

NewHook returns a new github.Hook instance that represents the appropriate configuration for the Conveyor webhook.

Types

type Build

type Build struct {
	// BuildQueue to use.
	Queue conveyor.BuildQueue
	// contains filtered or unexported fields
}

Build is a slash.Handler that will trigger a conveyor build.

func NewBuild

func NewBuild(client *github.Client, q conveyor.BuildQueue, urlTmpl string) *Build

func (*Build) ServeCommand

func (b *Build) ServeCommand(ctx context.Context, r slash.Responder, c slash.Command) (slash.Response, error)

type Enable

type Enable struct {
	Hook *github.Hook
	// contains filtered or unexported fields
}

Enable implements the slash.Handler interface for enabling conveyor on a repo.

func NewEnable

func NewEnable(c *github.Client, hook *github.Hook) *Enable

NewEnable initializes a new Enable instance.

func (*Enable) ServeCommand

func (h *Enable) ServeCommand(ctx context.Context, r slash.Responder, command slash.Command) (resp slash.Response, err error)

Jump to

Keyboard shortcuts

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