Versions in this module Expand all Collapse all v0 v0.4.0 Aug 15, 2019 Changes in this version + func ConfigMapFromTestFile(t *testing.T, name string, allowed ...string) *corev1.ConfigMap + func ConfigMapsFromTestFile(t *testing.T, name string, allowed ...string) (*corev1.ConfigMap, *corev1.ConfigMap) + func Eventf(eventType, reason, messageFmt string, args ...interface{}) string + func InduceFailure(verb, resource string) clientgotesting.ReactionFunc + func KeyOrDie(obj interface{}) string + func PrependGenerateNameReactor(f *clientgotesting.Fake) + func ValidateCreates(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + func ValidateUpdates(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + type ActionRecorder interface + Actions func() []clientgotesting.Action + type ActionRecorderList []ActionRecorder + func (l ActionRecorderList) ActionsByVerb() (Actions, error) + type Actions struct + Creates []clientgotesting.CreateAction + DeleteCollections []clientgotesting.DeleteCollectionAction + Deletes []clientgotesting.DeleteAction + Patches []clientgotesting.PatchAction + Updates []clientgotesting.UpdateAction + type CreateHookFunc func(runtime.Object) HookResult + func ExpectNormalEventDelivery(t *testing.T, messageRegexp string) CreateHookFunc + func ExpectWarningEventDelivery(t *testing.T, messageRegexp string) CreateHookFunc + type DeleteHookFunc func(string) HookResult + type EventList struct + Recorder *record.FakeRecorder + func (l EventList) Events() []string + type Factory func(*testing.T, *TableRow) (controller.Reconciler, ActionRecorderList, EventList) + type GenerateNameReactor struct + func (r *GenerateNameReactor) Handles(action clientgotesting.Action) bool + func (r *GenerateNameReactor) React(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) + type HookResult bool + const HookComplete + const HookIncomplete + type Hooks struct + func NewHooks() *Hooks + func (h *Hooks) OnCreate(fake *kubetesting.Fake, resource string, rf CreateHookFunc) + func (h *Hooks) OnDelete(fake *kubetesting.Fake, resource string, rf DeleteHookFunc) + func (h *Hooks) OnUpdate(fake *kubetesting.Fake, resource string, rf UpdateHookFunc) + func (h *Hooks) WaitForHooks(timeout time.Duration) error + type NullTracker struct + func (*NullTracker) OnChanged(interface{}) + func (*NullTracker) Track(corev1.ObjectReference, interface{}) error + type ObjectSorter struct + func NewObjectSorter(scheme *runtime.Scheme) ObjectSorter + func (o *ObjectSorter) AddObjects(objs ...runtime.Object) + func (o *ObjectSorter) IndexerForObjectType(obj runtime.Object) cache.Indexer + func (o *ObjectSorter) ObjectsForScheme(scheme *runtime.Scheme) []runtime.Object + func (o *ObjectSorter) ObjectsForSchemeFunc(funcs ...func(scheme *runtime.Scheme) error) []runtime.Object + type TableRow struct + Key string + Name string + Objects []runtime.Object + SkipNamespaceValidation bool + WantCreates []metav1.Object + WantDeleteCollections []clientgotesting.DeleteCollectionActionImpl + WantDeletes []clientgotesting.DeleteActionImpl + WantErr bool + WantEvents []string + WantPatches []clientgotesting.PatchActionImpl + WantStatusUpdates []clientgotesting.UpdateActionImpl + WantUpdates []clientgotesting.UpdateActionImpl + WithReactors []clientgotesting.ReactionFunc + func (r *TableRow) Test(t *testing.T, factory Factory) + type TableTest []TableRow + func (tt TableTest) Test(t *testing.T, factory Factory) + type UpdateHookFunc func(runtime.Object) HookResult