Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 30 * time.Second

The default timeout for EventuallyGet().

Functions

func Functional

func Functional() *functionalBuilder

func Unit

func Unit() *unitBuilder

Types

type EventuallyGetValueGetter

type EventuallyGetValueGetter func(runtime.Object) (interface{}, error)

type FunctionalHelper

type FunctionalHelper struct {
	UncachedClient client.Client
	Client         client.Client
	TestClient     *testClient
	Namespace      string
	// contains filtered or unexported fields
}

func (*FunctionalHelper) DebugList

func (fh *FunctionalHelper) DebugList(listType runtime.Object)

Helper method to show a list of objects, used in AfterEach helpers.

func (*FunctionalHelper) MustStop

func (fh *FunctionalHelper) MustStop()

func (*FunctionalHelper) Stop

func (fh *FunctionalHelper) Stop() error

type FunctionalSuiteHelper

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

func (*FunctionalSuiteHelper) MustStart

func (fsh *FunctionalSuiteHelper) MustStart(controllers ...managerAdder) *FunctionalHelper

func (*FunctionalSuiteHelper) MustStop

func (fsh *FunctionalSuiteHelper) MustStop()

func (*FunctionalSuiteHelper) Start

func (fsh *FunctionalSuiteHelper) Start(controllers ...managerAdder) (*FunctionalHelper, error)

func (*FunctionalSuiteHelper) Stop

func (fsh *FunctionalSuiteHelper) Stop() error

type UnitHelper

type UnitHelper struct {
	Comp       core.Component
	Client     client.Client
	TestClient *testClient
	Object     core.Object
	Events     chan string
	Ctx        *core.Context
}

func (*UnitHelper) Finalize

func (uh *UnitHelper) Finalize() (core.Result, bool, error)

func (*UnitHelper) MustFinalize

func (uh *UnitHelper) MustFinalize() (core.Result, bool)

func (*UnitHelper) MustReconcile

func (uh *UnitHelper) MustReconcile() core.Result

func (*UnitHelper) Reconcile

func (uh *UnitHelper) Reconcile() (core.Result, error)

type UnitSuiteHelper

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

func (*UnitSuiteHelper) Setup

func (ush *UnitSuiteHelper) Setup(comp core.Component, obj core.Object) *UnitHelper

Directories

Path Synopsis
matchers