Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAck ¶ added in v0.19.0
EventAck is used by the updater to acknowledge that the update has finished.
func NewEventAck ¶ added in v0.19.0
NewEventAcknowledgement returns an empty event.
type EventFinalize ¶ added in v0.19.0
EventFinalize is an event that requests the renderer to invalidate managed resources.
func NewEventFinalize ¶ added in v0.19.0
func NewEventFinalize(gen int) *EventFinalize
NewEvent returns an empty event
func (*EventFinalize) GetType ¶ added in v0.19.0
func (e *EventFinalize) GetType() EventType
func (*EventFinalize) String ¶ added in v0.19.0
func (e *EventFinalize) String() string
type EventReconcile ¶ added in v0.19.0
type EventReconcile struct {
Type EventType
}
reconcile event
func NewEventReconcile ¶ added in v0.19.0
func NewEventReconcile() *EventReconcile
NewEvent returns an empty event
func (*EventReconcile) GetType ¶ added in v0.19.0
func (e *EventReconcile) GetType() EventType
func (*EventReconcile) String ¶ added in v0.19.0
func (e *EventReconcile) String() string
type EventRender ¶
render event
func (*EventRender) GetType ¶
func (e *EventRender) GetType() EventType
func (*EventRender) String ¶
func (e *EventRender) String() string
type EventType ¶
type EventType int
EventType specifies the type of an event sent by the threads of the operator.
const ( EventTypeUnknown EventType = iota + 1 // EventTypeRender is sent by the operator to the renderer to request rendering. EventTypeRender // EventTypeReconcile is sent by the controllers to the operator to trigger reconciliation. EventTypeReconcile // EventTypeUpdate is created by the renderer thread holding a set of Kubernetes resources // that must be crater, updated or deleted. The event is sent from the renderer to the // operator, which passes the event on the updater thread for processing. EventTypeUpdate // EventTypeFinalize is sent from the operator to the renderer to commence the finalization // cycle. EventTypeFinalize // EventTypeFinalize is used by the updater to acknowledge that it has finished processing // an update generation. EventTypeAck )
func NewEventType ¶
NewEventType parses an event type specification
type EventUpdate ¶
type EventUpdate struct { Type EventType UpsertQueue UpdateConf DeleteQueue UpdateConf ConfigQueue ConfigConf Generation int RequestAck bool }
func NewEventUpdate ¶
func NewEventUpdate(generation int) *EventUpdate
NewEvent returns an empty event
func (*EventUpdate) DeepCopy ¶ added in v0.18.0
func (e *EventUpdate) DeepCopy() *EventUpdate
DeepCopy copies all updated resources into a new update event. This is required to elide locking across the renderer thread and the updater thread.
func (*EventUpdate) GetRequestAck ¶ added in v0.19.0
func (e *EventUpdate) GetRequestAck() bool
GetRequestAck returns true of the event contains an acknowledgement request.
func (*EventUpdate) GetType ¶
func (e *EventUpdate) GetType() EventType
func (*EventUpdate) SetRequestAck ¶ added in v0.19.0
func (e *EventUpdate) SetRequestAck(b bool)
RequestAck asks the updater to send an acknowledgement.
func (*EventUpdate) String ¶
func (e *EventUpdate) String() string
type UpdateConf ¶
type UpdateConf struct { GatewayClasses *store.GatewayClassStore Gateways *store.GatewayStore UDPRoutes *store.UDPRouteStore UDPRoutesV1A2 *store.UDPRouteStore Services *store.ServiceStore ConfigMaps *store.ConfigMapStore Deployments *store.DeploymentStore }