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