controller

package
v0.0.0-...-6d85e8a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNoErrors

func AssertNoErrors()

AssertNoErrors fails the test if any controller logged errors.

func AssertNoErrorsFor

func AssertNoErrorsFor(controllerName string)

AssertNoErrorsFor fails the test if the named controller has errors.

func AssertNoRestarts

func AssertNoRestarts()

AssertNoRestarts fails the test if any controller container restarted during the suite.

func SaveRestartCounts

func SaveRestartCounts()

SaveRestartCounts records the current restart count for all controller containers.

func StartAll

func StartAll()

StartAll begins streaming logs for all controllers defined in config.

func StopAll

func StopAll()

StopAll stops all log watchers.

Types

type LogError

type LogError struct {
	Controller string
	Pod        string
	Container  string
	Line       string
	Timestamp  time.Time
}

LogError stores a single error line found in controller logs.

func GetErrors

func GetErrors(controllerName string) []LogError

GetErrors returns collected errors for a specific controller.

func (LogError) String

func (e LogError) String() string

type LogWatchManager

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

LogWatchManager manages watchers for all controllers.

Jump to

Keyboard shortcuts

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