targets

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "targets.triggermesh.io"

GroupName is the name of the API group this package's resources belong to.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSource

type EventSource interface {
	// GetEventTypes returns the event types generated by the source.
	GetEventTypes() []string
	// AsEventSource returns a unique reference to the source suitable for
	// use as a CloudEvent source attribute.
	AsEventSource() string
}

EventSource is implemented by types that emit events.

type IntegrationTarget

type IntegrationTarget interface {
	// AcceptedEventTypes returns the event types accepted by the target.
	AcceptedEventTypes() []string
}

IntegrationTarget is implemented by types which are integration targets.

An integration target: * processes tasks derived from events, not direct events produced by sources. * expects data to be in certain format (writing differentiated code for every possible event type isn't possible). * turns data into synchronous API calls which result in an immediate success or failure.

Directories

Path Synopsis
Package v1alpha1 contains API Schema definitions for the targets/v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the targets/v1alpha1 API group.

Jump to

Keyboard shortcuts

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