adapter

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter

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

func NewEnv

func NewEnv() adapter.EnvConfigAccessor

Types

type Adapter

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

Adapter converts incoming GitHub webhook events to CloudEvents

func (*Adapter) Start

func (a *Adapter) Start(ctx context.Context) error

Start runs the adapter. Returns if stopCh is closed or Send() returns an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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