irievent

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEvent

type CreateEvent[O irimeta.Object] struct {
	Object O
}

type DeleteEvent

type DeleteEvent[O irimeta.Object] struct {
	Object O
}

type EnqueueFunc

type EnqueueFunc struct {
	EnqueueFunc func()
}

func (EnqueueFunc) Enqueue

func (n EnqueueFunc) Enqueue()

type Generator

type Generator[O irimeta.Object] interface {
	Source[O]
	healthz.HealthChecker
	manager.Runnable
}

func NewGenerator

func NewGenerator[O irimeta.Object](list func(ctx context.Context) ([]O, error), opts GeneratorOptions) Generator[O]

type GeneratorOptions

type GeneratorOptions struct {
	ChannelCapacity int
	RelistPeriod    time.Duration
	RelistThreshold time.Duration
}

type GenericEvent

type GenericEvent[O irimeta.Object] struct {
	Object O
}

type Handler

type Handler[O irimeta.Object] interface {
	Create(event CreateEvent[O])
	Update(event UpdateEvent[O])
	Delete(event DeleteEvent[O])
	Generic(event GenericEvent[O])
}

type HandlerFuncs

type HandlerFuncs[O irimeta.Object] struct {
	CreateFunc  func(event CreateEvent[O])
	UpdateFunc  func(event UpdateEvent[O])
	DeleteFunc  func(event DeleteEvent[O])
	GenericFunc func(event GenericEvent[O])
}

func (HandlerFuncs[O]) Create

func (e HandlerFuncs[O]) Create(event CreateEvent[O])

func (HandlerFuncs[O]) Delete

func (e HandlerFuncs[O]) Delete(event DeleteEvent[O])

func (HandlerFuncs[O]) Generic

func (e HandlerFuncs[O]) Generic(event GenericEvent[O])

func (HandlerFuncs[O]) Update

func (e HandlerFuncs[O]) Update(event UpdateEvent[O])

type HandlerRegistration

type HandlerRegistration interface {
	Remove() error
}

type Listener

type Listener interface {
	Enqueue()
}

type ListenerRegistration

type ListenerRegistration interface{}

type Source

type Source[O irimeta.Object] interface {
	AddHandler(handler Handler[O]) (HandlerRegistration, error)
}

type UpdateEvent

type UpdateEvent[O irimeta.Object] struct {
	ObjectOld O
	ObjectNew O
}

Jump to

Keyboard shortcuts

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