Documentation
¶
Index ¶
- func EmptyEventType() *eventingv1beta3.EventType
- type AttributesFilterTransform
- type CloudEventOverridesTransform
- type Edge
- type EventTypeTransform
- type Graph
- func (g *Graph) AddBroker(broker eventingv1.Broker)
- func (g *Graph) AddChannel(channel messagingv1.Channel)
- func (g *Graph) AddEventType(et *eventingv1beta3.EventType) error
- func (g *Graph) AddSource(source duckv1.Source)
- func (g *Graph) AddSubscription(subscription messagingv1.Subscription) error
- func (g *Graph) AddTrigger(trigger eventingv1.Trigger) error
- func (g *Graph) GetPrimaryOutEdgeWithRef(edgeRef *duckv1.KReference) *Edge
- func (g *Graph) Lineage() []*Vertex
- func (g *Graph) Sources() Vertices
- func (g *Graph) UnvisitAll()
- func (g *Graph) Vertices() Vertices
- type NoTransform
- type Transform
- type TransformFunctionContext
- type Vertex
- func (v *Vertex) AddEdge(to *Vertex, edgeRef *duckv1.Destination, transform Transform, isDLS bool)
- func (v *Vertex) InDegree() int
- func (v *Vertex) InEdges() []*Edge
- func (v *Vertex) Lineage(et *eventingv1beta3.EventType, tfc TransformFunctionContext) *Vertex
- func (v *Vertex) NewWithSameRef() *Vertex
- func (v *Vertex) OutDegree() int
- func (v *Vertex) OutEdges() []*Edge
- func (v *Vertex) Reference() *duckv1.Destination
- func (v *Vertex) Unvisit()
- func (v *Vertex) Visit()
- func (v *Vertex) Visited() bool
- type Vertices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyEventType ¶
func EmptyEventType() *eventingv1beta3.EventType
Types ¶
type AttributesFilterTransform ¶ added in v0.42.0
type AttributesFilterTransform struct {
Filter *eventingv1.TriggerFilter
}
func (*AttributesFilterTransform) Apply ¶ added in v0.42.0
func (aft *AttributesFilterTransform) Apply(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext)
Apply will apply the transform to a given input eventtype. This will "narrow" the eventtype to represent only events which could pass the attribute filter. For example, if the "type" attribute was not yet set on the eventtype, but the filter requires "type"="example.event.type", then after this filter the eventtype would have the attribute definition for "type"="example.event.type". Additionally, if an eventtype can not be narrowed this returns nil. For example using the filter from the earlier example, if the "type" was already set to "other.event.type" then the eventtype would not be compatible.
func (*AttributesFilterTransform) Name ¶ added in v0.42.0
func (aft *AttributesFilterTransform) Name() string
type CloudEventOverridesTransform ¶ added in v0.42.0
type CloudEventOverridesTransform struct {
Overrides *duckv1.CloudEventOverrides
}
func (CloudEventOverridesTransform) Apply ¶ added in v0.42.0
func (cet CloudEventOverridesTransform) Apply(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext)
Apply applies the CloudEventOverrides for a given event source
func (CloudEventOverridesTransform) Name ¶ added in v0.42.0
func (cet CloudEventOverridesTransform) Name() string
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
func (*Edge) Reference ¶
func (e *Edge) Reference() *duckv1.Destination
func (*Edge) Transform ¶
func (e *Edge) Transform(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext)
type EventTypeTransform ¶
type EventTypeTransform struct {
EventType *eventingv1beta3.EventType
}
func (EventTypeTransform) Apply ¶
func (ett EventTypeTransform) Apply(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext)
func (EventTypeTransform) Name ¶
func (ett EventTypeTransform) Name() string
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) AddBroker ¶
func (g *Graph) AddBroker(broker eventingv1.Broker)
func (*Graph) AddChannel ¶
func (g *Graph) AddChannel(channel messagingv1.Channel)
func (*Graph) AddEventType ¶
func (g *Graph) AddEventType(et *eventingv1beta3.EventType) error
func (*Graph) AddSubscription ¶ added in v0.42.0
func (g *Graph) AddSubscription(subscription messagingv1.Subscription) error
func (*Graph) AddTrigger ¶
func (g *Graph) AddTrigger(trigger eventingv1.Trigger) error
func (*Graph) GetPrimaryOutEdgeWithRef ¶
func (g *Graph) GetPrimaryOutEdgeWithRef(edgeRef *duckv1.KReference) *Edge
func (*Graph) Sources ¶
Sources returns all of the sources vertices in a graph A source vertex is defined as a graph with an in degree of 0 and an out degree >= 1 This means that there are only outward edges from the vertex, and no inward edges
func (*Graph) UnvisitAll ¶
func (g *Graph) UnvisitAll()
type NoTransform ¶
type NoTransform struct{}
func (NoTransform) Apply ¶
func (nt NoTransform) Apply(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext)
func (NoTransform) Name ¶
func (nt NoTransform) Name() string
type Transform ¶
type Transform interface { Apply(et *eventingv1beta3.EventType, tfc TransformFunctionContext) (*eventingv1beta3.EventType, TransformFunctionContext) Name() string }
type TransformFunctionContext ¶
type TransformFunctionContext struct{}
TODO(cali0707): flesh this out more, know we need it, not sure what needs to be in it yet
func (TransformFunctionContext) DeepCopy ¶
func (t TransformFunctionContext) DeepCopy() TransformFunctionContext
type Vertex ¶
type Vertex struct {
// contains filtered or unexported fields
}
func (*Vertex) Lineage ¶
func (v *Vertex) Lineage(et *eventingv1beta3.EventType, tfc TransformFunctionContext) *Vertex
computes the lineage from the given vertex with the given input eventtype
func (*Vertex) NewWithSameRef ¶
func (*Vertex) Reference ¶
func (v *Vertex) Reference() *duckv1.Destination