expectations

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExpectationTimeout   time.Duration
	ResourceExpectations = NewResourceExpectations()
)

Functions

This section is empty.

Types

type Action

type Action string

Action is the action, like create and delete.

const (
	// Create action
	Create Action = "create"
	// Delete action
	Delete Action = "delete"
)

type Expectations

type Expectations interface {
	Expect(controllerKey string, action Action, name string)
	Observe(controllerKey string, action Action, name string)
	SatisfiedExpectations(controllerKey string) (bool, time.Duration, map[Action][]string)
	DeleteExpectations(controllerKey string)
	GetExpectations(controllerKey string) map[Action]sets.String
}

Expectations is an interface that allows users to set and wait on expectations of resource creation and deletion.

func NewResourceExpectations

func NewResourceExpectations() Expectations

NewResourceExpectations returns a common Expectations.

Jump to

Keyboard shortcuts

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