Documentation ¶
Index ¶
- type Cache
- type Connection
- type ConnectionOptions
- type Decoder
- type DecoderSink
- type DecoderSinkList
- type EventClient
- type EventHub
- func (h *EventHub) Broadcast(e event.GenericEvent)
- func (h *EventHub) Delete(uid types.UID) error
- func (h *EventHub) Register(c *EventClient)
- func (h *EventHub) Start(ctx context.Context) error
- func (h *EventHub) Unregister(c *EventClient)
- func (h *EventHub) Update(msg *mqttv1.ResourceMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Get ¶
func (c *Cache) Get(gvk schema.GroupVersionKind, k client.ObjectKey) (*mqttv1.ResourceMessage, error)
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection( log logr.Logger, opts ConnectionOptions, ) *Connection
type ConnectionOptions ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decodes MQTT messages into unstructured.Unstructured.
func NewDecoder ¶
func NewDecoder(sink DecoderSink) *Decoder
type DecoderSink ¶
type DecoderSinkList ¶
type DecoderSinkList []DecoderSink
func (DecoderSinkList) Update ¶
func (l DecoderSinkList) Update(msg *mqttv1.ResourceMessage) error
type EventClient ¶
type EventClient struct { // Buffered channel of outbound messages. Channel chan event.GenericEvent }
func NewEventClient ¶
func NewEventClient() *EventClient
type EventHub ¶
type EventHub struct {
// contains filtered or unexported fields
}
func NewEventHub ¶
func NewEventHub() *EventHub
func (*EventHub) Broadcast ¶
func (h *EventHub) Broadcast(e event.GenericEvent)
func (*EventHub) Register ¶
func (h *EventHub) Register(c *EventClient)
func (*EventHub) Unregister ¶
func (h *EventHub) Unregister(c *EventClient)
Click to show internal directories.
Click to hide internal directories.