targets

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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