Documentation ¶
Overview ¶
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Index ¶
- type CacheInformerMock
- func (_m *CacheInformerMock) AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)
- func (_m *CacheInformerMock) AddEventHandlerWithResyncPeriod(handler cache.ResourceEventHandler, resyncPeriod time.Duration) (cache.ResourceEventHandlerRegistration, error)
- func (_m *CacheInformerMock) AddIndexers(indexers cache.Indexers) error
- func (_m *CacheInformerMock) EXPECT() *CacheInformerMock_Expecter
- func (_m *CacheInformerMock) HasSynced() bool
- func (_m *CacheInformerMock) IsStopped() bool
- func (_m *CacheInformerMock) RemoveEventHandler(handle cache.ResourceEventHandlerRegistration) error
- type CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
- func (_c *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) Return(_a0 cache.ResourceEventHandlerRegistration, _a1 error) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
- func (_c *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) Run(run func(handler cache.ResourceEventHandler, resyncPeriod time.Duration)) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
- func (_c *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) RunAndReturn(...) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
- type CacheInformerMock_AddEventHandler_Call
- func (_c *CacheInformerMock_AddEventHandler_Call) Return(_a0 cache.ResourceEventHandlerRegistration, _a1 error) *CacheInformerMock_AddEventHandler_Call
- func (_c *CacheInformerMock_AddEventHandler_Call) Run(run func(handler cache.ResourceEventHandler)) *CacheInformerMock_AddEventHandler_Call
- func (_c *CacheInformerMock_AddEventHandler_Call) RunAndReturn(...) *CacheInformerMock_AddEventHandler_Call
- type CacheInformerMock_AddIndexers_Call
- func (_c *CacheInformerMock_AddIndexers_Call) Return(_a0 error) *CacheInformerMock_AddIndexers_Call
- func (_c *CacheInformerMock_AddIndexers_Call) Run(run func(indexers cache.Indexers)) *CacheInformerMock_AddIndexers_Call
- func (_c *CacheInformerMock_AddIndexers_Call) RunAndReturn(run func(cache.Indexers) error) *CacheInformerMock_AddIndexers_Call
- type CacheInformerMock_Expecter
- func (_e *CacheInformerMock_Expecter) AddEventHandler(handler interface{}) *CacheInformerMock_AddEventHandler_Call
- func (_e *CacheInformerMock_Expecter) AddEventHandlerWithResyncPeriod(handler interface{}, resyncPeriod interface{}) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
- func (_e *CacheInformerMock_Expecter) AddIndexers(indexers interface{}) *CacheInformerMock_AddIndexers_Call
- func (_e *CacheInformerMock_Expecter) HasSynced() *CacheInformerMock_HasSynced_Call
- func (_e *CacheInformerMock_Expecter) IsStopped() *CacheInformerMock_IsStopped_Call
- func (_e *CacheInformerMock_Expecter) RemoveEventHandler(handle interface{}) *CacheInformerMock_RemoveEventHandler_Call
- type CacheInformerMock_HasSynced_Call
- type CacheInformerMock_IsStopped_Call
- type CacheInformerMock_RemoveEventHandler_Call
- func (_c *CacheInformerMock_RemoveEventHandler_Call) Return(_a0 error) *CacheInformerMock_RemoveEventHandler_Call
- func (_c *CacheInformerMock_RemoveEventHandler_Call) Run(run func(handle cache.ResourceEventHandlerRegistration)) *CacheInformerMock_RemoveEventHandler_Call
- func (_c *CacheInformerMock_RemoveEventHandler_Call) RunAndReturn(run func(cache.ResourceEventHandlerRegistration) error) *CacheInformerMock_RemoveEventHandler_Call
- type CacheWatcherMock
- type CacheWatcherMock_Expecter
- type CacheWatcherMock_Watch_Call
- func (_c *CacheWatcherMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *CacheWatcherMock_Watch_Call
- func (_c *CacheWatcherMock_Watch_Call) Run(run func(options v1.ListOptions)) *CacheWatcherMock_Watch_Call
- func (_c *CacheWatcherMock_Watch_Call) RunAndReturn(run func(v1.ListOptions) (watch.Interface, error)) *CacheWatcherMock_Watch_Call
- type EventRecorderMock
- func (_m *EventRecorderMock) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, ...)
- func (_m *EventRecorderMock) EXPECT() *EventRecorderMock_Expecter
- func (_m *EventRecorderMock) Event(object runtime.Object, eventtype string, reason string, message string)
- func (_m *EventRecorderMock) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, ...)
- type EventRecorderMock_AnnotatedEventf_Call
- func (_c *EventRecorderMock_AnnotatedEventf_Call) Return() *EventRecorderMock_AnnotatedEventf_Call
- func (_c *EventRecorderMock_AnnotatedEventf_Call) Run(...) *EventRecorderMock_AnnotatedEventf_Call
- func (_c *EventRecorderMock_AnnotatedEventf_Call) RunAndReturn(...) *EventRecorderMock_AnnotatedEventf_Call
- type EventRecorderMock_Event_Call
- type EventRecorderMock_Eventf_Call
- func (_c *EventRecorderMock_Eventf_Call) Return() *EventRecorderMock_Eventf_Call
- func (_c *EventRecorderMock_Eventf_Call) Run(...) *EventRecorderMock_Eventf_Call
- func (_c *EventRecorderMock_Eventf_Call) RunAndReturn(run func(runtime.Object, string, string, string, ...interface{})) *EventRecorderMock_Eventf_Call
- type EventRecorderMock_Expecter
- func (_e *EventRecorderMock_Expecter) AnnotatedEventf(object interface{}, annotations interface{}, eventtype interface{}, ...) *EventRecorderMock_AnnotatedEventf_Call
- func (_e *EventRecorderMock_Expecter) Event(object interface{}, eventtype interface{}, reason interface{}, ...) *EventRecorderMock_Event_Call
- func (_e *EventRecorderMock_Expecter) Eventf(object interface{}, eventtype interface{}, reason interface{}, ...) *EventRecorderMock_Eventf_Call
- type K8SClientMock
- func (_m *K8SClientMock) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *K8SClientMock) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *K8SClientMock) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *K8SClientMock) EXPECT() *K8SClientMock_Expecter
- func (_m *K8SClientMock) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *K8SClientMock) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_m *K8SClientMock) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_m *K8SClientMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *K8SClientMock) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *K8SClientMock) RESTMapper() meta.RESTMapper
- func (_m *K8SClientMock) Scheme() *runtime.Scheme
- func (_m *K8SClientMock) Status() client.SubResourceWriter
- func (_m *K8SClientMock) SubResource(subResource string) client.SubResourceClient
- func (_m *K8SClientMock) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type K8SClientMock_Create_Call
- func (_c *K8SClientMock_Create_Call) Return(_a0 error) *K8SClientMock_Create_Call
- func (_c *K8SClientMock_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *K8SClientMock_Create_Call
- func (_c *K8SClientMock_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *K8SClientMock_Create_Call
- type K8SClientMock_DeleteAllOf_Call
- func (_c *K8SClientMock_DeleteAllOf_Call) Return(_a0 error) *K8SClientMock_DeleteAllOf_Call
- func (_c *K8SClientMock_DeleteAllOf_Call) Run(...) *K8SClientMock_DeleteAllOf_Call
- func (_c *K8SClientMock_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *K8SClientMock_DeleteAllOf_Call
- type K8SClientMock_Delete_Call
- func (_c *K8SClientMock_Delete_Call) Return(_a0 error) *K8SClientMock_Delete_Call
- func (_c *K8SClientMock_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *K8SClientMock_Delete_Call
- func (_c *K8SClientMock_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *K8SClientMock_Delete_Call
- type K8SClientMock_Expecter
- func (_e *K8SClientMock_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Create_Call
- func (_e *K8SClientMock_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Delete_Call
- func (_e *K8SClientMock_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_DeleteAllOf_Call
- func (_e *K8SClientMock_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Get_Call
- func (_e *K8SClientMock_Expecter) GroupVersionKindFor(obj interface{}) *K8SClientMock_GroupVersionKindFor_Call
- func (_e *K8SClientMock_Expecter) IsObjectNamespaced(obj interface{}) *K8SClientMock_IsObjectNamespaced_Call
- func (_e *K8SClientMock_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *K8SClientMock_List_Call
- func (_e *K8SClientMock_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *K8SClientMock_Patch_Call
- func (_e *K8SClientMock_Expecter) RESTMapper() *K8SClientMock_RESTMapper_Call
- func (_e *K8SClientMock_Expecter) Scheme() *K8SClientMock_Scheme_Call
- func (_e *K8SClientMock_Expecter) Status() *K8SClientMock_Status_Call
- func (_e *K8SClientMock_Expecter) SubResource(subResource interface{}) *K8SClientMock_SubResource_Call
- func (_e *K8SClientMock_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Update_Call
- type K8SClientMock_Get_Call
- type K8SClientMock_GroupVersionKindFor_Call
- func (_c *K8SClientMock_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *K8SClientMock_GroupVersionKindFor_Call
- func (_c *K8SClientMock_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *K8SClientMock_GroupVersionKindFor_Call
- func (_c *K8SClientMock_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *K8SClientMock_GroupVersionKindFor_Call
- type K8SClientMock_IsObjectNamespaced_Call
- func (_c *K8SClientMock_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *K8SClientMock_IsObjectNamespaced_Call
- func (_c *K8SClientMock_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *K8SClientMock_IsObjectNamespaced_Call
- func (_c *K8SClientMock_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *K8SClientMock_IsObjectNamespaced_Call
- type K8SClientMock_List_Call
- type K8SClientMock_Patch_Call
- func (_c *K8SClientMock_Patch_Call) Return(_a0 error) *K8SClientMock_Patch_Call
- func (_c *K8SClientMock_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, ...)) *K8SClientMock_Patch_Call
- func (_c *K8SClientMock_Patch_Call) RunAndReturn(...) *K8SClientMock_Patch_Call
- type K8SClientMock_RESTMapper_Call
- func (_c *K8SClientMock_RESTMapper_Call) Return(_a0 meta.RESTMapper) *K8SClientMock_RESTMapper_Call
- func (_c *K8SClientMock_RESTMapper_Call) Run(run func()) *K8SClientMock_RESTMapper_Call
- func (_c *K8SClientMock_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *K8SClientMock_RESTMapper_Call
- type K8SClientMock_Scheme_Call
- type K8SClientMock_Status_Call
- type K8SClientMock_SubResource_Call
- func (_c *K8SClientMock_SubResource_Call) Return(_a0 client.SubResourceClient) *K8SClientMock_SubResource_Call
- func (_c *K8SClientMock_SubResource_Call) Run(run func(subResource string)) *K8SClientMock_SubResource_Call
- func (_c *K8SClientMock_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *K8SClientMock_SubResource_Call
- type K8SClientMock_Update_Call
- func (_c *K8SClientMock_Update_Call) Return(_a0 error) *K8SClientMock_Update_Call
- func (_c *K8SClientMock_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *K8SClientMock_Update_Call
- func (_c *K8SClientMock_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *K8SClientMock_Update_Call
- type ReaderMock
- type ReaderMock_Expecter
- type ReaderMock_Get_Call
- type ReaderMock_List_Call
- type ResourceEventHandlerMock
- func (_m *ResourceEventHandlerMock) EXPECT() *ResourceEventHandlerMock_Expecter
- func (_m *ResourceEventHandlerMock) OnAdd(obj interface{}, isInInitialList bool)
- func (_m *ResourceEventHandlerMock) OnDelete(obj interface{})
- func (_m *ResourceEventHandlerMock) OnUpdate(oldObj interface{}, newObj interface{})
- type ResourceEventHandlerMock_Expecter
- func (_e *ResourceEventHandlerMock_Expecter) OnAdd(obj interface{}, isInInitialList interface{}) *ResourceEventHandlerMock_OnAdd_Call
- func (_e *ResourceEventHandlerMock_Expecter) OnDelete(obj interface{}) *ResourceEventHandlerMock_OnDelete_Call
- func (_e *ResourceEventHandlerMock_Expecter) OnUpdate(oldObj interface{}, newObj interface{}) *ResourceEventHandlerMock_OnUpdate_Call
- type ResourceEventHandlerMock_OnAdd_Call
- func (_c *ResourceEventHandlerMock_OnAdd_Call) Return() *ResourceEventHandlerMock_OnAdd_Call
- func (_c *ResourceEventHandlerMock_OnAdd_Call) Run(run func(obj interface{}, isInInitialList bool)) *ResourceEventHandlerMock_OnAdd_Call
- func (_c *ResourceEventHandlerMock_OnAdd_Call) RunAndReturn(run func(interface{}, bool)) *ResourceEventHandlerMock_OnAdd_Call
- type ResourceEventHandlerMock_OnDelete_Call
- func (_c *ResourceEventHandlerMock_OnDelete_Call) Return() *ResourceEventHandlerMock_OnDelete_Call
- func (_c *ResourceEventHandlerMock_OnDelete_Call) Run(run func(obj interface{})) *ResourceEventHandlerMock_OnDelete_Call
- func (_c *ResourceEventHandlerMock_OnDelete_Call) RunAndReturn(run func(interface{})) *ResourceEventHandlerMock_OnDelete_Call
- type ResourceEventHandlerMock_OnUpdate_Call
- func (_c *ResourceEventHandlerMock_OnUpdate_Call) Return() *ResourceEventHandlerMock_OnUpdate_Call
- func (_c *ResourceEventHandlerMock_OnUpdate_Call) Run(run func(oldObj interface{}, newObj interface{})) *ResourceEventHandlerMock_OnUpdate_Call
- func (_c *ResourceEventHandlerMock_OnUpdate_Call) RunAndReturn(run func(interface{}, interface{})) *ResourceEventHandlerMock_OnUpdate_Call
- type RoundTripperMock
- type RoundTripperMock_Expecter
- type RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) Return(_a0 *http.Response, _a1 error) *RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) Run(run func(_a0 *http.Request)) *RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *RoundTripperMock_RoundTrip_Call
- type RuntimeControllerMock
- func (_m *RuntimeControllerMock) EXPECT() *RuntimeControllerMock_Expecter
- func (_m *RuntimeControllerMock) GetLogger() logr.Logger
- func (_m *RuntimeControllerMock) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)
- func (_m *RuntimeControllerMock) Start(ctx context.Context) error
- func (_m *RuntimeControllerMock) Watch(src source.Source, eventhandler handler.EventHandler, ...) error
- type RuntimeControllerMock_Expecter
- func (_e *RuntimeControllerMock_Expecter) GetLogger() *RuntimeControllerMock_GetLogger_Call
- func (_e *RuntimeControllerMock_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *RuntimeControllerMock_Reconcile_Call
- func (_e *RuntimeControllerMock_Expecter) Start(ctx interface{}) *RuntimeControllerMock_Start_Call
- func (_e *RuntimeControllerMock_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *RuntimeControllerMock_Watch_Call
- type RuntimeControllerMock_GetLogger_Call
- func (_c *RuntimeControllerMock_GetLogger_Call) Return(_a0 logr.Logger) *RuntimeControllerMock_GetLogger_Call
- func (_c *RuntimeControllerMock_GetLogger_Call) Run(run func()) *RuntimeControllerMock_GetLogger_Call
- func (_c *RuntimeControllerMock_GetLogger_Call) RunAndReturn(run func() logr.Logger) *RuntimeControllerMock_GetLogger_Call
- type RuntimeControllerMock_Reconcile_Call
- func (_c *RuntimeControllerMock_Reconcile_Call) Return(_a0 reconcile.Result, _a1 error) *RuntimeControllerMock_Reconcile_Call
- func (_c *RuntimeControllerMock_Reconcile_Call) Run(run func(_a0 context.Context, _a1 reconcile.Request)) *RuntimeControllerMock_Reconcile_Call
- func (_c *RuntimeControllerMock_Reconcile_Call) RunAndReturn(run func(context.Context, reconcile.Request) (reconcile.Result, error)) *RuntimeControllerMock_Reconcile_Call
- type RuntimeControllerMock_Start_Call
- func (_c *RuntimeControllerMock_Start_Call) Return(_a0 error) *RuntimeControllerMock_Start_Call
- func (_c *RuntimeControllerMock_Start_Call) Run(run func(ctx context.Context)) *RuntimeControllerMock_Start_Call
- func (_c *RuntimeControllerMock_Start_Call) RunAndReturn(run func(context.Context) error) *RuntimeControllerMock_Start_Call
- type RuntimeControllerMock_Watch_Call
- func (_c *RuntimeControllerMock_Watch_Call) Return(_a0 error) *RuntimeControllerMock_Watch_Call
- func (_c *RuntimeControllerMock_Watch_Call) Run(run func(src source.Source, eventhandler handler.EventHandler, ...)) *RuntimeControllerMock_Watch_Call
- func (_c *RuntimeControllerMock_Watch_Call) RunAndReturn(run func(source.Source, handler.EventHandler, ...predicate.Predicate) error) *RuntimeControllerMock_Watch_Call
- type StatFSMock
- type StatFSMock_Expecter
- type StatFSMock_Open_Call
- type StatFSMock_Stat_Call
- type SyncingSourceMock
- type SyncingSourceMock_Expecter
- type SyncingSourceMock_Start_Call
- func (_c *SyncingSourceMock_Start_Call) Return(_a0 error) *SyncingSourceMock_Start_Call
- func (_c *SyncingSourceMock_Start_Call) Run(run func(_a0 context.Context, _a1 handler.EventHandler, ...)) *SyncingSourceMock_Start_Call
- func (_c *SyncingSourceMock_Start_Call) RunAndReturn(...) *SyncingSourceMock_Start_Call
- type SyncingSourceMock_WaitForSync_Call
- func (_c *SyncingSourceMock_WaitForSync_Call) Return(_a0 error) *SyncingSourceMock_WaitForSync_Call
- func (_c *SyncingSourceMock_WaitForSync_Call) Run(run func(ctx context.Context)) *SyncingSourceMock_WaitForSync_Call
- func (_c *SyncingSourceMock_WaitForSync_Call) RunAndReturn(run func(context.Context) error) *SyncingSourceMock_WaitForSync_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheInformerMock ¶
CacheInformerMock is an autogenerated mock type for the Informer type
func NewCacheInformerMock ¶
func NewCacheInformerMock(t interface { mock.TestingT Cleanup(func()) }) *CacheInformerMock
NewCacheInformerMock creates a new instance of CacheInformerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CacheInformerMock) AddEventHandler ¶
func (_m *CacheInformerMock) AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)
AddEventHandler provides a mock function with given fields: handler
func (*CacheInformerMock) AddEventHandlerWithResyncPeriod ¶
func (_m *CacheInformerMock) AddEventHandlerWithResyncPeriod(handler cache.ResourceEventHandler, resyncPeriod time.Duration) (cache.ResourceEventHandlerRegistration, error)
AddEventHandlerWithResyncPeriod provides a mock function with given fields: handler, resyncPeriod
func (*CacheInformerMock) AddIndexers ¶
func (_m *CacheInformerMock) AddIndexers(indexers cache.Indexers) error
AddIndexers provides a mock function with given fields: indexers
func (*CacheInformerMock) EXPECT ¶
func (_m *CacheInformerMock) EXPECT() *CacheInformerMock_Expecter
func (*CacheInformerMock) HasSynced ¶
func (_m *CacheInformerMock) HasSynced() bool
HasSynced provides a mock function with given fields:
func (*CacheInformerMock) IsStopped ¶
func (_m *CacheInformerMock) IsStopped() bool
IsStopped provides a mock function with given fields:
func (*CacheInformerMock) RemoveEventHandler ¶
func (_m *CacheInformerMock) RemoveEventHandler(handle cache.ResourceEventHandlerRegistration) error
RemoveEventHandler provides a mock function with given fields: handle
type CacheInformerMock_AddEventHandlerWithResyncPeriod_Call ¶
CacheInformerMock_AddEventHandlerWithResyncPeriod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddEventHandlerWithResyncPeriod'
func (*CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) Run ¶
func (_c *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) Run(run func(handler cache.ResourceEventHandler, resyncPeriod time.Duration)) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
func (*CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) RunAndReturn ¶
func (_c *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) RunAndReturn(run func(cache.ResourceEventHandler, time.Duration) (cache.ResourceEventHandlerRegistration, error)) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
type CacheInformerMock_AddEventHandler_Call ¶
CacheInformerMock_AddEventHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddEventHandler'
func (*CacheInformerMock_AddEventHandler_Call) Return ¶
func (_c *CacheInformerMock_AddEventHandler_Call) Return(_a0 cache.ResourceEventHandlerRegistration, _a1 error) *CacheInformerMock_AddEventHandler_Call
func (*CacheInformerMock_AddEventHandler_Call) Run ¶
func (_c *CacheInformerMock_AddEventHandler_Call) Run(run func(handler cache.ResourceEventHandler)) *CacheInformerMock_AddEventHandler_Call
func (*CacheInformerMock_AddEventHandler_Call) RunAndReturn ¶
func (_c *CacheInformerMock_AddEventHandler_Call) RunAndReturn(run func(cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)) *CacheInformerMock_AddEventHandler_Call
type CacheInformerMock_AddIndexers_Call ¶
CacheInformerMock_AddIndexers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddIndexers'
func (*CacheInformerMock_AddIndexers_Call) Return ¶
func (_c *CacheInformerMock_AddIndexers_Call) Return(_a0 error) *CacheInformerMock_AddIndexers_Call
func (*CacheInformerMock_AddIndexers_Call) Run ¶
func (_c *CacheInformerMock_AddIndexers_Call) Run(run func(indexers cache.Indexers)) *CacheInformerMock_AddIndexers_Call
func (*CacheInformerMock_AddIndexers_Call) RunAndReturn ¶
func (_c *CacheInformerMock_AddIndexers_Call) RunAndReturn(run func(cache.Indexers) error) *CacheInformerMock_AddIndexers_Call
type CacheInformerMock_Expecter ¶
type CacheInformerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheInformerMock_Expecter) AddEventHandler ¶
func (_e *CacheInformerMock_Expecter) AddEventHandler(handler interface{}) *CacheInformerMock_AddEventHandler_Call
AddEventHandler is a helper method to define mock.On call
- handler cache.ResourceEventHandler
func (*CacheInformerMock_Expecter) AddEventHandlerWithResyncPeriod ¶
func (_e *CacheInformerMock_Expecter) AddEventHandlerWithResyncPeriod(handler interface{}, resyncPeriod interface{}) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call
AddEventHandlerWithResyncPeriod is a helper method to define mock.On call
- handler cache.ResourceEventHandler
- resyncPeriod time.Duration
func (*CacheInformerMock_Expecter) AddIndexers ¶
func (_e *CacheInformerMock_Expecter) AddIndexers(indexers interface{}) *CacheInformerMock_AddIndexers_Call
AddIndexers is a helper method to define mock.On call
- indexers cache.Indexers
func (*CacheInformerMock_Expecter) HasSynced ¶
func (_e *CacheInformerMock_Expecter) HasSynced() *CacheInformerMock_HasSynced_Call
HasSynced is a helper method to define mock.On call
func (*CacheInformerMock_Expecter) IsStopped ¶
func (_e *CacheInformerMock_Expecter) IsStopped() *CacheInformerMock_IsStopped_Call
IsStopped is a helper method to define mock.On call
func (*CacheInformerMock_Expecter) RemoveEventHandler ¶
func (_e *CacheInformerMock_Expecter) RemoveEventHandler(handle interface{}) *CacheInformerMock_RemoveEventHandler_Call
RemoveEventHandler is a helper method to define mock.On call
- handle cache.ResourceEventHandlerRegistration
type CacheInformerMock_HasSynced_Call ¶
CacheInformerMock_HasSynced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasSynced'
func (*CacheInformerMock_HasSynced_Call) Return ¶
func (_c *CacheInformerMock_HasSynced_Call) Return(_a0 bool) *CacheInformerMock_HasSynced_Call
func (*CacheInformerMock_HasSynced_Call) Run ¶
func (_c *CacheInformerMock_HasSynced_Call) Run(run func()) *CacheInformerMock_HasSynced_Call
func (*CacheInformerMock_HasSynced_Call) RunAndReturn ¶
func (_c *CacheInformerMock_HasSynced_Call) RunAndReturn(run func() bool) *CacheInformerMock_HasSynced_Call
type CacheInformerMock_IsStopped_Call ¶
CacheInformerMock_IsStopped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsStopped'
func (*CacheInformerMock_IsStopped_Call) Return ¶
func (_c *CacheInformerMock_IsStopped_Call) Return(_a0 bool) *CacheInformerMock_IsStopped_Call
func (*CacheInformerMock_IsStopped_Call) Run ¶
func (_c *CacheInformerMock_IsStopped_Call) Run(run func()) *CacheInformerMock_IsStopped_Call
func (*CacheInformerMock_IsStopped_Call) RunAndReturn ¶
func (_c *CacheInformerMock_IsStopped_Call) RunAndReturn(run func() bool) *CacheInformerMock_IsStopped_Call
type CacheInformerMock_RemoveEventHandler_Call ¶
CacheInformerMock_RemoveEventHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveEventHandler'
func (*CacheInformerMock_RemoveEventHandler_Call) Return ¶
func (_c *CacheInformerMock_RemoveEventHandler_Call) Return(_a0 error) *CacheInformerMock_RemoveEventHandler_Call
func (*CacheInformerMock_RemoveEventHandler_Call) Run ¶
func (_c *CacheInformerMock_RemoveEventHandler_Call) Run(run func(handle cache.ResourceEventHandlerRegistration)) *CacheInformerMock_RemoveEventHandler_Call
func (*CacheInformerMock_RemoveEventHandler_Call) RunAndReturn ¶
func (_c *CacheInformerMock_RemoveEventHandler_Call) RunAndReturn(run func(cache.ResourceEventHandlerRegistration) error) *CacheInformerMock_RemoveEventHandler_Call
type CacheWatcherMock ¶
CacheWatcherMock is an autogenerated mock type for the Watcher type
func NewCacheWatcherMock ¶
func NewCacheWatcherMock(t interface { mock.TestingT Cleanup(func()) }) *CacheWatcherMock
NewCacheWatcherMock creates a new instance of CacheWatcherMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CacheWatcherMock) EXPECT ¶
func (_m *CacheWatcherMock) EXPECT() *CacheWatcherMock_Expecter
func (*CacheWatcherMock) Watch ¶
func (_m *CacheWatcherMock) Watch(options v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: options
type CacheWatcherMock_Expecter ¶
type CacheWatcherMock_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheWatcherMock_Expecter) Watch ¶
func (_e *CacheWatcherMock_Expecter) Watch(options interface{}) *CacheWatcherMock_Watch_Call
Watch is a helper method to define mock.On call
- options v1.ListOptions
type CacheWatcherMock_Watch_Call ¶
CacheWatcherMock_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*CacheWatcherMock_Watch_Call) Return ¶
func (_c *CacheWatcherMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *CacheWatcherMock_Watch_Call
func (*CacheWatcherMock_Watch_Call) Run ¶
func (_c *CacheWatcherMock_Watch_Call) Run(run func(options v1.ListOptions)) *CacheWatcherMock_Watch_Call
func (*CacheWatcherMock_Watch_Call) RunAndReturn ¶
func (_c *CacheWatcherMock_Watch_Call) RunAndReturn(run func(v1.ListOptions) (watch.Interface, error)) *CacheWatcherMock_Watch_Call
type EventRecorderMock ¶
EventRecorderMock is an autogenerated mock type for the EventRecorder type
func NewEventRecorderMock ¶
func NewEventRecorderMock(t interface { mock.TestingT Cleanup(func()) }) *EventRecorderMock
NewEventRecorderMock creates a new instance of EventRecorderMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EventRecorderMock) AnnotatedEventf ¶
func (_m *EventRecorderMock) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})
AnnotatedEventf provides a mock function with given fields: object, annotations, eventtype, reason, messageFmt, args
func (*EventRecorderMock) EXPECT ¶
func (_m *EventRecorderMock) EXPECT() *EventRecorderMock_Expecter
type EventRecorderMock_AnnotatedEventf_Call ¶
EventRecorderMock_AnnotatedEventf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AnnotatedEventf'
func (*EventRecorderMock_AnnotatedEventf_Call) Return ¶
func (_c *EventRecorderMock_AnnotatedEventf_Call) Return() *EventRecorderMock_AnnotatedEventf_Call
func (*EventRecorderMock_AnnotatedEventf_Call) Run ¶
func (_c *EventRecorderMock_AnnotatedEventf_Call) Run(run func(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})) *EventRecorderMock_AnnotatedEventf_Call
func (*EventRecorderMock_AnnotatedEventf_Call) RunAndReturn ¶
func (_c *EventRecorderMock_AnnotatedEventf_Call) RunAndReturn(run func(runtime.Object, map[string]string, string, string, string, ...interface{})) *EventRecorderMock_AnnotatedEventf_Call
type EventRecorderMock_Event_Call ¶
EventRecorderMock_Event_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Event'
func (*EventRecorderMock_Event_Call) Return ¶
func (_c *EventRecorderMock_Event_Call) Return() *EventRecorderMock_Event_Call
func (*EventRecorderMock_Event_Call) Run ¶
func (_c *EventRecorderMock_Event_Call) Run(run func(object runtime.Object, eventtype string, reason string, message string)) *EventRecorderMock_Event_Call
func (*EventRecorderMock_Event_Call) RunAndReturn ¶
func (_c *EventRecorderMock_Event_Call) RunAndReturn(run func(runtime.Object, string, string, string)) *EventRecorderMock_Event_Call
type EventRecorderMock_Eventf_Call ¶
EventRecorderMock_Eventf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Eventf'
func (*EventRecorderMock_Eventf_Call) Return ¶
func (_c *EventRecorderMock_Eventf_Call) Return() *EventRecorderMock_Eventf_Call
func (*EventRecorderMock_Eventf_Call) Run ¶
func (_c *EventRecorderMock_Eventf_Call) Run(run func(object runtime.Object, eventtype string, reason string, messageFmt string, args ...interface{})) *EventRecorderMock_Eventf_Call
func (*EventRecorderMock_Eventf_Call) RunAndReturn ¶
func (_c *EventRecorderMock_Eventf_Call) RunAndReturn(run func(runtime.Object, string, string, string, ...interface{})) *EventRecorderMock_Eventf_Call
type EventRecorderMock_Expecter ¶
type EventRecorderMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EventRecorderMock_Expecter) AnnotatedEventf ¶
func (_e *EventRecorderMock_Expecter) AnnotatedEventf(object interface{}, annotations interface{}, eventtype interface{}, reason interface{}, messageFmt interface{}, args ...interface{}) *EventRecorderMock_AnnotatedEventf_Call
AnnotatedEventf is a helper method to define mock.On call
- object runtime.Object
- annotations map[string]string
- eventtype string
- reason string
- messageFmt string
- args ...interface{}
func (*EventRecorderMock_Expecter) Event ¶
func (_e *EventRecorderMock_Expecter) Event(object interface{}, eventtype interface{}, reason interface{}, message interface{}) *EventRecorderMock_Event_Call
Event is a helper method to define mock.On call
- object runtime.Object
- eventtype string
- reason string
- message string
func (*EventRecorderMock_Expecter) Eventf ¶
func (_e *EventRecorderMock_Expecter) Eventf(object interface{}, eventtype interface{}, reason interface{}, messageFmt interface{}, args ...interface{}) *EventRecorderMock_Eventf_Call
Eventf is a helper method to define mock.On call
- object runtime.Object
- eventtype string
- reason string
- messageFmt string
- args ...interface{}
type K8SClientMock ¶
K8SClientMock is an autogenerated mock type for the Client type
func NewK8SClientMock ¶
func NewK8SClientMock(t interface { mock.TestingT Cleanup(func()) }) *K8SClientMock
NewK8SClientMock creates a new instance of K8SClientMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*K8SClientMock) Create ¶
func (_m *K8SClientMock) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
Create provides a mock function with given fields: ctx, obj, opts
func (*K8SClientMock) Delete ¶
func (_m *K8SClientMock) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
Delete provides a mock function with given fields: ctx, obj, opts
func (*K8SClientMock) DeleteAllOf ¶
func (_m *K8SClientMock) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*K8SClientMock) EXPECT ¶
func (_m *K8SClientMock) EXPECT() *K8SClientMock_Expecter
func (*K8SClientMock) Get ¶
func (_m *K8SClientMock) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*K8SClientMock) GroupVersionKindFor ¶
func (_m *K8SClientMock) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
GroupVersionKindFor provides a mock function with given fields: obj
func (*K8SClientMock) IsObjectNamespaced ¶
func (_m *K8SClientMock) IsObjectNamespaced(obj runtime.Object) (bool, error)
IsObjectNamespaced provides a mock function with given fields: obj
func (*K8SClientMock) List ¶
func (_m *K8SClientMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*K8SClientMock) Patch ¶
func (_m *K8SClientMock) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*K8SClientMock) RESTMapper ¶
func (_m *K8SClientMock) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with given fields:
func (*K8SClientMock) Scheme ¶
func (_m *K8SClientMock) Scheme() *runtime.Scheme
Scheme provides a mock function with given fields:
func (*K8SClientMock) Status ¶
func (_m *K8SClientMock) Status() client.SubResourceWriter
Status provides a mock function with given fields:
func (*K8SClientMock) SubResource ¶
func (_m *K8SClientMock) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
func (*K8SClientMock) Update ¶
func (_m *K8SClientMock) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts
type K8SClientMock_Create_Call ¶
K8SClientMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*K8SClientMock_Create_Call) Return ¶
func (_c *K8SClientMock_Create_Call) Return(_a0 error) *K8SClientMock_Create_Call
func (*K8SClientMock_Create_Call) Run ¶
func (_c *K8SClientMock_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *K8SClientMock_Create_Call
func (*K8SClientMock_Create_Call) RunAndReturn ¶
func (_c *K8SClientMock_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *K8SClientMock_Create_Call
type K8SClientMock_DeleteAllOf_Call ¶
K8SClientMock_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*K8SClientMock_DeleteAllOf_Call) Return ¶
func (_c *K8SClientMock_DeleteAllOf_Call) Return(_a0 error) *K8SClientMock_DeleteAllOf_Call
func (*K8SClientMock_DeleteAllOf_Call) Run ¶
func (_c *K8SClientMock_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *K8SClientMock_DeleteAllOf_Call
func (*K8SClientMock_DeleteAllOf_Call) RunAndReturn ¶
func (_c *K8SClientMock_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *K8SClientMock_DeleteAllOf_Call
type K8SClientMock_Delete_Call ¶
K8SClientMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*K8SClientMock_Delete_Call) Return ¶
func (_c *K8SClientMock_Delete_Call) Return(_a0 error) *K8SClientMock_Delete_Call
func (*K8SClientMock_Delete_Call) Run ¶
func (_c *K8SClientMock_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *K8SClientMock_Delete_Call
func (*K8SClientMock_Delete_Call) RunAndReturn ¶
func (_c *K8SClientMock_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *K8SClientMock_Delete_Call
type K8SClientMock_Expecter ¶
type K8SClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*K8SClientMock_Expecter) Create ¶
func (_e *K8SClientMock_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*K8SClientMock_Expecter) Delete ¶
func (_e *K8SClientMock_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*K8SClientMock_Expecter) DeleteAllOf ¶
func (_e *K8SClientMock_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*K8SClientMock_Expecter) Get ¶
func (_e *K8SClientMock_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*K8SClientMock_Expecter) GroupVersionKindFor ¶
func (_e *K8SClientMock_Expecter) GroupVersionKindFor(obj interface{}) *K8SClientMock_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*K8SClientMock_Expecter) IsObjectNamespaced ¶
func (_e *K8SClientMock_Expecter) IsObjectNamespaced(obj interface{}) *K8SClientMock_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*K8SClientMock_Expecter) List ¶
func (_e *K8SClientMock_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *K8SClientMock_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*K8SClientMock_Expecter) Patch ¶
func (_e *K8SClientMock_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *K8SClientMock_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.PatchOption
func (*K8SClientMock_Expecter) RESTMapper ¶
func (_e *K8SClientMock_Expecter) RESTMapper() *K8SClientMock_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*K8SClientMock_Expecter) Scheme ¶
func (_e *K8SClientMock_Expecter) Scheme() *K8SClientMock_Scheme_Call
Scheme is a helper method to define mock.On call
func (*K8SClientMock_Expecter) Status ¶
func (_e *K8SClientMock_Expecter) Status() *K8SClientMock_Status_Call
Status is a helper method to define mock.On call
func (*K8SClientMock_Expecter) SubResource ¶
func (_e *K8SClientMock_Expecter) SubResource(subResource interface{}) *K8SClientMock_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*K8SClientMock_Expecter) Update ¶
func (_e *K8SClientMock_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type K8SClientMock_Get_Call ¶
K8SClientMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*K8SClientMock_Get_Call) Return ¶
func (_c *K8SClientMock_Get_Call) Return(_a0 error) *K8SClientMock_Get_Call
func (*K8SClientMock_Get_Call) Run ¶
func (_c *K8SClientMock_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *K8SClientMock_Get_Call
func (*K8SClientMock_Get_Call) RunAndReturn ¶
func (_c *K8SClientMock_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *K8SClientMock_Get_Call
type K8SClientMock_GroupVersionKindFor_Call ¶
K8SClientMock_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*K8SClientMock_GroupVersionKindFor_Call) Return ¶
func (_c *K8SClientMock_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *K8SClientMock_GroupVersionKindFor_Call
func (*K8SClientMock_GroupVersionKindFor_Call) Run ¶
func (_c *K8SClientMock_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *K8SClientMock_GroupVersionKindFor_Call
func (*K8SClientMock_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *K8SClientMock_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *K8SClientMock_GroupVersionKindFor_Call
type K8SClientMock_IsObjectNamespaced_Call ¶
K8SClientMock_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*K8SClientMock_IsObjectNamespaced_Call) Return ¶
func (_c *K8SClientMock_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *K8SClientMock_IsObjectNamespaced_Call
func (*K8SClientMock_IsObjectNamespaced_Call) Run ¶
func (_c *K8SClientMock_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *K8SClientMock_IsObjectNamespaced_Call
func (*K8SClientMock_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *K8SClientMock_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *K8SClientMock_IsObjectNamespaced_Call
type K8SClientMock_List_Call ¶
K8SClientMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*K8SClientMock_List_Call) Return ¶
func (_c *K8SClientMock_List_Call) Return(_a0 error) *K8SClientMock_List_Call
func (*K8SClientMock_List_Call) Run ¶
func (_c *K8SClientMock_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *K8SClientMock_List_Call
func (*K8SClientMock_List_Call) RunAndReturn ¶
func (_c *K8SClientMock_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *K8SClientMock_List_Call
type K8SClientMock_Patch_Call ¶
K8SClientMock_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*K8SClientMock_Patch_Call) Return ¶
func (_c *K8SClientMock_Patch_Call) Return(_a0 error) *K8SClientMock_Patch_Call
func (*K8SClientMock_Patch_Call) Run ¶
func (_c *K8SClientMock_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *K8SClientMock_Patch_Call
func (*K8SClientMock_Patch_Call) RunAndReturn ¶
func (_c *K8SClientMock_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.PatchOption) error) *K8SClientMock_Patch_Call
type K8SClientMock_RESTMapper_Call ¶
K8SClientMock_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*K8SClientMock_RESTMapper_Call) Return ¶
func (_c *K8SClientMock_RESTMapper_Call) Return(_a0 meta.RESTMapper) *K8SClientMock_RESTMapper_Call
func (*K8SClientMock_RESTMapper_Call) Run ¶
func (_c *K8SClientMock_RESTMapper_Call) Run(run func()) *K8SClientMock_RESTMapper_Call
func (*K8SClientMock_RESTMapper_Call) RunAndReturn ¶
func (_c *K8SClientMock_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *K8SClientMock_RESTMapper_Call
type K8SClientMock_Scheme_Call ¶
K8SClientMock_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*K8SClientMock_Scheme_Call) Return ¶
func (_c *K8SClientMock_Scheme_Call) Return(_a0 *runtime.Scheme) *K8SClientMock_Scheme_Call
func (*K8SClientMock_Scheme_Call) Run ¶
func (_c *K8SClientMock_Scheme_Call) Run(run func()) *K8SClientMock_Scheme_Call
func (*K8SClientMock_Scheme_Call) RunAndReturn ¶
func (_c *K8SClientMock_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *K8SClientMock_Scheme_Call
type K8SClientMock_Status_Call ¶
K8SClientMock_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*K8SClientMock_Status_Call) Return ¶
func (_c *K8SClientMock_Status_Call) Return(_a0 client.SubResourceWriter) *K8SClientMock_Status_Call
func (*K8SClientMock_Status_Call) Run ¶
func (_c *K8SClientMock_Status_Call) Run(run func()) *K8SClientMock_Status_Call
func (*K8SClientMock_Status_Call) RunAndReturn ¶
func (_c *K8SClientMock_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *K8SClientMock_Status_Call
type K8SClientMock_SubResource_Call ¶
K8SClientMock_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*K8SClientMock_SubResource_Call) Return ¶
func (_c *K8SClientMock_SubResource_Call) Return(_a0 client.SubResourceClient) *K8SClientMock_SubResource_Call
func (*K8SClientMock_SubResource_Call) Run ¶
func (_c *K8SClientMock_SubResource_Call) Run(run func(subResource string)) *K8SClientMock_SubResource_Call
func (*K8SClientMock_SubResource_Call) RunAndReturn ¶
func (_c *K8SClientMock_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *K8SClientMock_SubResource_Call
type K8SClientMock_Update_Call ¶
K8SClientMock_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*K8SClientMock_Update_Call) Return ¶
func (_c *K8SClientMock_Update_Call) Return(_a0 error) *K8SClientMock_Update_Call
func (*K8SClientMock_Update_Call) Run ¶
func (_c *K8SClientMock_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *K8SClientMock_Update_Call
func (*K8SClientMock_Update_Call) RunAndReturn ¶
func (_c *K8SClientMock_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *K8SClientMock_Update_Call
type ReaderMock ¶
ReaderMock is an autogenerated mock type for the Reader type
func NewReaderMock ¶
func NewReaderMock(t interface { mock.TestingT Cleanup(func()) }) *ReaderMock
NewReaderMock creates a new instance of ReaderMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReaderMock) EXPECT ¶
func (_m *ReaderMock) EXPECT() *ReaderMock_Expecter
func (*ReaderMock) Get ¶
func (_m *ReaderMock) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*ReaderMock) List ¶
func (_m *ReaderMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
type ReaderMock_Expecter ¶
type ReaderMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ReaderMock_Expecter) Get ¶
func (_e *ReaderMock_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *ReaderMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*ReaderMock_Expecter) List ¶
func (_e *ReaderMock_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *ReaderMock_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
type ReaderMock_Get_Call ¶
ReaderMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ReaderMock_Get_Call) Return ¶
func (_c *ReaderMock_Get_Call) Return(_a0 error) *ReaderMock_Get_Call
func (*ReaderMock_Get_Call) Run ¶
func (_c *ReaderMock_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *ReaderMock_Get_Call
func (*ReaderMock_Get_Call) RunAndReturn ¶
func (_c *ReaderMock_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *ReaderMock_Get_Call
type ReaderMock_List_Call ¶
ReaderMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReaderMock_List_Call) Return ¶
func (_c *ReaderMock_List_Call) Return(_a0 error) *ReaderMock_List_Call
func (*ReaderMock_List_Call) Run ¶
func (_c *ReaderMock_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *ReaderMock_List_Call
func (*ReaderMock_List_Call) RunAndReturn ¶
func (_c *ReaderMock_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *ReaderMock_List_Call
type ResourceEventHandlerMock ¶
ResourceEventHandlerMock is an autogenerated mock type for the ResourceEventHandler type
func NewResourceEventHandlerMock ¶
func NewResourceEventHandlerMock(t interface { mock.TestingT Cleanup(func()) }) *ResourceEventHandlerMock
NewResourceEventHandlerMock creates a new instance of ResourceEventHandlerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResourceEventHandlerMock) EXPECT ¶
func (_m *ResourceEventHandlerMock) EXPECT() *ResourceEventHandlerMock_Expecter
func (*ResourceEventHandlerMock) OnAdd ¶
func (_m *ResourceEventHandlerMock) OnAdd(obj interface{}, isInInitialList bool)
OnAdd provides a mock function with given fields: obj, isInInitialList
func (*ResourceEventHandlerMock) OnDelete ¶
func (_m *ResourceEventHandlerMock) OnDelete(obj interface{})
OnDelete provides a mock function with given fields: obj
func (*ResourceEventHandlerMock) OnUpdate ¶
func (_m *ResourceEventHandlerMock) OnUpdate(oldObj interface{}, newObj interface{})
OnUpdate provides a mock function with given fields: oldObj, newObj
type ResourceEventHandlerMock_Expecter ¶
type ResourceEventHandlerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceEventHandlerMock_Expecter) OnAdd ¶
func (_e *ResourceEventHandlerMock_Expecter) OnAdd(obj interface{}, isInInitialList interface{}) *ResourceEventHandlerMock_OnAdd_Call
OnAdd is a helper method to define mock.On call
- obj interface{}
- isInInitialList bool
func (*ResourceEventHandlerMock_Expecter) OnDelete ¶
func (_e *ResourceEventHandlerMock_Expecter) OnDelete(obj interface{}) *ResourceEventHandlerMock_OnDelete_Call
OnDelete is a helper method to define mock.On call
- obj interface{}
func (*ResourceEventHandlerMock_Expecter) OnUpdate ¶
func (_e *ResourceEventHandlerMock_Expecter) OnUpdate(oldObj interface{}, newObj interface{}) *ResourceEventHandlerMock_OnUpdate_Call
OnUpdate is a helper method to define mock.On call
- oldObj interface{}
- newObj interface{}
type ResourceEventHandlerMock_OnAdd_Call ¶
ResourceEventHandlerMock_OnAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnAdd'
func (*ResourceEventHandlerMock_OnAdd_Call) Return ¶
func (_c *ResourceEventHandlerMock_OnAdd_Call) Return() *ResourceEventHandlerMock_OnAdd_Call
func (*ResourceEventHandlerMock_OnAdd_Call) Run ¶
func (_c *ResourceEventHandlerMock_OnAdd_Call) Run(run func(obj interface{}, isInInitialList bool)) *ResourceEventHandlerMock_OnAdd_Call
func (*ResourceEventHandlerMock_OnAdd_Call) RunAndReturn ¶
func (_c *ResourceEventHandlerMock_OnAdd_Call) RunAndReturn(run func(interface{}, bool)) *ResourceEventHandlerMock_OnAdd_Call
type ResourceEventHandlerMock_OnDelete_Call ¶
ResourceEventHandlerMock_OnDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDelete'
func (*ResourceEventHandlerMock_OnDelete_Call) Return ¶
func (_c *ResourceEventHandlerMock_OnDelete_Call) Return() *ResourceEventHandlerMock_OnDelete_Call
func (*ResourceEventHandlerMock_OnDelete_Call) Run ¶
func (_c *ResourceEventHandlerMock_OnDelete_Call) Run(run func(obj interface{})) *ResourceEventHandlerMock_OnDelete_Call
func (*ResourceEventHandlerMock_OnDelete_Call) RunAndReturn ¶
func (_c *ResourceEventHandlerMock_OnDelete_Call) RunAndReturn(run func(interface{})) *ResourceEventHandlerMock_OnDelete_Call
type ResourceEventHandlerMock_OnUpdate_Call ¶
ResourceEventHandlerMock_OnUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnUpdate'
func (*ResourceEventHandlerMock_OnUpdate_Call) Return ¶
func (_c *ResourceEventHandlerMock_OnUpdate_Call) Return() *ResourceEventHandlerMock_OnUpdate_Call
func (*ResourceEventHandlerMock_OnUpdate_Call) Run ¶
func (_c *ResourceEventHandlerMock_OnUpdate_Call) Run(run func(oldObj interface{}, newObj interface{})) *ResourceEventHandlerMock_OnUpdate_Call
func (*ResourceEventHandlerMock_OnUpdate_Call) RunAndReturn ¶
func (_c *ResourceEventHandlerMock_OnUpdate_Call) RunAndReturn(run func(interface{}, interface{})) *ResourceEventHandlerMock_OnUpdate_Call
type RoundTripperMock ¶
RoundTripperMock is an autogenerated mock type for the RoundTripper type
func NewRoundTripperMock ¶
func NewRoundTripperMock(t interface { mock.TestingT Cleanup(func()) }) *RoundTripperMock
NewRoundTripperMock creates a new instance of RoundTripperMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RoundTripperMock) EXPECT ¶
func (_m *RoundTripperMock) EXPECT() *RoundTripperMock_Expecter
type RoundTripperMock_Expecter ¶
type RoundTripperMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RoundTripperMock_Expecter) RoundTrip ¶
func (_e *RoundTripperMock_Expecter) RoundTrip(_a0 interface{}) *RoundTripperMock_RoundTrip_Call
RoundTrip is a helper method to define mock.On call
- _a0 *http.Request
type RoundTripperMock_RoundTrip_Call ¶
RoundTripperMock_RoundTrip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoundTrip'
func (*RoundTripperMock_RoundTrip_Call) Return ¶
func (_c *RoundTripperMock_RoundTrip_Call) Return(_a0 *http.Response, _a1 error) *RoundTripperMock_RoundTrip_Call
func (*RoundTripperMock_RoundTrip_Call) Run ¶
func (_c *RoundTripperMock_RoundTrip_Call) Run(run func(_a0 *http.Request)) *RoundTripperMock_RoundTrip_Call
func (*RoundTripperMock_RoundTrip_Call) RunAndReturn ¶
func (_c *RoundTripperMock_RoundTrip_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *RoundTripperMock_RoundTrip_Call
type RuntimeControllerMock ¶
RuntimeControllerMock is an autogenerated mock type for the Controller type
func NewRuntimeControllerMock ¶
func NewRuntimeControllerMock(t interface { mock.TestingT Cleanup(func()) }) *RuntimeControllerMock
NewRuntimeControllerMock creates a new instance of RuntimeControllerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RuntimeControllerMock) EXPECT ¶
func (_m *RuntimeControllerMock) EXPECT() *RuntimeControllerMock_Expecter
func (*RuntimeControllerMock) GetLogger ¶
func (_m *RuntimeControllerMock) GetLogger() logr.Logger
GetLogger provides a mock function with given fields:
func (*RuntimeControllerMock) Reconcile ¶
func (_m *RuntimeControllerMock) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)
Reconcile provides a mock function with given fields: _a0, _a1
func (*RuntimeControllerMock) Start ¶
func (_m *RuntimeControllerMock) Start(ctx context.Context) error
Start provides a mock function with given fields: ctx
func (*RuntimeControllerMock) Watch ¶
func (_m *RuntimeControllerMock) Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error
Watch provides a mock function with given fields: src, eventhandler, predicates
type RuntimeControllerMock_Expecter ¶
type RuntimeControllerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RuntimeControllerMock_Expecter) GetLogger ¶
func (_e *RuntimeControllerMock_Expecter) GetLogger() *RuntimeControllerMock_GetLogger_Call
GetLogger is a helper method to define mock.On call
func (*RuntimeControllerMock_Expecter) Reconcile ¶
func (_e *RuntimeControllerMock_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *RuntimeControllerMock_Reconcile_Call
Reconcile is a helper method to define mock.On call
- _a0 context.Context
- _a1 reconcile.Request
func (*RuntimeControllerMock_Expecter) Start ¶
func (_e *RuntimeControllerMock_Expecter) Start(ctx interface{}) *RuntimeControllerMock_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*RuntimeControllerMock_Expecter) Watch ¶
func (_e *RuntimeControllerMock_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *RuntimeControllerMock_Watch_Call
Watch is a helper method to define mock.On call
- src source.Source
- eventhandler handler.EventHandler
- predicates ...predicate.Predicate
type RuntimeControllerMock_GetLogger_Call ¶
RuntimeControllerMock_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'
func (*RuntimeControllerMock_GetLogger_Call) Return ¶
func (_c *RuntimeControllerMock_GetLogger_Call) Return(_a0 logr.Logger) *RuntimeControllerMock_GetLogger_Call
func (*RuntimeControllerMock_GetLogger_Call) Run ¶
func (_c *RuntimeControllerMock_GetLogger_Call) Run(run func()) *RuntimeControllerMock_GetLogger_Call
func (*RuntimeControllerMock_GetLogger_Call) RunAndReturn ¶
func (_c *RuntimeControllerMock_GetLogger_Call) RunAndReturn(run func() logr.Logger) *RuntimeControllerMock_GetLogger_Call
type RuntimeControllerMock_Reconcile_Call ¶
RuntimeControllerMock_Reconcile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reconcile'
func (*RuntimeControllerMock_Reconcile_Call) Return ¶
func (_c *RuntimeControllerMock_Reconcile_Call) Return(_a0 reconcile.Result, _a1 error) *RuntimeControllerMock_Reconcile_Call
func (*RuntimeControllerMock_Reconcile_Call) Run ¶
func (_c *RuntimeControllerMock_Reconcile_Call) Run(run func(_a0 context.Context, _a1 reconcile.Request)) *RuntimeControllerMock_Reconcile_Call
func (*RuntimeControllerMock_Reconcile_Call) RunAndReturn ¶
func (_c *RuntimeControllerMock_Reconcile_Call) RunAndReturn(run func(context.Context, reconcile.Request) (reconcile.Result, error)) *RuntimeControllerMock_Reconcile_Call
type RuntimeControllerMock_Start_Call ¶
RuntimeControllerMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*RuntimeControllerMock_Start_Call) Return ¶
func (_c *RuntimeControllerMock_Start_Call) Return(_a0 error) *RuntimeControllerMock_Start_Call
func (*RuntimeControllerMock_Start_Call) Run ¶
func (_c *RuntimeControllerMock_Start_Call) Run(run func(ctx context.Context)) *RuntimeControllerMock_Start_Call
func (*RuntimeControllerMock_Start_Call) RunAndReturn ¶
func (_c *RuntimeControllerMock_Start_Call) RunAndReturn(run func(context.Context) error) *RuntimeControllerMock_Start_Call
type RuntimeControllerMock_Watch_Call ¶
RuntimeControllerMock_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*RuntimeControllerMock_Watch_Call) Return ¶
func (_c *RuntimeControllerMock_Watch_Call) Return(_a0 error) *RuntimeControllerMock_Watch_Call
func (*RuntimeControllerMock_Watch_Call) Run ¶
func (_c *RuntimeControllerMock_Watch_Call) Run(run func(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate)) *RuntimeControllerMock_Watch_Call
func (*RuntimeControllerMock_Watch_Call) RunAndReturn ¶
func (_c *RuntimeControllerMock_Watch_Call) RunAndReturn(run func(source.Source, handler.EventHandler, ...predicate.Predicate) error) *RuntimeControllerMock_Watch_Call
type StatFSMock ¶
StatFSMock is an autogenerated mock type for the StatFS type
func NewStatFSMock ¶
func NewStatFSMock(t interface { mock.TestingT Cleanup(func()) }) *StatFSMock
NewStatFSMock creates a new instance of StatFSMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StatFSMock) EXPECT ¶
func (_m *StatFSMock) EXPECT() *StatFSMock_Expecter
type StatFSMock_Expecter ¶
type StatFSMock_Expecter struct {
// contains filtered or unexported fields
}
func (*StatFSMock_Expecter) Open ¶
func (_e *StatFSMock_Expecter) Open(name interface{}) *StatFSMock_Open_Call
Open is a helper method to define mock.On call
- name string
func (*StatFSMock_Expecter) Stat ¶
func (_e *StatFSMock_Expecter) Stat(name interface{}) *StatFSMock_Stat_Call
Stat is a helper method to define mock.On call
- name string
type StatFSMock_Open_Call ¶
StatFSMock_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*StatFSMock_Open_Call) Return ¶
func (_c *StatFSMock_Open_Call) Return(_a0 fs.File, _a1 error) *StatFSMock_Open_Call
func (*StatFSMock_Open_Call) Run ¶
func (_c *StatFSMock_Open_Call) Run(run func(name string)) *StatFSMock_Open_Call
func (*StatFSMock_Open_Call) RunAndReturn ¶
func (_c *StatFSMock_Open_Call) RunAndReturn(run func(string) (fs.File, error)) *StatFSMock_Open_Call
type StatFSMock_Stat_Call ¶
StatFSMock_Stat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stat'
func (*StatFSMock_Stat_Call) Return ¶
func (_c *StatFSMock_Stat_Call) Return(_a0 fs.FileInfo, _a1 error) *StatFSMock_Stat_Call
func (*StatFSMock_Stat_Call) Run ¶
func (_c *StatFSMock_Stat_Call) Run(run func(name string)) *StatFSMock_Stat_Call
func (*StatFSMock_Stat_Call) RunAndReturn ¶
func (_c *StatFSMock_Stat_Call) RunAndReturn(run func(string) (fs.FileInfo, error)) *StatFSMock_Stat_Call
type SyncingSourceMock ¶
SyncingSourceMock is an autogenerated mock type for the SyncingSource type
func NewSyncingSourceMock ¶
func NewSyncingSourceMock(t interface { mock.TestingT Cleanup(func()) }) *SyncingSourceMock
NewSyncingSourceMock creates a new instance of SyncingSourceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SyncingSourceMock) EXPECT ¶
func (_m *SyncingSourceMock) EXPECT() *SyncingSourceMock_Expecter
func (*SyncingSourceMock) Start ¶
func (_m *SyncingSourceMock) Start(_a0 context.Context, _a1 handler.EventHandler, _a2 workqueue.RateLimitingInterface, _a3 ...predicate.Predicate) error
Start provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*SyncingSourceMock) WaitForSync ¶
func (_m *SyncingSourceMock) WaitForSync(ctx context.Context) error
WaitForSync provides a mock function with given fields: ctx
type SyncingSourceMock_Expecter ¶
type SyncingSourceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*SyncingSourceMock_Expecter) Start ¶
func (_e *SyncingSourceMock_Expecter) Start(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 ...interface{}) *SyncingSourceMock_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
- _a1 handler.EventHandler
- _a2 workqueue.RateLimitingInterface
- _a3 ...predicate.Predicate
func (*SyncingSourceMock_Expecter) WaitForSync ¶
func (_e *SyncingSourceMock_Expecter) WaitForSync(ctx interface{}) *SyncingSourceMock_WaitForSync_Call
WaitForSync is a helper method to define mock.On call
- ctx context.Context
type SyncingSourceMock_Start_Call ¶
SyncingSourceMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*SyncingSourceMock_Start_Call) Return ¶
func (_c *SyncingSourceMock_Start_Call) Return(_a0 error) *SyncingSourceMock_Start_Call
func (*SyncingSourceMock_Start_Call) Run ¶
func (_c *SyncingSourceMock_Start_Call) Run(run func(_a0 context.Context, _a1 handler.EventHandler, _a2 workqueue.RateLimitingInterface, _a3 ...predicate.Predicate)) *SyncingSourceMock_Start_Call
func (*SyncingSourceMock_Start_Call) RunAndReturn ¶
func (_c *SyncingSourceMock_Start_Call) RunAndReturn(run func(context.Context, handler.EventHandler, workqueue.RateLimitingInterface, ...predicate.Predicate) error) *SyncingSourceMock_Start_Call
type SyncingSourceMock_WaitForSync_Call ¶
SyncingSourceMock_WaitForSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForSync'
func (*SyncingSourceMock_WaitForSync_Call) Return ¶
func (_c *SyncingSourceMock_WaitForSync_Call) Return(_a0 error) *SyncingSourceMock_WaitForSync_Call
func (*SyncingSourceMock_WaitForSync_Call) Run ¶
func (_c *SyncingSourceMock_WaitForSync_Call) Run(run func(ctx context.Context)) *SyncingSourceMock_WaitForSync_Call
func (*SyncingSourceMock_WaitForSync_Call) RunAndReturn ¶
func (_c *SyncingSourceMock_WaitForSync_Call) RunAndReturn(run func(context.Context) error) *SyncingSourceMock_WaitForSync_Call