mocks

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEventReporter

type FakeEventReporter struct {
	ReceivedEvents []reporter.EventMessage
	ErrorOnReport  bool
	// contains filtered or unexported fields
}

func NewFakeEventReporter

func NewFakeEventReporter() *FakeEventReporter

func (*FakeEventReporter) GetReceivedEvents added in v0.22.3

func (f *FakeEventReporter) GetReceivedEvents() []reporter.EventMessage

GetReceivedEvents returns a copy of the reported events, safe to read while another goroutine is reporting.

func (*FakeEventReporter) HasPendingEvents added in v0.16.2

func (f *FakeEventReporter) HasPendingEvents(pod *v1.Pod) bool

func (*FakeEventReporter) QueueEvent

func (f *FakeEventReporter) QueueEvent(event reporter.EventMessage, callback func(error))

func (*FakeEventReporter) Report

func (f *FakeEventReporter) Report(events []reporter.EventMessage) error

Jump to

Keyboard shortcuts

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