listener

package
v0.0.0-...-76ccef3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GLHeaderEvent    = "GitLab-Event1"
	GLHeaderDelivery = "GitLab-Delivery"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

Adapter converts incoming GitLab webhook events to CloudEvents

func New

func New() (*Listener, error)

New creates an adapter to convert incoming GitLab webhook events to CloudEvents and then sends them to the specified Sink

func (*Listener) HandleEvent

func (l *Listener) HandleEvent(payload interface{})

HandleEvent is invoked whenever an event comes in from GitLab

Jump to

Keyboard shortcuts

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