transformations

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChickenTransformation

func NewChickenTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func NewGitHubCommitsTransformation

func NewGitHubCommitsTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func NewGitHubRepoTransformation

func NewGitHubRepoTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func NewNullTransformation

func NewNullTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func NewSlackTextTransformation

func NewSlackTextTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func NewTransformation

func NewTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

func RegisterTransformation

func RegisterTransformation(ctx context.Context, scheme string, init_func TransformationInitializationFunc) error

func Transformations

func Transformations() []string

Types

type ChickenTransformation

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

func (*ChickenTransformation) Transform

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

type GitHubCommitsTransformation

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

func (*GitHubCommitsTransformation) Transform

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

type GitHubRepoTransformation

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

func (*GitHubRepoTransformation) Transform

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

type NullTransformation

type NullTransformation struct {
	webhookd.WebhookTransformation
}

func (*NullTransformation) Transform

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

type SlackTextTransformation

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

func (*SlackTextTransformation) Transform

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

type TransformationInitializationFunc

type TransformationInitializationFunc func(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)

Jump to

Keyboard shortcuts

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