bitbucket

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

README

git-webhook-plugin-bitbucket

Plugin for git-webhook-lambda, which implements the git-webhook-plugin interface.

Current supported bitbucket webhooks

Name Description
repo:push repository push event

Features/Caveats

This plugin tries to validate incoming events and ignores invalid events. If bitbucket changes the format for an event, this will break the validation and the particular event will be ignored.

Documentation

Index

Constants

View Source
const (
	BASEURL = "git@bitbucket.org"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitbucket

type Bitbucket struct {
	// contains filtered or unexported fields
}

func Init

func Init() *Bitbucket

func (*Bitbucket) Attributes

func (b *Bitbucket) Attributes() map[string]string

func (*Bitbucket) Event

func (b *Bitbucket) Event() gitWebhookPlugin.Event

func (*Bitbucket) EventType

func (b *Bitbucket) EventType() string

func (*Bitbucket) GitBranches

func (b *Bitbucket) GitBranches() []string

func (*Bitbucket) GitUrl

func (b *Bitbucket) GitUrl() string

func (*Bitbucket) IsBitbucketWebhookRequest

func (b *Bitbucket) IsBitbucketWebhookRequest(headers map[string]string) bool

func (*Bitbucket) Valid

func (b *Bitbucket) Valid(request events.ALBTargetGroupRequest) bool

func (*Bitbucket) ValidBody

func (b *Bitbucket) ValidBody(eventType string, body []byte) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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