utils

package
v1.11.0-cni-plu...-aa3fb74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFeed

type DataFeed struct {
	// contains filtered or unexported fields
}

func NewDataFeed

func NewDataFeed(c client.Interface) *DataFeed

func (*DataFeed) OnStatusUpdated

func (d *DataFeed) OnStatusUpdated(status bapi.SyncStatus)

func (*DataFeed) OnUpdates

func (c *DataFeed) OnUpdates(updates []bapi.Update)

func (*DataFeed) RegisterForNotification

func (d *DataFeed) RegisterForNotification(key model.Key, h UpdateHandler)

RegisterForNotification registers a channel to receive an update when the given kind receives an update. kind should be a pointer to the struct type received over the syncer.

func (*DataFeed) RegisterForSyncStatus

func (d *DataFeed) RegisterForSyncStatus(h StatusHandler)

func (*DataFeed) Start

func (d *DataFeed) Start()

type StatusHandler

type StatusHandler func(bapi.SyncStatus)

type UpdateHandler

type UpdateHandler func(bapi.Update)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL