Documentation
¶
Index ¶
- func EmptyEventType() *eventingv1beta3.EventType
- 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) 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 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) 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
Click to show internal directories.
Click to hide internal directories.