expectations

package
v0.0.0-...-209ba2c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExpectationTimeout time.Duration

Functions

This section is empty.

Types

type ResourceVersionExpectation

type ResourceVersionExpectation interface {
	Expect(obj metav1.Object)
	Observe(obj metav1.Object)
	IsSatisfied(obj metav1.Object) (bool, time.Duration)
	Delete(obj metav1.Object)
}

func NewResourceVersionExpectation

func NewResourceVersionExpectation() ResourceVersionExpectation

type ScaleAction

type ScaleAction string
const (
	// Create action
	Create ScaleAction = "create"
	// Delete action
	Delete ScaleAction = "delete"
)

type ScaleExpectations

type ScaleExpectations interface {
	ExpectScale(controllerKey string, action ScaleAction, name string)
	ObserveScale(controllerKey string, action ScaleAction, name string)
	SatisfiedExpectations(controllerKey string) (bool, time.Duration, map[ScaleAction][]string)
	DeleteExpectations(controllerKey string)
}

ScaleExpectations is an interface that allows users to set and wait on expectations of pods scale.

func NewScaleExpectations

func NewScaleExpectations() ScaleExpectations

NewScaleExpectations returns a common ScaleExpectations.

type UpdateExpectations

type UpdateExpectations interface {
	ExpectUpdated(controllerKey, revision string, obj metav1.Object)
	ObserveUpdated(controllerKey, revision string, obj metav1.Object)
	DeleteObject(controllerKey string, obj metav1.Object)
	SatisfiedExpectations(controllerKey, revision string) (bool, time.Duration, []string)
	DeleteExpectations(controllerKey string)
}

UpdateExpectations is an interface that allows users to set and wait on expectations of pods update.

func NewUpdateExpectations

func NewUpdateExpectations(revisionAdapter revisionadapter.Interface) UpdateExpectations

NewUpdateExpectations returns a common UpdateExpectations.

Jump to

Keyboard shortcuts

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