informer

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MaxEvents = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	OldObj *unstructured.Unstructured
	NewObj *unstructured.Unstructured
}

type TestInformer

type TestInformer struct {
	Wg           sync.WaitGroup
	CreateEvents chan *unstructured.Unstructured
	UpdateEvents chan Event
	DeleteEvents chan *unstructured.Unstructured
	StopCh       chan struct{}
	// contains filtered or unexported fields
}

func NewInformer

func NewInformer(cfg *rest.Config, gkv schema.GroupVersionKind, namespace, resourceName string) *TestInformer

NewInformer returns a new informer struct to test reconciliation transitions in our unit tests.

func (*TestInformer) Cleanup

func (i *TestInformer) Cleanup()

func (*TestInformer) HasSynced

func (i *TestInformer) HasSynced() bool

func (*TestInformer) Run

func (i *TestInformer) Run()

Jump to

Keyboard shortcuts

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