expectations

package
v0.0.0-...-7f68784 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScaleAction

type ScaleAction string

ScaleAction is the action of scale, like create and delete.

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, map[ScaleAction][]string)
	DeleteExpectations(controllerKey string)
	GetExpectations(controllerKey string) map[ScaleAction]sets.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)
	SatisfiedExpectations(controllerKey, revision string) (bool, []string)
	DeleteExpectations(controllerKey string)
}

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

func NewUpdateExpectations

func NewUpdateExpectations(getRevision func(metav1.Object) string) UpdateExpectations

NewUpdateExpectations returns a common UpdateExpectations.

Jump to

Keyboard shortcuts

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