Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventBusError ¶
NewEventBusError returns an EventBusError.
Types ¶
type Auth ¶
type Auth struct { Strategy eventbusv1alpha1.AuthStrategy Credential *AuthCredential }
Auth contains the auth infor for event bus
type AuthCredential ¶
AuthCredential host the credential info
type Connection ¶
type Dependency ¶
Dependency is a struct for dependency info of a sensor
type EventBusError ¶
type EventBusError struct {
// contains filtered or unexported fields
}
EventBusError is a particular EventBus related error.
func (*EventBusError) Error ¶
func (e *EventBusError) Error() string
type EventSourceConnection ¶
type EventSourceConnection interface { Connection Publish(ctx context.Context, msg Message) error }
type EventSourceDriver ¶
type EventSourceDriver interface { Initialize() error Connect(clientID string) (EventSourceConnection, error) }
type SensorDriver ¶
type SensorDriver interface { Initialize() error Connect(ctx context.Context, triggerName string, dependencyExpression string, deps []Dependency, atLeastOnce bool) (TriggerConnection, error) }
type TriggerConnection ¶
type TriggerConnection interface { Connection fmt.Stringer // need to implement String() Subscribe(ctx context.Context, closeCh <-chan struct{}, resetConditionsCh <-chan struct{}, lastResetTime time.Time, transform func(depName string, event cloudevents.Event) (*cloudevents.Event, error), filter func(string, cloudevents.Event) bool, action func(map[string]cloudevents.Event), defaultSubject *string) error }
Click to show internal directories.
Click to hide internal directories.