Documentation
¶
Index ¶
- func NewChickenTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewGitHubCommitsTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewGitHubRepoTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewNullTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewSlackTextTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func RegisterTransformation(ctx context.Context, scheme string, init_func TransformationInitializationFunc) error
- func Transformations() []string
- type ChickenTransformation
- type GitHubCommitsTransformation
- type GitHubRepoTransformation
- type NullTransformation
- type SlackTextTransformation
- type TransformationInitializationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNullTransformation ¶
func NewTransformation ¶
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)
Click to show internal directories.
Click to hide internal directories.