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.
Click to show internal directories.
Click to hide internal directories.