testhelper

package
v0.0.0-...-2b3457a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreePort

func FreePort() int

func NewClient

func NewClient(config *rest.Config) (client.Client, error)

Types

type Environment

type Environment interface {
	Start() error
	Stop() error
	Add(reconciler reconcile.Reconciler)
	GetConfig() *rest.Config
	GetLogs() string
	GetLogger() logr.Logger
	ResetLogs()
	WithWaitOptions(...WaitOption) Environment
}

func NewTestEnvironment

func NewTestEnvironment(dirElems ...string) Environment

type WaitOption

type WaitOption interface {
	Apply(*waitOptions)
}

type WebhookWaitOption

type WebhookWaitOption bool

func (WebhookWaitOption) Apply

func (w WebhookWaitOption) Apply(options *waitOptions)

type WorkerWaitOption

type WorkerWaitOption bool

func (WorkerWaitOption) Apply

func (w WorkerWaitOption) Apply(options *waitOptions)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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