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.
Click to show internal directories.
Click to hide internal directories.