transformations

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: BSD-3-Clause Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ChickenTransformation

type ChickenTransformation struct {
	webhookd.WebhookTransformation
	// contains filtered or unexported fields
}

func NewChickenTransformation

func NewChickenTransformation(lang string, clucking bool) (*ChickenTransformation, error)

func (*ChickenTransformation) Transform

func (tr *ChickenTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type GitHubCommitsTransformation

type GitHubCommitsTransformation struct {
	webhookd.WebhookTransformation
	ExcludeAdditions     bool
	ExcludeModifications bool
	ExcludeDeletions     bool
}

func NewGitHubCommitsTransformation

func NewGitHubCommitsTransformation(exclude_additions bool, exclude_modifications bool, exclude_deletions bool) (*GitHubCommitsTransformation, error)

func (*GitHubCommitsTransformation) Transform

func (p *GitHubCommitsTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type GitHubRepoTransformation

type GitHubRepoTransformation struct {
	webhookd.WebhookTransformation
	ExcludeAdditions     bool
	ExcludeModifications bool
	ExcludeDeletions     bool
}

func NewGitHubRepoTransformation

func NewGitHubRepoTransformation(exclude_additions bool, exclude_modifications bool, exclude_deletions bool) (*GitHubRepoTransformation, error)

func (*GitHubRepoTransformation) Transform

func (p *GitHubRepoTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type NullTransformation

type NullTransformation struct {
	webhookd.WebhookTransformation
}

func NewNullTransformation

func NewNullTransformation() (*NullTransformation, error)

func (*NullTransformation) Transform

func (p *NullTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type SlackTextTransformation

type SlackTextTransformation struct {
	webhookd.WebhookTransformation
	// contains filtered or unexported fields
}

func NewSlackTextTransformation

func NewSlackTextTransformation() (*SlackTextTransformation, error)

func (*SlackTextTransformation) Transform

func (p *SlackTextTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

Jump to

Keyboard shortcuts

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