informer

package
v0.0.0-...-7fc0de4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 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
	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) Run

func (i *TestInformer) Run()

Jump to

Keyboard shortcuts

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