package
0.0.3
Repository: https://github.com/bhojpur/knative-pkg.git
Documentation: pkg.go.dev

# Functions

NewBackgroundOperation creates a new background operation or test that can be notified to stop its operation.
NewBackgroundVerification is convenience function to easily setup a background operation that will setup environment and then verify environment status after receiving a StopEvent.
NewOperation creates a new upgrade operation or test.
WaitForStopEvent will wait until upgrade suite sends a stop event to it.

# Variables

DefaultOnWait is a implementation that will be called by default for each wait performed by WaitForStopEvent when used within NewBackgroundVerification function.
DefaultWaitTime holds a default value for WaitForStopEventConfiguration when used within a NewBackgroundVerification function.
ErrInvalidTestingOutputMethod when given invalid testing output method.
ErrNoTestingTRegisteredForTest when no testing.TB registered for test.

# Structs

BackgroundContext is a upgrade test execution context that will be passed down to each handler of BackgroundOperation.
Configuration holds required and optional configuration to run upgrade tests.
Context is an object that is passed to every operation.
Installations holds a list of operations that will install Knative components in different versions.
LogConfig holds the logger configuration.
StopEvent represents an event that is to be received by background operation to indicate that is should stop it's operations and validate results using passed T.
Suite represents a upgrade tests suite that can be executed and will perform execution in predictable manner.
Tests holds a list of operations for various part of upgrade suite.
WaitForStopEventConfiguration holds a values to be used be WaitForStopEvent function.

# Interfaces

BackgroundOperation represents a upgrade test operation that will be performed in background while other operations is running.
Operation represents a upgrade test operation like test or installation that can be provided by specific component or reused in aggregating components.
SuiteExecutor is to execute upgrade test suite.