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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransformationFromConfig

func NewTransformationFromConfig(cfg *config.WebhookTransformationConfig) (webhookd.WebhookTransformation, error)

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