Documentation ¶
Overview ¶
Package controller provides a fake controller for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareConditions ¶ added in v0.9.3
CompareConditions compares two condition slices and returns a string with the differences.
Types ¶
type FakeController ¶
type FakeController struct {
// contains filtered or unexported fields
}
FakeController is a fake controller which only stores one key.
func (*FakeController) Enqueue ¶
func (f *FakeController) Enqueue(obj interface{})
Enqueue enqueues a string type key.
func (*FakeController) Key ¶
func (f *FakeController) Key() string
Key returns the key stored in the queue.
func (*FakeController) ResetQueue ¶
func (f *FakeController) ResetQueue()
ResetQueue resets the value in the queue.
Click to show internal directories.
Click to hide internal directories.