Documentation ¶
Index ¶
- type ComponentStatusControllerMock
- func (mock *ComponentStatusControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ComponentStatusControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ComponentStatusControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ComponentStatusControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ComponentStatusHandlerFunc)
- func (mock *ComponentStatusControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) Enqueue(namespace string, name string)
- func (mock *ComponentStatusControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ComponentStatusControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) Generic() controller.GenericController
- func (mock *ComponentStatusControllerMock) GenericCalls() []struct{}
- func (mock *ComponentStatusControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ComponentStatusControllerMock) InformerCalls() []struct{}
- func (mock *ComponentStatusControllerMock) Lister() v1a.ComponentStatusLister
- func (mock *ComponentStatusControllerMock) ListerCalls() []struct{}
- func (mock *ComponentStatusControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ComponentStatusControllerMock) StartCalls() []struct{ ... }
- func (mock *ComponentStatusControllerMock) Sync(ctx context.Context) error
- func (mock *ComponentStatusControllerMock) SyncCalls() []struct{ ... }
- type ComponentStatusInterfaceMock
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ComponentStatusInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ComponentStatusInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ComponentStatusInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ComponentStatusHandlerFunc)
- func (mock *ComponentStatusInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ComponentStatusLifecycle)
- func (mock *ComponentStatusInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) Controller() v1a.ComponentStatusController
- func (mock *ComponentStatusInterfaceMock) ControllerCalls() []struct{}
- func (mock *ComponentStatusInterfaceMock) Create(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error)
- func (mock *ComponentStatusInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ComponentStatusInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ComponentStatusInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ComponentStatusInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ComponentStatus, error)
- func (mock *ComponentStatusInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ComponentStatus, error)
- func (mock *ComponentStatusInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) List(opts v1b.ListOptions) (*v1a.ComponentStatusList, error)
- func (mock *ComponentStatusInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error)
- func (mock *ComponentStatusInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ComponentStatusInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ComponentStatusInterfaceMock) Update(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error)
- func (mock *ComponentStatusInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ComponentStatusInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ComponentStatusInterfaceMock) WatchCalls() []struct{ ... }
- type ComponentStatusListerMock
- func (mock *ComponentStatusListerMock) Get(namespace string, name string) (*v1.ComponentStatus, error)
- func (mock *ComponentStatusListerMock) GetCalls() []struct{ ... }
- func (mock *ComponentStatusListerMock) List(namespace string, selector labels.Selector) ([]*v1.ComponentStatus, error)
- func (mock *ComponentStatusListerMock) ListCalls() []struct{ ... }
- type ComponentStatusesGetterMock
- type ConfigMapControllerMock
- func (mock *ConfigMapControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ConfigMapControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ConfigMapControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ConfigMapControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ConfigMapHandlerFunc)
- func (mock *ConfigMapControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Enqueue(namespace string, name string)
- func (mock *ConfigMapControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ConfigMapControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Generic() controller.GenericController
- func (mock *ConfigMapControllerMock) GenericCalls() []struct{}
- func (mock *ConfigMapControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ConfigMapControllerMock) InformerCalls() []struct{}
- func (mock *ConfigMapControllerMock) Lister() v1a.ConfigMapLister
- func (mock *ConfigMapControllerMock) ListerCalls() []struct{}
- func (mock *ConfigMapControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ConfigMapControllerMock) StartCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Sync(ctx context.Context) error
- func (mock *ConfigMapControllerMock) SyncCalls() []struct{ ... }
- type ConfigMapInterfaceMock
- func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ConfigMapInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ConfigMapInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ConfigMapInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ConfigMapInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ConfigMapHandlerFunc)
- func (mock *ConfigMapInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ConfigMapLifecycle)
- func (mock *ConfigMapInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) Controller() v1a.ConfigMapController
- func (mock *ConfigMapInterfaceMock) ControllerCalls() []struct{}
- func (mock *ConfigMapInterfaceMock) Create(in1 *v1.ConfigMap) (*v1.ConfigMap, error)
- func (mock *ConfigMapInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ConfigMapInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ConfigMapInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ConfigMapInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ConfigMap, error)
- func (mock *ConfigMapInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ConfigMap, error)
- func (mock *ConfigMapInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) List(opts v1b.ListOptions) (*v1a.ConfigMapList, error)
- func (mock *ConfigMapInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
- func (mock *ConfigMapInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ConfigMapInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ConfigMapInterfaceMock) Update(in1 *v1.ConfigMap) (*v1.ConfigMap, error)
- func (mock *ConfigMapInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ConfigMapInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ConfigMapInterfaceMock) WatchCalls() []struct{ ... }
- type ConfigMapListerMock
- func (mock *ConfigMapListerMock) Get(namespace string, name string) (*v1.ConfigMap, error)
- func (mock *ConfigMapListerMock) GetCalls() []struct{ ... }
- func (mock *ConfigMapListerMock) List(namespace string, selector labels.Selector) ([]*v1.ConfigMap, error)
- func (mock *ConfigMapListerMock) ListCalls() []struct{ ... }
- type ConfigMapsGetterMock
- type EndpointsControllerMock
- func (mock *EndpointsControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EndpointsControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *EndpointsControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EndpointsControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) AddHandler(ctx context.Context, name string, handler v1a.EndpointsHandlerFunc)
- func (mock *EndpointsControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) Enqueue(namespace string, name string)
- func (mock *EndpointsControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *EndpointsControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) Generic() controller.GenericController
- func (mock *EndpointsControllerMock) GenericCalls() []struct{}
- func (mock *EndpointsControllerMock) Informer() cache.SharedIndexInformer
- func (mock *EndpointsControllerMock) InformerCalls() []struct{}
- func (mock *EndpointsControllerMock) Lister() v1a.EndpointsLister
- func (mock *EndpointsControllerMock) ListerCalls() []struct{}
- func (mock *EndpointsControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *EndpointsControllerMock) StartCalls() []struct{ ... }
- func (mock *EndpointsControllerMock) Sync(ctx context.Context) error
- func (mock *EndpointsControllerMock) SyncCalls() []struct{ ... }
- type EndpointsGetterMock
- type EndpointsInterfaceMock
- func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *EndpointsInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *EndpointsInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EndpointsInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EndpointsInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.EndpointsHandlerFunc)
- func (mock *EndpointsInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.EndpointsLifecycle)
- func (mock *EndpointsInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) Controller() v1a.EndpointsController
- func (mock *EndpointsInterfaceMock) ControllerCalls() []struct{}
- func (mock *EndpointsInterfaceMock) Create(in1 *v1.Endpoints) (*v1.Endpoints, error)
- func (mock *EndpointsInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *EndpointsInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *EndpointsInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *EndpointsInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Endpoints, error)
- func (mock *EndpointsInterfaceMock) GetCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Endpoints, error)
- func (mock *EndpointsInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) List(opts v1b.ListOptions) (*v1a.EndpointsList, error)
- func (mock *EndpointsInterfaceMock) ListCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error)
- func (mock *EndpointsInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *EndpointsInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *EndpointsInterfaceMock) Update(in1 *v1.Endpoints) (*v1.Endpoints, error)
- func (mock *EndpointsInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *EndpointsInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *EndpointsInterfaceMock) WatchCalls() []struct{ ... }
- type EndpointsListerMock
- func (mock *EndpointsListerMock) Get(namespace string, name string) (*v1.Endpoints, error)
- func (mock *EndpointsListerMock) GetCalls() []struct{ ... }
- func (mock *EndpointsListerMock) List(namespace string, selector labels.Selector) ([]*v1.Endpoints, error)
- func (mock *EndpointsListerMock) ListCalls() []struct{ ... }
- type EventControllerMock
- func (mock *EventControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EventControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *EventControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *EventControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *EventControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EventControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *EventControllerMock) AddHandler(ctx context.Context, name string, handler v1a.EventHandlerFunc)
- func (mock *EventControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *EventControllerMock) Enqueue(namespace string, name string)
- func (mock *EventControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *EventControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *EventControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *EventControllerMock) Generic() controller.GenericController
- func (mock *EventControllerMock) GenericCalls() []struct{}
- func (mock *EventControllerMock) Informer() cache.SharedIndexInformer
- func (mock *EventControllerMock) InformerCalls() []struct{}
- func (mock *EventControllerMock) Lister() v1a.EventLister
- func (mock *EventControllerMock) ListerCalls() []struct{}
- func (mock *EventControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *EventControllerMock) StartCalls() []struct{ ... }
- func (mock *EventControllerMock) Sync(ctx context.Context) error
- func (mock *EventControllerMock) SyncCalls() []struct{ ... }
- type EventInterfaceMock
- func (mock *EventInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EventInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *EventInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *EventInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *EventInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EventInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *EventInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.EventHandlerFunc)
- func (mock *EventInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *EventInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.EventLifecycle)
- func (mock *EventInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *EventInterfaceMock) Controller() v1a.EventController
- func (mock *EventInterfaceMock) ControllerCalls() []struct{}
- func (mock *EventInterfaceMock) Create(in1 *v1.Event) (*v1.Event, error)
- func (mock *EventInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *EventInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *EventInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *EventInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *EventInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *EventInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *EventInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *EventInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Event, error)
- func (mock *EventInterfaceMock) GetCalls() []struct{ ... }
- func (mock *EventInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Event, error)
- func (mock *EventInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *EventInterfaceMock) List(opts v1b.ListOptions) (*v1a.EventList, error)
- func (mock *EventInterfaceMock) ListCalls() []struct{ ... }
- func (mock *EventInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EventList, error)
- func (mock *EventInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *EventInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *EventInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *EventInterfaceMock) Update(in1 *v1.Event) (*v1.Event, error)
- func (mock *EventInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *EventInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *EventInterfaceMock) WatchCalls() []struct{ ... }
- type EventListerMock
- type EventsGetterMock
- type LimitRangeControllerMock
- func (mock *LimitRangeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *LimitRangeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *LimitRangeControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *LimitRangeControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) AddHandler(ctx context.Context, name string, handler v1a.LimitRangeHandlerFunc)
- func (mock *LimitRangeControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) Enqueue(namespace string, name string)
- func (mock *LimitRangeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *LimitRangeControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) Generic() controller.GenericController
- func (mock *LimitRangeControllerMock) GenericCalls() []struct{}
- func (mock *LimitRangeControllerMock) Informer() cache.SharedIndexInformer
- func (mock *LimitRangeControllerMock) InformerCalls() []struct{}
- func (mock *LimitRangeControllerMock) Lister() v1a.LimitRangeLister
- func (mock *LimitRangeControllerMock) ListerCalls() []struct{}
- func (mock *LimitRangeControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *LimitRangeControllerMock) StartCalls() []struct{ ... }
- func (mock *LimitRangeControllerMock) Sync(ctx context.Context) error
- func (mock *LimitRangeControllerMock) SyncCalls() []struct{ ... }
- type LimitRangeInterfaceMock
- func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *LimitRangeInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *LimitRangeInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *LimitRangeInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *LimitRangeInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.LimitRangeHandlerFunc)
- func (mock *LimitRangeInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.LimitRangeLifecycle)
- func (mock *LimitRangeInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) Controller() v1a.LimitRangeController
- func (mock *LimitRangeInterfaceMock) ControllerCalls() []struct{}
- func (mock *LimitRangeInterfaceMock) Create(in1 *v1.LimitRange) (*v1.LimitRange, error)
- func (mock *LimitRangeInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *LimitRangeInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *LimitRangeInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *LimitRangeInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.LimitRange, error)
- func (mock *LimitRangeInterfaceMock) GetCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.LimitRange, error)
- func (mock *LimitRangeInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) List(opts v1b.ListOptions) (*v1a.LimitRangeList, error)
- func (mock *LimitRangeInterfaceMock) ListCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error)
- func (mock *LimitRangeInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *LimitRangeInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *LimitRangeInterfaceMock) Update(in1 *v1.LimitRange) (*v1.LimitRange, error)
- func (mock *LimitRangeInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *LimitRangeInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *LimitRangeInterfaceMock) WatchCalls() []struct{ ... }
- type LimitRangeListerMock
- func (mock *LimitRangeListerMock) Get(namespace string, name string) (*v1.LimitRange, error)
- func (mock *LimitRangeListerMock) GetCalls() []struct{ ... }
- func (mock *LimitRangeListerMock) List(namespace string, selector labels.Selector) ([]*v1.LimitRange, error)
- func (mock *LimitRangeListerMock) ListCalls() []struct{ ... }
- type LimitRangesGetterMock
- type NamespaceControllerMock
- func (mock *NamespaceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NamespaceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespaceControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NamespaceControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) AddHandler(ctx context.Context, name string, handler v1a.NamespaceHandlerFunc)
- func (mock *NamespaceControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespaceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *NamespaceControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) Generic() controller.GenericController
- func (mock *NamespaceControllerMock) GenericCalls() []struct{}
- func (mock *NamespaceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespaceControllerMock) InformerCalls() []struct{}
- func (mock *NamespaceControllerMock) Lister() v1a.NamespaceLister
- func (mock *NamespaceControllerMock) ListerCalls() []struct{}
- func (mock *NamespaceControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespaceControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespaceControllerMock) Sync(ctx context.Context) error
- func (mock *NamespaceControllerMock) SyncCalls() []struct{ ... }
- type NamespaceInterfaceMock
- func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespaceInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespaceInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NamespaceInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NamespaceInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.NamespaceHandlerFunc)
- func (mock *NamespaceInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.NamespaceLifecycle)
- func (mock *NamespaceInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) Controller() v1a.NamespaceController
- func (mock *NamespaceInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespaceInterfaceMock) Create(in1 *v1.Namespace) (*v1.Namespace, error)
- func (mock *NamespaceInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *NamespaceInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *NamespaceInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *NamespaceInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Namespace, error)
- func (mock *NamespaceInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Namespace, error)
- func (mock *NamespaceInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) List(opts v1b.ListOptions) (*v1a.NamespaceList, error)
- func (mock *NamespaceInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error)
- func (mock *NamespaceInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespaceInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespaceInterfaceMock) Update(in1 *v1.Namespace) (*v1.Namespace, error)
- func (mock *NamespaceInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespaceInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *NamespaceInterfaceMock) WatchCalls() []struct{ ... }
- type NamespaceListerMock
- func (mock *NamespaceListerMock) Get(namespace string, name string) (*v1.Namespace, error)
- func (mock *NamespaceListerMock) GetCalls() []struct{ ... }
- func (mock *NamespaceListerMock) List(namespace string, selector labels.Selector) ([]*v1.Namespace, error)
- func (mock *NamespaceListerMock) ListCalls() []struct{ ... }
- type NamespacesGetterMock
- type NodeControllerMock
- func (mock *NodeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NodeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NodeControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NodeControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) AddHandler(ctx context.Context, name string, handler v1a.NodeHandlerFunc)
- func (mock *NodeControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) Enqueue(namespace string, name string)
- func (mock *NodeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *NodeControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *NodeControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NodeControllerMock) Generic() controller.GenericController
- func (mock *NodeControllerMock) GenericCalls() []struct{}
- func (mock *NodeControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NodeControllerMock) InformerCalls() []struct{}
- func (mock *NodeControllerMock) Lister() v1a.NodeLister
- func (mock *NodeControllerMock) ListerCalls() []struct{}
- func (mock *NodeControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NodeControllerMock) StartCalls() []struct{ ... }
- func (mock *NodeControllerMock) Sync(ctx context.Context) error
- func (mock *NodeControllerMock) SyncCalls() []struct{ ... }
- type NodeInterfaceMock
- func (mock *NodeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NodeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *NodeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.NodeHandlerFunc)
- func (mock *NodeInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NodeInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NodeInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *NodeInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.NodeHandlerFunc)
- func (mock *NodeInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.NodeLifecycle)
- func (mock *NodeInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) Controller() v1a.NodeController
- func (mock *NodeInterfaceMock) ControllerCalls() []struct{}
- func (mock *NodeInterfaceMock) Create(in1 *v1.Node) (*v1.Node, error)
- func (mock *NodeInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *NodeInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *NodeInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *NodeInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Node, error)
- func (mock *NodeInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Node, error)
- func (mock *NodeInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
- func (mock *NodeInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error)
- func (mock *NodeInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NodeInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NodeInterfaceMock) Update(in1 *v1.Node) (*v1.Node, error)
- func (mock *NodeInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NodeInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *NodeInterfaceMock) WatchCalls() []struct{ ... }
- type NodeListerMock
- type NodesGetterMock
- type PersistentVolumeClaimControllerMock
- func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PersistentVolumeClaimControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PersistentVolumeClaimHandlerFunc)
- func (mock *PersistentVolumeClaimControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) Enqueue(namespace string, name string)
- func (mock *PersistentVolumeClaimControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *PersistentVolumeClaimControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) Generic() controller.GenericController
- func (mock *PersistentVolumeClaimControllerMock) GenericCalls() []struct{}
- func (mock *PersistentVolumeClaimControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PersistentVolumeClaimControllerMock) InformerCalls() []struct{}
- func (mock *PersistentVolumeClaimControllerMock) Lister() v1a.PersistentVolumeClaimLister
- func (mock *PersistentVolumeClaimControllerMock) ListerCalls() []struct{}
- func (mock *PersistentVolumeClaimControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PersistentVolumeClaimControllerMock) StartCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimControllerMock) Sync(ctx context.Context) error
- func (mock *PersistentVolumeClaimControllerMock) SyncCalls() []struct{ ... }
- type PersistentVolumeClaimInterfaceMock
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PersistentVolumeClaimHandlerFunc)
- func (mock *PersistentVolumeClaimInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PersistentVolumeClaimLifecycle)
- func (mock *PersistentVolumeClaimInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) Controller() v1a.PersistentVolumeClaimController
- func (mock *PersistentVolumeClaimInterfaceMock) ControllerCalls() []struct{}
- func (mock *PersistentVolumeClaimInterfaceMock) Create(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *PersistentVolumeClaimInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *PersistentVolumeClaimInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PersistentVolumeClaimInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) List(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error)
- func (mock *PersistentVolumeClaimInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error)
- func (mock *PersistentVolumeClaimInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PersistentVolumeClaimInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PersistentVolumeClaimInterfaceMock) Update(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PersistentVolumeClaimInterfaceMock) WatchCalls() []struct{ ... }
- type PersistentVolumeClaimListerMock
- func (mock *PersistentVolumeClaimListerMock) Get(namespace string, name string) (*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimListerMock) GetCalls() []struct{ ... }
- func (mock *PersistentVolumeClaimListerMock) List(namespace string, selector labels.Selector) ([]*v1.PersistentVolumeClaim, error)
- func (mock *PersistentVolumeClaimListerMock) ListCalls() []struct{ ... }
- type PersistentVolumeClaimsGetterMock
- type PodControllerMock
- func (mock *PodControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PodControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PodControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc)
- func (mock *PodControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PodHandlerFunc)
- func (mock *PodControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) Enqueue(namespace string, name string)
- func (mock *PodControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *PodControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *PodControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PodControllerMock) Generic() controller.GenericController
- func (mock *PodControllerMock) GenericCalls() []struct{}
- func (mock *PodControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PodControllerMock) InformerCalls() []struct{}
- func (mock *PodControllerMock) Lister() v1a.PodLister
- func (mock *PodControllerMock) ListerCalls() []struct{}
- func (mock *PodControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PodControllerMock) StartCalls() []struct{ ... }
- func (mock *PodControllerMock) Sync(ctx context.Context) error
- func (mock *PodControllerMock) SyncCalls() []struct{ ... }
- type PodInterfaceMock
- func (mock *PodInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PodInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PodInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.PodHandlerFunc)
- func (mock *PodInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PodInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc)
- func (mock *PodInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PodInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PodHandlerFunc)
- func (mock *PodInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PodInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PodLifecycle)
- func (mock *PodInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PodInterfaceMock) Controller() v1a.PodController
- func (mock *PodInterfaceMock) ControllerCalls() []struct{}
- func (mock *PodInterfaceMock) Create(in1 *v1.Pod) (*v1.Pod, error)
- func (mock *PodInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PodInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *PodInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PodInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *PodInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PodInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PodInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PodInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Pod, error)
- func (mock *PodInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PodInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Pod, error)
- func (mock *PodInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PodInterfaceMock) List(opts v1b.ListOptions) (*v1a.PodList, error)
- func (mock *PodInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PodInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
- func (mock *PodInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *PodInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PodInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PodInterfaceMock) Update(in1 *v1.Pod) (*v1.Pod, error)
- func (mock *PodInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PodInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PodInterfaceMock) WatchCalls() []struct{ ... }
- type PodListerMock
- type PodsGetterMock
- type ReplicationControllerControllerMock
- func (mock *ReplicationControllerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ReplicationControllerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ReplicationControllerControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ReplicationControllerControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ReplicationControllerHandlerFunc)
- func (mock *ReplicationControllerControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) Enqueue(namespace string, name string)
- func (mock *ReplicationControllerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ReplicationControllerControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) Generic() controller.GenericController
- func (mock *ReplicationControllerControllerMock) GenericCalls() []struct{}
- func (mock *ReplicationControllerControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ReplicationControllerControllerMock) InformerCalls() []struct{}
- func (mock *ReplicationControllerControllerMock) Lister() v1a.ReplicationControllerLister
- func (mock *ReplicationControllerControllerMock) ListerCalls() []struct{}
- func (mock *ReplicationControllerControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ReplicationControllerControllerMock) StartCalls() []struct{ ... }
- func (mock *ReplicationControllerControllerMock) Sync(ctx context.Context) error
- func (mock *ReplicationControllerControllerMock) SyncCalls() []struct{ ... }
- type ReplicationControllerInterfaceMock
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ReplicationControllerInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ReplicationControllerHandlerFunc)
- func (mock *ReplicationControllerInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ReplicationControllerLifecycle)
- func (mock *ReplicationControllerInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) Controller() v1a.ReplicationControllerController
- func (mock *ReplicationControllerInterfaceMock) ControllerCalls() []struct{}
- func (mock *ReplicationControllerInterfaceMock) Create(in1 *v1.ReplicationController) (*v1.ReplicationController, error)
- func (mock *ReplicationControllerInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ReplicationControllerInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ReplicationControllerInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ReplicationControllerInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ReplicationController, error)
- func (mock *ReplicationControllerInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicationController, error)
- func (mock *ReplicationControllerInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) List(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error)
- func (mock *ReplicationControllerInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error)
- func (mock *ReplicationControllerInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ReplicationControllerInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ReplicationControllerInterfaceMock) Update(in1 *v1.ReplicationController) (*v1.ReplicationController, error)
- func (mock *ReplicationControllerInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ReplicationControllerInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ReplicationControllerInterfaceMock) WatchCalls() []struct{ ... }
- type ReplicationControllerListerMock
- func (mock *ReplicationControllerListerMock) Get(namespace string, name string) (*v1.ReplicationController, error)
- func (mock *ReplicationControllerListerMock) GetCalls() []struct{ ... }
- func (mock *ReplicationControllerListerMock) List(namespace string, selector labels.Selector) ([]*v1.ReplicationController, error)
- func (mock *ReplicationControllerListerMock) ListCalls() []struct{ ... }
- type ReplicationControllersGetterMock
- type ResourceQuotaControllerMock
- func (mock *ResourceQuotaControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ResourceQuotaControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ResourceQuotaControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ResourceQuotaControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ResourceQuotaHandlerFunc)
- func (mock *ResourceQuotaControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) Enqueue(namespace string, name string)
- func (mock *ResourceQuotaControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ResourceQuotaControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) Generic() controller.GenericController
- func (mock *ResourceQuotaControllerMock) GenericCalls() []struct{}
- func (mock *ResourceQuotaControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ResourceQuotaControllerMock) InformerCalls() []struct{}
- func (mock *ResourceQuotaControllerMock) Lister() v1a.ResourceQuotaLister
- func (mock *ResourceQuotaControllerMock) ListerCalls() []struct{}
- func (mock *ResourceQuotaControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ResourceQuotaControllerMock) StartCalls() []struct{ ... }
- func (mock *ResourceQuotaControllerMock) Sync(ctx context.Context) error
- func (mock *ResourceQuotaControllerMock) SyncCalls() []struct{ ... }
- type ResourceQuotaInterfaceMock
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ResourceQuotaInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ResourceQuotaHandlerFunc)
- func (mock *ResourceQuotaInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ResourceQuotaLifecycle)
- func (mock *ResourceQuotaInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) Controller() v1a.ResourceQuotaController
- func (mock *ResourceQuotaInterfaceMock) ControllerCalls() []struct{}
- func (mock *ResourceQuotaInterfaceMock) Create(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error)
- func (mock *ResourceQuotaInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ResourceQuotaInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ResourceQuotaInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ResourceQuotaInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ResourceQuota, error)
- func (mock *ResourceQuotaInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ResourceQuota, error)
- func (mock *ResourceQuotaInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) List(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error)
- func (mock *ResourceQuotaInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error)
- func (mock *ResourceQuotaInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ResourceQuotaInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ResourceQuotaInterfaceMock) Update(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error)
- func (mock *ResourceQuotaInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ResourceQuotaInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ResourceQuotaInterfaceMock) WatchCalls() []struct{ ... }
- type ResourceQuotaListerMock
- func (mock *ResourceQuotaListerMock) Get(namespace string, name string) (*v1.ResourceQuota, error)
- func (mock *ResourceQuotaListerMock) GetCalls() []struct{ ... }
- func (mock *ResourceQuotaListerMock) List(namespace string, selector labels.Selector) ([]*v1.ResourceQuota, error)
- func (mock *ResourceQuotaListerMock) ListCalls() []struct{ ... }
- type ResourceQuotasGetterMock
- type SecretControllerMock
- func (mock *SecretControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *SecretControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SecretControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *SecretControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) AddHandler(ctx context.Context, name string, handler v1a.SecretHandlerFunc)
- func (mock *SecretControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) Enqueue(namespace string, name string)
- func (mock *SecretControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *SecretControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *SecretControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SecretControllerMock) Generic() controller.GenericController
- func (mock *SecretControllerMock) GenericCalls() []struct{}
- func (mock *SecretControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SecretControllerMock) InformerCalls() []struct{}
- func (mock *SecretControllerMock) Lister() v1a.SecretLister
- func (mock *SecretControllerMock) ListerCalls() []struct{}
- func (mock *SecretControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SecretControllerMock) StartCalls() []struct{ ... }
- func (mock *SecretControllerMock) Sync(ctx context.Context) error
- func (mock *SecretControllerMock) SyncCalls() []struct{ ... }
- type SecretInterfaceMock
- func (mock *SecretInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *SecretInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *SecretInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SecretInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SecretInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *SecretInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *SecretInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.SecretHandlerFunc)
- func (mock *SecretInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.SecretLifecycle)
- func (mock *SecretInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) Controller() v1a.SecretController
- func (mock *SecretInterfaceMock) ControllerCalls() []struct{}
- func (mock *SecretInterfaceMock) Create(in1 *v1.Secret) (*v1.Secret, error)
- func (mock *SecretInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *SecretInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *SecretInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *SecretInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Secret, error)
- func (mock *SecretInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Secret, error)
- func (mock *SecretInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) List(opts v1b.ListOptions) (*v1a.SecretList, error)
- func (mock *SecretInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
- func (mock *SecretInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SecretInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SecretInterfaceMock) Update(in1 *v1.Secret) (*v1.Secret, error)
- func (mock *SecretInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SecretInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *SecretInterfaceMock) WatchCalls() []struct{ ... }
- type SecretListerMock
- func (mock *SecretListerMock) Get(namespace string, name string) (*v1.Secret, error)
- func (mock *SecretListerMock) GetCalls() []struct{ ... }
- func (mock *SecretListerMock) List(namespace string, selector labels.Selector) ([]*v1.Secret, error)
- func (mock *SecretListerMock) ListCalls() []struct{ ... }
- type SecretsGetterMock
- type ServiceAccountControllerMock
- func (mock *ServiceAccountControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceAccountControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceAccountControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceAccountHandlerFunc)
- func (mock *ServiceAccountControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceAccountControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ServiceAccountControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Generic() controller.GenericController
- func (mock *ServiceAccountControllerMock) GenericCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceAccountControllerMock) InformerCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Lister() v1a.ServiceAccountLister
- func (mock *ServiceAccountControllerMock) ListerCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ServiceAccountControllerMock) StartCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Sync(ctx context.Context) error
- func (mock *ServiceAccountControllerMock) SyncCalls() []struct{ ... }
- type ServiceAccountInterfaceMock
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceAccountInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceAccountInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceAccountHandlerFunc)
- func (mock *ServiceAccountInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceAccountLifecycle)
- func (mock *ServiceAccountInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) Controller() v1a.ServiceAccountController
- func (mock *ServiceAccountInterfaceMock) ControllerCalls() []struct{}
- func (mock *ServiceAccountInterfaceMock) Create(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error)
- func (mock *ServiceAccountInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ServiceAccountInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ServiceAccountInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceAccountInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ServiceAccount, error)
- func (mock *ServiceAccountInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceAccount, error)
- func (mock *ServiceAccountInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
- func (mock *ServiceAccountInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
- func (mock *ServiceAccountInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ServiceAccountInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ServiceAccountInterfaceMock) Update(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error)
- func (mock *ServiceAccountInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceAccountInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceAccountInterfaceMock) WatchCalls() []struct{ ... }
- type ServiceAccountListerMock
- func (mock *ServiceAccountListerMock) Get(namespace string, name string) (*v1.ServiceAccount, error)
- func (mock *ServiceAccountListerMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountListerMock) List(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error)
- func (mock *ServiceAccountListerMock) ListCalls() []struct{ ... }
- type ServiceAccountsGetterMock
- type ServiceControllerMock
- func (mock *ServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceHandlerFunc)
- func (mock *ServiceControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ServiceControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ServiceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Generic() controller.GenericController
- func (mock *ServiceControllerMock) GenericCalls() []struct{}
- func (mock *ServiceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceControllerMock) InformerCalls() []struct{}
- func (mock *ServiceControllerMock) Lister() v1a.ServiceLister
- func (mock *ServiceControllerMock) ListerCalls() []struct{}
- func (mock *ServiceControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ServiceControllerMock) StartCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Sync(ctx context.Context) error
- func (mock *ServiceControllerMock) SyncCalls() []struct{ ... }
- type ServiceInterfaceMock
- func (mock *ServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceHandlerFunc)
- func (mock *ServiceInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceLifecycle)
- func (mock *ServiceInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) Controller() v1a.ServiceController
- func (mock *ServiceInterfaceMock) ControllerCalls() []struct{}
- func (mock *ServiceInterfaceMock) Create(in1 *v1.Service) (*v1.Service, error)
- func (mock *ServiceInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ServiceInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ServiceInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Service, error)
- func (mock *ServiceInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Service, error)
- func (mock *ServiceInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceList, error)
- func (mock *ServiceInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
- func (mock *ServiceInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ServiceInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ServiceInterfaceMock) Update(in1 *v1.Service) (*v1.Service, error)
- func (mock *ServiceInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceInterfaceMock) WatchCalls() []struct{ ... }
- type ServiceListerMock
- func (mock *ServiceListerMock) Get(namespace string, name string) (*v1.Service, error)
- func (mock *ServiceListerMock) GetCalls() []struct{ ... }
- func (mock *ServiceListerMock) List(namespace string, selector labels.Selector) ([]*v1.Service, error)
- func (mock *ServiceListerMock) ListCalls() []struct{ ... }
- type ServicesGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentStatusControllerMock ¶
type ComponentStatusControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ComponentStatusHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ComponentStatusLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ComponentStatusControllerMock is a mock implementation of ComponentStatusController.
func TestSomethingThatUsesComponentStatusController(t *testing.T) { // make and configure a mocked ComponentStatusController mockedComponentStatusController := &ComponentStatusControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ComponentStatusHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ComponentStatusLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedComponentStatusController in code that requires ComponentStatusController // and then make assertions. }
func (*ComponentStatusControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ComponentStatusControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ComponentStatusControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ComponentStatusControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ComponentStatusHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedComponentStatusController.AddClusterScopedFeatureHandlerCalls())
func (*ComponentStatusControllerMock) AddClusterScopedHandler ¶
func (mock *ComponentStatusControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ComponentStatusHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ComponentStatusControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ComponentStatusControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ComponentStatusHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedComponentStatusController.AddClusterScopedHandlerCalls())
func (*ComponentStatusControllerMock) AddFeatureHandler ¶
func (mock *ComponentStatusControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ComponentStatusControllerMock) AddFeatureHandlerCalls ¶
func (mock *ComponentStatusControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ComponentStatusHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedComponentStatusController.AddFeatureHandlerCalls())
func (*ComponentStatusControllerMock) AddHandler ¶
func (mock *ComponentStatusControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ComponentStatusHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ComponentStatusControllerMock) AddHandlerCalls ¶
func (mock *ComponentStatusControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ComponentStatusHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedComponentStatusController.AddHandlerCalls())
func (*ComponentStatusControllerMock) Enqueue ¶
func (mock *ComponentStatusControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ComponentStatusControllerMock) EnqueueAfter ¶
func (mock *ComponentStatusControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ComponentStatusControllerMock) EnqueueAfterCalls ¶
func (mock *ComponentStatusControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedComponentStatusController.EnqueueAfterCalls())
func (*ComponentStatusControllerMock) EnqueueCalls ¶
func (mock *ComponentStatusControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedComponentStatusController.EnqueueCalls())
func (*ComponentStatusControllerMock) Generic ¶
func (mock *ComponentStatusControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ComponentStatusControllerMock) GenericCalls ¶
func (mock *ComponentStatusControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedComponentStatusController.GenericCalls())
func (*ComponentStatusControllerMock) Informer ¶
func (mock *ComponentStatusControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ComponentStatusControllerMock) InformerCalls ¶
func (mock *ComponentStatusControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedComponentStatusController.InformerCalls())
func (*ComponentStatusControllerMock) Lister ¶
func (mock *ComponentStatusControllerMock) Lister() v1a.ComponentStatusLister
Lister calls ListerFunc.
func (*ComponentStatusControllerMock) ListerCalls ¶
func (mock *ComponentStatusControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedComponentStatusController.ListerCalls())
func (*ComponentStatusControllerMock) Start ¶
func (mock *ComponentStatusControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ComponentStatusControllerMock) StartCalls ¶
func (mock *ComponentStatusControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedComponentStatusController.StartCalls())
func (*ComponentStatusControllerMock) Sync ¶
func (mock *ComponentStatusControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ComponentStatusControllerMock) SyncCalls ¶
func (mock *ComponentStatusControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedComponentStatusController.SyncCalls())
type ComponentStatusInterfaceMock ¶
type ComponentStatusInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ComponentStatusLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ComponentStatusHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ComponentStatusLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ComponentStatusController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ComponentStatus, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ComponentStatus, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ComponentStatusList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ComponentStatusInterfaceMock is a mock implementation of ComponentStatusInterface.
func TestSomethingThatUsesComponentStatusInterface(t *testing.T) { // make and configure a mocked ComponentStatusInterface mockedComponentStatusInterface := &ComponentStatusInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ComponentStatusLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ComponentStatusHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ComponentStatusLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ComponentStatusController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ComponentStatus, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ComponentStatus, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ComponentStatusList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedComponentStatusInterface in code that requires ComponentStatusInterface // and then make assertions. }
func (*ComponentStatusInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ComponentStatusInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ComponentStatusHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedComponentStatusInterface.AddClusterScopedFeatureHandlerCalls())
func (*ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ComponentStatusLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedComponentStatusInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ComponentStatusInterfaceMock) AddClusterScopedHandler ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ComponentStatusHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ComponentStatusInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ComponentStatusHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedComponentStatusInterface.AddClusterScopedHandlerCalls())
func (*ComponentStatusInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ComponentStatusLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ComponentStatusInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ComponentStatusInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ComponentStatusLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedComponentStatusInterface.AddClusterScopedLifecycleCalls())
func (*ComponentStatusInterfaceMock) AddFeatureHandler ¶
func (mock *ComponentStatusInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ComponentStatusHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ComponentStatusInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ComponentStatusInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ComponentStatusHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedComponentStatusInterface.AddFeatureHandlerCalls())
func (*ComponentStatusInterfaceMock) AddFeatureLifecycle ¶
func (mock *ComponentStatusInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ComponentStatusLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ComponentStatusInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ComponentStatusInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ComponentStatusLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedComponentStatusInterface.AddFeatureLifecycleCalls())
func (*ComponentStatusInterfaceMock) AddHandler ¶
func (mock *ComponentStatusInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ComponentStatusHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ComponentStatusInterfaceMock) AddHandlerCalls ¶
func (mock *ComponentStatusInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ComponentStatusHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedComponentStatusInterface.AddHandlerCalls())
func (*ComponentStatusInterfaceMock) AddLifecycle ¶
func (mock *ComponentStatusInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ComponentStatusLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ComponentStatusInterfaceMock) AddLifecycleCalls ¶
func (mock *ComponentStatusInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ComponentStatusLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedComponentStatusInterface.AddLifecycleCalls())
func (*ComponentStatusInterfaceMock) Controller ¶
func (mock *ComponentStatusInterfaceMock) Controller() v1a.ComponentStatusController
Controller calls ControllerFunc.
func (*ComponentStatusInterfaceMock) ControllerCalls ¶
func (mock *ComponentStatusInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedComponentStatusInterface.ControllerCalls())
func (*ComponentStatusInterfaceMock) Create ¶
func (mock *ComponentStatusInterfaceMock) Create(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error)
Create calls CreateFunc.
func (*ComponentStatusInterfaceMock) CreateCalls ¶
func (mock *ComponentStatusInterfaceMock) CreateCalls() []struct { In1 *v1.ComponentStatus }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedComponentStatusInterface.CreateCalls())
func (*ComponentStatusInterfaceMock) Delete ¶
func (mock *ComponentStatusInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ComponentStatusInterfaceMock) DeleteCalls ¶
func (mock *ComponentStatusInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedComponentStatusInterface.DeleteCalls())
func (*ComponentStatusInterfaceMock) DeleteCollection ¶
func (mock *ComponentStatusInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ComponentStatusInterfaceMock) DeleteCollectionCalls ¶
func (mock *ComponentStatusInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedComponentStatusInterface.DeleteCollectionCalls())
func (*ComponentStatusInterfaceMock) DeleteNamespaced ¶
func (mock *ComponentStatusInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ComponentStatusInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ComponentStatusInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedComponentStatusInterface.DeleteNamespacedCalls())
func (*ComponentStatusInterfaceMock) Get ¶
func (mock *ComponentStatusInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ComponentStatus, error)
Get calls GetFunc.
func (*ComponentStatusInterfaceMock) GetCalls ¶
func (mock *ComponentStatusInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedComponentStatusInterface.GetCalls())
func (*ComponentStatusInterfaceMock) GetNamespaced ¶
func (mock *ComponentStatusInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ComponentStatus, error)
GetNamespaced calls GetNamespacedFunc.
func (*ComponentStatusInterfaceMock) GetNamespacedCalls ¶
func (mock *ComponentStatusInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedComponentStatusInterface.GetNamespacedCalls())
func (*ComponentStatusInterfaceMock) List ¶
func (mock *ComponentStatusInterfaceMock) List(opts v1b.ListOptions) (*v1a.ComponentStatusList, error)
List calls ListFunc.
func (*ComponentStatusInterfaceMock) ListCalls ¶
func (mock *ComponentStatusInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedComponentStatusInterface.ListCalls())
func (*ComponentStatusInterfaceMock) ListNamespaced ¶
func (mock *ComponentStatusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ComponentStatusList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ComponentStatusInterfaceMock) ListNamespacedCalls ¶
func (mock *ComponentStatusInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedComponentStatusInterface.ListNamespacedCalls())
func (*ComponentStatusInterfaceMock) ObjectClient ¶
func (mock *ComponentStatusInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ComponentStatusInterfaceMock) ObjectClientCalls ¶
func (mock *ComponentStatusInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedComponentStatusInterface.ObjectClientCalls())
func (*ComponentStatusInterfaceMock) Update ¶
func (mock *ComponentStatusInterfaceMock) Update(in1 *v1.ComponentStatus) (*v1.ComponentStatus, error)
Update calls UpdateFunc.
func (*ComponentStatusInterfaceMock) UpdateCalls ¶
func (mock *ComponentStatusInterfaceMock) UpdateCalls() []struct { In1 *v1.ComponentStatus }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedComponentStatusInterface.UpdateCalls())
func (*ComponentStatusInterfaceMock) Watch ¶
func (mock *ComponentStatusInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ComponentStatusInterfaceMock) WatchCalls ¶
func (mock *ComponentStatusInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedComponentStatusInterface.WatchCalls())
type ComponentStatusListerMock ¶
type ComponentStatusListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ComponentStatus, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ComponentStatus, error) // contains filtered or unexported fields }
ComponentStatusListerMock is a mock implementation of ComponentStatusLister.
func TestSomethingThatUsesComponentStatusLister(t *testing.T) { // make and configure a mocked ComponentStatusLister mockedComponentStatusLister := &ComponentStatusListerMock{ GetFunc: func(namespace string, name string) (*v1.ComponentStatus, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ComponentStatus, error) { panic("mock out the List method") }, } // use mockedComponentStatusLister in code that requires ComponentStatusLister // and then make assertions. }
func (*ComponentStatusListerMock) Get ¶
func (mock *ComponentStatusListerMock) Get(namespace string, name string) (*v1.ComponentStatus, error)
Get calls GetFunc.
func (*ComponentStatusListerMock) GetCalls ¶
func (mock *ComponentStatusListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedComponentStatusLister.GetCalls())
func (*ComponentStatusListerMock) List ¶
func (mock *ComponentStatusListerMock) List(namespace string, selector labels.Selector) ([]*v1.ComponentStatus, error)
List calls ListFunc.
type ComponentStatusesGetterMock ¶
type ComponentStatusesGetterMock struct { // ComponentStatusesFunc mocks the ComponentStatuses method. ComponentStatusesFunc func(namespace string) v1a.ComponentStatusInterface // contains filtered or unexported fields }
ComponentStatusesGetterMock is a mock implementation of ComponentStatusesGetter.
func TestSomethingThatUsesComponentStatusesGetter(t *testing.T) { // make and configure a mocked ComponentStatusesGetter mockedComponentStatusesGetter := &ComponentStatusesGetterMock{ ComponentStatusesFunc: func(namespace string) v1a.ComponentStatusInterface { panic("mock out the ComponentStatuses method") }, } // use mockedComponentStatusesGetter in code that requires ComponentStatusesGetter // and then make assertions. }
func (*ComponentStatusesGetterMock) ComponentStatuses ¶
func (mock *ComponentStatusesGetterMock) ComponentStatuses(namespace string) v1a.ComponentStatusInterface
ComponentStatuses calls ComponentStatusesFunc.
func (*ComponentStatusesGetterMock) ComponentStatusesCalls ¶
func (mock *ComponentStatusesGetterMock) ComponentStatusesCalls() []struct { Namespace string }
ComponentStatusesCalls gets all the calls that were made to ComponentStatuses. Check the length with:
len(mockedComponentStatusesGetter.ComponentStatusesCalls())
type ConfigMapControllerMock ¶
type ConfigMapControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ConfigMapHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ConfigMapHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ConfigMapHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ConfigMapLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ConfigMapControllerMock is a mock implementation of ConfigMapController.
func TestSomethingThatUsesConfigMapController(t *testing.T) { // make and configure a mocked ConfigMapController mockedConfigMapController := &ConfigMapControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ConfigMapHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ConfigMapHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ConfigMapHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ConfigMapLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedConfigMapController in code that requires ConfigMapController // and then make assertions. }
func (*ConfigMapControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ConfigMapControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ConfigMapHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ConfigMapControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ConfigMapControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ConfigMapHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedConfigMapController.AddClusterScopedFeatureHandlerCalls())
func (*ConfigMapControllerMock) AddClusterScopedHandler ¶
func (mock *ConfigMapControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ConfigMapHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ConfigMapControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ConfigMapControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ConfigMapHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedConfigMapController.AddClusterScopedHandlerCalls())
func (*ConfigMapControllerMock) AddFeatureHandler ¶
func (mock *ConfigMapControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ConfigMapControllerMock) AddFeatureHandlerCalls ¶
func (mock *ConfigMapControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ConfigMapHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedConfigMapController.AddFeatureHandlerCalls())
func (*ConfigMapControllerMock) AddHandler ¶
func (mock *ConfigMapControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ConfigMapHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ConfigMapControllerMock) AddHandlerCalls ¶
func (mock *ConfigMapControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ConfigMapHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedConfigMapController.AddHandlerCalls())
func (*ConfigMapControllerMock) Enqueue ¶
func (mock *ConfigMapControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ConfigMapControllerMock) EnqueueAfter ¶
func (mock *ConfigMapControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ConfigMapControllerMock) EnqueueAfterCalls ¶
func (mock *ConfigMapControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedConfigMapController.EnqueueAfterCalls())
func (*ConfigMapControllerMock) EnqueueCalls ¶
func (mock *ConfigMapControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedConfigMapController.EnqueueCalls())
func (*ConfigMapControllerMock) Generic ¶
func (mock *ConfigMapControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ConfigMapControllerMock) GenericCalls ¶
func (mock *ConfigMapControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedConfigMapController.GenericCalls())
func (*ConfigMapControllerMock) Informer ¶
func (mock *ConfigMapControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ConfigMapControllerMock) InformerCalls ¶
func (mock *ConfigMapControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedConfigMapController.InformerCalls())
func (*ConfigMapControllerMock) Lister ¶
func (mock *ConfigMapControllerMock) Lister() v1a.ConfigMapLister
Lister calls ListerFunc.
func (*ConfigMapControllerMock) ListerCalls ¶
func (mock *ConfigMapControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedConfigMapController.ListerCalls())
func (*ConfigMapControllerMock) Start ¶
func (mock *ConfigMapControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ConfigMapControllerMock) StartCalls ¶
func (mock *ConfigMapControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedConfigMapController.StartCalls())
func (*ConfigMapControllerMock) Sync ¶
func (mock *ConfigMapControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ConfigMapControllerMock) SyncCalls ¶
func (mock *ConfigMapControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedConfigMapController.SyncCalls())
type ConfigMapInterfaceMock ¶
type ConfigMapInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ConfigMapHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ConfigMapHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ConfigMapLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ConfigMapHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ConfigMapLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ConfigMapController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ConfigMap) (*v1.ConfigMap, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ConfigMap, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ConfigMap, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ConfigMapList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ConfigMap) (*v1.ConfigMap, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ConfigMapInterfaceMock is a mock implementation of ConfigMapInterface.
func TestSomethingThatUsesConfigMapInterface(t *testing.T) { // make and configure a mocked ConfigMapInterface mockedConfigMapInterface := &ConfigMapInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ConfigMapHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ConfigMapHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ConfigMapLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ConfigMapHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ConfigMapLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ConfigMapController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ConfigMap) (*v1.ConfigMap, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ConfigMap, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ConfigMap, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ConfigMapList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ConfigMap) (*v1.ConfigMap, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedConfigMapInterface in code that requires ConfigMapInterface // and then make assertions. }
func (*ConfigMapInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ConfigMapHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ConfigMapInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ConfigMapHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedConfigMapInterface.AddClusterScopedFeatureHandlerCalls())
func (*ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ConfigMapLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedConfigMapInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ConfigMapInterfaceMock) AddClusterScopedHandler ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ConfigMapHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ConfigMapInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ConfigMapHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedConfigMapInterface.AddClusterScopedHandlerCalls())
func (*ConfigMapInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ConfigMapLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ConfigMapInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ConfigMapInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ConfigMapLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedConfigMapInterface.AddClusterScopedLifecycleCalls())
func (*ConfigMapInterfaceMock) AddFeatureHandler ¶
func (mock *ConfigMapInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ConfigMapHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ConfigMapInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ConfigMapInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ConfigMapHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedConfigMapInterface.AddFeatureHandlerCalls())
func (*ConfigMapInterfaceMock) AddFeatureLifecycle ¶
func (mock *ConfigMapInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ConfigMapLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ConfigMapInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ConfigMapInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ConfigMapLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedConfigMapInterface.AddFeatureLifecycleCalls())
func (*ConfigMapInterfaceMock) AddHandler ¶
func (mock *ConfigMapInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ConfigMapHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ConfigMapInterfaceMock) AddHandlerCalls ¶
func (mock *ConfigMapInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ConfigMapHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedConfigMapInterface.AddHandlerCalls())
func (*ConfigMapInterfaceMock) AddLifecycle ¶
func (mock *ConfigMapInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ConfigMapLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ConfigMapInterfaceMock) AddLifecycleCalls ¶
func (mock *ConfigMapInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ConfigMapLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedConfigMapInterface.AddLifecycleCalls())
func (*ConfigMapInterfaceMock) Controller ¶
func (mock *ConfigMapInterfaceMock) Controller() v1a.ConfigMapController
Controller calls ControllerFunc.
func (*ConfigMapInterfaceMock) ControllerCalls ¶
func (mock *ConfigMapInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedConfigMapInterface.ControllerCalls())
func (*ConfigMapInterfaceMock) CreateCalls ¶
func (mock *ConfigMapInterfaceMock) CreateCalls() []struct { In1 *v1.ConfigMap }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedConfigMapInterface.CreateCalls())
func (*ConfigMapInterfaceMock) Delete ¶
func (mock *ConfigMapInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ConfigMapInterfaceMock) DeleteCalls ¶
func (mock *ConfigMapInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedConfigMapInterface.DeleteCalls())
func (*ConfigMapInterfaceMock) DeleteCollection ¶
func (mock *ConfigMapInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ConfigMapInterfaceMock) DeleteCollectionCalls ¶
func (mock *ConfigMapInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedConfigMapInterface.DeleteCollectionCalls())
func (*ConfigMapInterfaceMock) DeleteNamespaced ¶
func (mock *ConfigMapInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ConfigMapInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ConfigMapInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedConfigMapInterface.DeleteNamespacedCalls())
func (*ConfigMapInterfaceMock) Get ¶
func (mock *ConfigMapInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ConfigMap, error)
Get calls GetFunc.
func (*ConfigMapInterfaceMock) GetCalls ¶
func (mock *ConfigMapInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedConfigMapInterface.GetCalls())
func (*ConfigMapInterfaceMock) GetNamespaced ¶
func (mock *ConfigMapInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ConfigMap, error)
GetNamespaced calls GetNamespacedFunc.
func (*ConfigMapInterfaceMock) GetNamespacedCalls ¶
func (mock *ConfigMapInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedConfigMapInterface.GetNamespacedCalls())
func (*ConfigMapInterfaceMock) List ¶
func (mock *ConfigMapInterfaceMock) List(opts v1b.ListOptions) (*v1a.ConfigMapList, error)
List calls ListFunc.
func (*ConfigMapInterfaceMock) ListCalls ¶
func (mock *ConfigMapInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedConfigMapInterface.ListCalls())
func (*ConfigMapInterfaceMock) ListNamespaced ¶
func (mock *ConfigMapInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ConfigMapInterfaceMock) ListNamespacedCalls ¶
func (mock *ConfigMapInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedConfigMapInterface.ListNamespacedCalls())
func (*ConfigMapInterfaceMock) ObjectClient ¶
func (mock *ConfigMapInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ConfigMapInterfaceMock) ObjectClientCalls ¶
func (mock *ConfigMapInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedConfigMapInterface.ObjectClientCalls())
func (*ConfigMapInterfaceMock) UpdateCalls ¶
func (mock *ConfigMapInterfaceMock) UpdateCalls() []struct { In1 *v1.ConfigMap }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedConfigMapInterface.UpdateCalls())
func (*ConfigMapInterfaceMock) Watch ¶
func (mock *ConfigMapInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ConfigMapInterfaceMock) WatchCalls ¶
func (mock *ConfigMapInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedConfigMapInterface.WatchCalls())
type ConfigMapListerMock ¶
type ConfigMapListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ConfigMap, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ConfigMap, error) // contains filtered or unexported fields }
ConfigMapListerMock is a mock implementation of ConfigMapLister.
func TestSomethingThatUsesConfigMapLister(t *testing.T) { // make and configure a mocked ConfigMapLister mockedConfigMapLister := &ConfigMapListerMock{ GetFunc: func(namespace string, name string) (*v1.ConfigMap, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ConfigMap, error) { panic("mock out the List method") }, } // use mockedConfigMapLister in code that requires ConfigMapLister // and then make assertions. }
func (*ConfigMapListerMock) GetCalls ¶
func (mock *ConfigMapListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedConfigMapLister.GetCalls())
type ConfigMapsGetterMock ¶
type ConfigMapsGetterMock struct { // ConfigMapsFunc mocks the ConfigMaps method. ConfigMapsFunc func(namespace string) v1a.ConfigMapInterface // contains filtered or unexported fields }
ConfigMapsGetterMock is a mock implementation of ConfigMapsGetter.
func TestSomethingThatUsesConfigMapsGetter(t *testing.T) { // make and configure a mocked ConfigMapsGetter mockedConfigMapsGetter := &ConfigMapsGetterMock{ ConfigMapsFunc: func(namespace string) v1a.ConfigMapInterface { panic("mock out the ConfigMaps method") }, } // use mockedConfigMapsGetter in code that requires ConfigMapsGetter // and then make assertions. }
func (*ConfigMapsGetterMock) ConfigMaps ¶
func (mock *ConfigMapsGetterMock) ConfigMaps(namespace string) v1a.ConfigMapInterface
ConfigMaps calls ConfigMapsFunc.
func (*ConfigMapsGetterMock) ConfigMapsCalls ¶
func (mock *ConfigMapsGetterMock) ConfigMapsCalls() []struct { Namespace string }
ConfigMapsCalls gets all the calls that were made to ConfigMaps. Check the length with:
len(mockedConfigMapsGetter.ConfigMapsCalls())
type EndpointsControllerMock ¶
type EndpointsControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EndpointsHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.EndpointsHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.EndpointsHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.EndpointsLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
EndpointsControllerMock is a mock implementation of EndpointsController.
func TestSomethingThatUsesEndpointsController(t *testing.T) { // make and configure a mocked EndpointsController mockedEndpointsController := &EndpointsControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EndpointsHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.EndpointsHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.EndpointsHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.EndpointsLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedEndpointsController in code that requires EndpointsController // and then make assertions. }
func (*EndpointsControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *EndpointsControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EndpointsHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*EndpointsControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *EndpointsControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.EndpointsHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedEndpointsController.AddClusterScopedFeatureHandlerCalls())
func (*EndpointsControllerMock) AddClusterScopedHandler ¶
func (mock *EndpointsControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.EndpointsHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*EndpointsControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *EndpointsControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.EndpointsHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedEndpointsController.AddClusterScopedHandlerCalls())
func (*EndpointsControllerMock) AddFeatureHandler ¶
func (mock *EndpointsControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*EndpointsControllerMock) AddFeatureHandlerCalls ¶
func (mock *EndpointsControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.EndpointsHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedEndpointsController.AddFeatureHandlerCalls())
func (*EndpointsControllerMock) AddHandler ¶
func (mock *EndpointsControllerMock) AddHandler(ctx context.Context, name string, handler v1a.EndpointsHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*EndpointsControllerMock) AddHandlerCalls ¶
func (mock *EndpointsControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.EndpointsHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedEndpointsController.AddHandlerCalls())
func (*EndpointsControllerMock) Enqueue ¶
func (mock *EndpointsControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*EndpointsControllerMock) EnqueueAfter ¶
func (mock *EndpointsControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*EndpointsControllerMock) EnqueueAfterCalls ¶
func (mock *EndpointsControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedEndpointsController.EnqueueAfterCalls())
func (*EndpointsControllerMock) EnqueueCalls ¶
func (mock *EndpointsControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedEndpointsController.EnqueueCalls())
func (*EndpointsControllerMock) Generic ¶
func (mock *EndpointsControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*EndpointsControllerMock) GenericCalls ¶
func (mock *EndpointsControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedEndpointsController.GenericCalls())
func (*EndpointsControllerMock) Informer ¶
func (mock *EndpointsControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*EndpointsControllerMock) InformerCalls ¶
func (mock *EndpointsControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedEndpointsController.InformerCalls())
func (*EndpointsControllerMock) Lister ¶
func (mock *EndpointsControllerMock) Lister() v1a.EndpointsLister
Lister calls ListerFunc.
func (*EndpointsControllerMock) ListerCalls ¶
func (mock *EndpointsControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedEndpointsController.ListerCalls())
func (*EndpointsControllerMock) Start ¶
func (mock *EndpointsControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*EndpointsControllerMock) StartCalls ¶
func (mock *EndpointsControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedEndpointsController.StartCalls())
func (*EndpointsControllerMock) Sync ¶
func (mock *EndpointsControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*EndpointsControllerMock) SyncCalls ¶
func (mock *EndpointsControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedEndpointsController.SyncCalls())
type EndpointsGetterMock ¶
type EndpointsGetterMock struct { // EndpointsFunc mocks the Endpoints method. EndpointsFunc func(namespace string) v1a.EndpointsInterface // contains filtered or unexported fields }
EndpointsGetterMock is a mock implementation of EndpointsGetter.
func TestSomethingThatUsesEndpointsGetter(t *testing.T) { // make and configure a mocked EndpointsGetter mockedEndpointsGetter := &EndpointsGetterMock{ EndpointsFunc: func(namespace string) v1a.EndpointsInterface { panic("mock out the Endpoints method") }, } // use mockedEndpointsGetter in code that requires EndpointsGetter // and then make assertions. }
func (*EndpointsGetterMock) Endpoints ¶
func (mock *EndpointsGetterMock) Endpoints(namespace string) v1a.EndpointsInterface
Endpoints calls EndpointsFunc.
func (*EndpointsGetterMock) EndpointsCalls ¶
func (mock *EndpointsGetterMock) EndpointsCalls() []struct { Namespace string }
EndpointsCalls gets all the calls that were made to Endpoints. Check the length with:
len(mockedEndpointsGetter.EndpointsCalls())
type EndpointsInterfaceMock ¶
type EndpointsInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EndpointsHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EndpointsLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.EndpointsHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.EndpointsLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EndpointsLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.EndpointsHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.EndpointsLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.EndpointsController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Endpoints) (*v1.Endpoints, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Endpoints, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Endpoints, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.EndpointsList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Endpoints) (*v1.Endpoints, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
EndpointsInterfaceMock is a mock implementation of EndpointsInterface.
func TestSomethingThatUsesEndpointsInterface(t *testing.T) { // make and configure a mocked EndpointsInterface mockedEndpointsInterface := &EndpointsInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EndpointsHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EndpointsLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.EndpointsHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.EndpointsLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EndpointsLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.EndpointsHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.EndpointsLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.EndpointsController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Endpoints) (*v1.Endpoints, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Endpoints, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Endpoints, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.EndpointsList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Endpoints) (*v1.Endpoints, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedEndpointsInterface in code that requires EndpointsInterface // and then make assertions. }
func (*EndpointsInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EndpointsHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*EndpointsInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.EndpointsHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedEndpointsInterface.AddClusterScopedFeatureHandlerCalls())
func (*EndpointsInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EndpointsLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*EndpointsInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.EndpointsLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedEndpointsInterface.AddClusterScopedFeatureLifecycleCalls())
func (*EndpointsInterfaceMock) AddClusterScopedHandler ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.EndpointsHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*EndpointsInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.EndpointsHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedEndpointsInterface.AddClusterScopedHandlerCalls())
func (*EndpointsInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.EndpointsLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*EndpointsInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *EndpointsInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.EndpointsLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedEndpointsInterface.AddClusterScopedLifecycleCalls())
func (*EndpointsInterfaceMock) AddFeatureHandler ¶
func (mock *EndpointsInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.EndpointsHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*EndpointsInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *EndpointsInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.EndpointsHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedEndpointsInterface.AddFeatureHandlerCalls())
func (*EndpointsInterfaceMock) AddFeatureLifecycle ¶
func (mock *EndpointsInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EndpointsLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*EndpointsInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *EndpointsInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.EndpointsLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedEndpointsInterface.AddFeatureLifecycleCalls())
func (*EndpointsInterfaceMock) AddHandler ¶
func (mock *EndpointsInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.EndpointsHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*EndpointsInterfaceMock) AddHandlerCalls ¶
func (mock *EndpointsInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.EndpointsHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedEndpointsInterface.AddHandlerCalls())
func (*EndpointsInterfaceMock) AddLifecycle ¶
func (mock *EndpointsInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.EndpointsLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*EndpointsInterfaceMock) AddLifecycleCalls ¶
func (mock *EndpointsInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.EndpointsLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedEndpointsInterface.AddLifecycleCalls())
func (*EndpointsInterfaceMock) Controller ¶
func (mock *EndpointsInterfaceMock) Controller() v1a.EndpointsController
Controller calls ControllerFunc.
func (*EndpointsInterfaceMock) ControllerCalls ¶
func (mock *EndpointsInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedEndpointsInterface.ControllerCalls())
func (*EndpointsInterfaceMock) CreateCalls ¶
func (mock *EndpointsInterfaceMock) CreateCalls() []struct { In1 *v1.Endpoints }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedEndpointsInterface.CreateCalls())
func (*EndpointsInterfaceMock) Delete ¶
func (mock *EndpointsInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*EndpointsInterfaceMock) DeleteCalls ¶
func (mock *EndpointsInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedEndpointsInterface.DeleteCalls())
func (*EndpointsInterfaceMock) DeleteCollection ¶
func (mock *EndpointsInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*EndpointsInterfaceMock) DeleteCollectionCalls ¶
func (mock *EndpointsInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedEndpointsInterface.DeleteCollectionCalls())
func (*EndpointsInterfaceMock) DeleteNamespaced ¶
func (mock *EndpointsInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*EndpointsInterfaceMock) DeleteNamespacedCalls ¶
func (mock *EndpointsInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedEndpointsInterface.DeleteNamespacedCalls())
func (*EndpointsInterfaceMock) Get ¶
func (mock *EndpointsInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Endpoints, error)
Get calls GetFunc.
func (*EndpointsInterfaceMock) GetCalls ¶
func (mock *EndpointsInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedEndpointsInterface.GetCalls())
func (*EndpointsInterfaceMock) GetNamespaced ¶
func (mock *EndpointsInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Endpoints, error)
GetNamespaced calls GetNamespacedFunc.
func (*EndpointsInterfaceMock) GetNamespacedCalls ¶
func (mock *EndpointsInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedEndpointsInterface.GetNamespacedCalls())
func (*EndpointsInterfaceMock) List ¶
func (mock *EndpointsInterfaceMock) List(opts v1b.ListOptions) (*v1a.EndpointsList, error)
List calls ListFunc.
func (*EndpointsInterfaceMock) ListCalls ¶
func (mock *EndpointsInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedEndpointsInterface.ListCalls())
func (*EndpointsInterfaceMock) ListNamespaced ¶
func (mock *EndpointsInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error)
ListNamespaced calls ListNamespacedFunc.
func (*EndpointsInterfaceMock) ListNamespacedCalls ¶
func (mock *EndpointsInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedEndpointsInterface.ListNamespacedCalls())
func (*EndpointsInterfaceMock) ObjectClient ¶
func (mock *EndpointsInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*EndpointsInterfaceMock) ObjectClientCalls ¶
func (mock *EndpointsInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedEndpointsInterface.ObjectClientCalls())
func (*EndpointsInterfaceMock) UpdateCalls ¶
func (mock *EndpointsInterfaceMock) UpdateCalls() []struct { In1 *v1.Endpoints }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedEndpointsInterface.UpdateCalls())
func (*EndpointsInterfaceMock) Watch ¶
func (mock *EndpointsInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*EndpointsInterfaceMock) WatchCalls ¶
func (mock *EndpointsInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedEndpointsInterface.WatchCalls())
type EndpointsListerMock ¶
type EndpointsListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Endpoints, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Endpoints, error) // contains filtered or unexported fields }
EndpointsListerMock is a mock implementation of EndpointsLister.
func TestSomethingThatUsesEndpointsLister(t *testing.T) { // make and configure a mocked EndpointsLister mockedEndpointsLister := &EndpointsListerMock{ GetFunc: func(namespace string, name string) (*v1.Endpoints, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Endpoints, error) { panic("mock out the List method") }, } // use mockedEndpointsLister in code that requires EndpointsLister // and then make assertions. }
func (*EndpointsListerMock) GetCalls ¶
func (mock *EndpointsListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedEndpointsLister.GetCalls())
type EventControllerMock ¶
type EventControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EventHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.EventHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.EventHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.EventLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
EventControllerMock is a mock implementation of EventController.
func TestSomethingThatUsesEventController(t *testing.T) { // make and configure a mocked EventController mockedEventController := &EventControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EventHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.EventHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.EventHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.EventLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedEventController in code that requires EventController // and then make assertions. }
func (*EventControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *EventControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.EventHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*EventControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *EventControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.EventHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedEventController.AddClusterScopedFeatureHandlerCalls())
func (*EventControllerMock) AddClusterScopedHandler ¶
func (mock *EventControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.EventHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*EventControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *EventControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.EventHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedEventController.AddClusterScopedHandlerCalls())
func (*EventControllerMock) AddFeatureHandler ¶
func (mock *EventControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*EventControllerMock) AddFeatureHandlerCalls ¶
func (mock *EventControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.EventHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedEventController.AddFeatureHandlerCalls())
func (*EventControllerMock) AddHandler ¶
func (mock *EventControllerMock) AddHandler(ctx context.Context, name string, handler v1a.EventHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*EventControllerMock) AddHandlerCalls ¶
func (mock *EventControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.EventHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedEventController.AddHandlerCalls())
func (*EventControllerMock) Enqueue ¶
func (mock *EventControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*EventControllerMock) EnqueueAfter ¶
func (mock *EventControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*EventControllerMock) EnqueueAfterCalls ¶
func (mock *EventControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedEventController.EnqueueAfterCalls())
func (*EventControllerMock) EnqueueCalls ¶
func (mock *EventControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedEventController.EnqueueCalls())
func (*EventControllerMock) Generic ¶
func (mock *EventControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*EventControllerMock) GenericCalls ¶
func (mock *EventControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedEventController.GenericCalls())
func (*EventControllerMock) Informer ¶
func (mock *EventControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*EventControllerMock) InformerCalls ¶
func (mock *EventControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedEventController.InformerCalls())
func (*EventControllerMock) Lister ¶
func (mock *EventControllerMock) Lister() v1a.EventLister
Lister calls ListerFunc.
func (*EventControllerMock) ListerCalls ¶
func (mock *EventControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedEventController.ListerCalls())
func (*EventControllerMock) Start ¶
func (mock *EventControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*EventControllerMock) StartCalls ¶
func (mock *EventControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedEventController.StartCalls())
func (*EventControllerMock) Sync ¶
func (mock *EventControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*EventControllerMock) SyncCalls ¶
func (mock *EventControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedEventController.SyncCalls())
type EventInterfaceMock ¶
type EventInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EventHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EventLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.EventHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.EventLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EventLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.EventHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.EventLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.EventController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Event) (*v1.Event, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Event, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Event, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.EventList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.EventList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Event) (*v1.Event, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
EventInterfaceMock is a mock implementation of EventInterface.
func TestSomethingThatUsesEventInterface(t *testing.T) { // make and configure a mocked EventInterface mockedEventInterface := &EventInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EventHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EventLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.EventHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.EventLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EventLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.EventHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.EventLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.EventController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Event) (*v1.Event, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Event, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Event, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.EventList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.EventList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Event) (*v1.Event, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedEventInterface in code that requires EventInterface // and then make assertions. }
func (*EventInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *EventInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.EventHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*EventInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *EventInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.EventHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedEventInterface.AddClusterScopedFeatureHandlerCalls())
func (*EventInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *EventInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.EventLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*EventInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *EventInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.EventLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedEventInterface.AddClusterScopedFeatureLifecycleCalls())
func (*EventInterfaceMock) AddClusterScopedHandler ¶
func (mock *EventInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.EventHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*EventInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *EventInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.EventHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedEventInterface.AddClusterScopedHandlerCalls())
func (*EventInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *EventInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.EventLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*EventInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *EventInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.EventLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedEventInterface.AddClusterScopedLifecycleCalls())
func (*EventInterfaceMock) AddFeatureHandler ¶
func (mock *EventInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.EventHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*EventInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *EventInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.EventHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedEventInterface.AddFeatureHandlerCalls())
func (*EventInterfaceMock) AddFeatureLifecycle ¶
func (mock *EventInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.EventLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*EventInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *EventInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.EventLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedEventInterface.AddFeatureLifecycleCalls())
func (*EventInterfaceMock) AddHandler ¶
func (mock *EventInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.EventHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*EventInterfaceMock) AddHandlerCalls ¶
func (mock *EventInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.EventHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedEventInterface.AddHandlerCalls())
func (*EventInterfaceMock) AddLifecycle ¶
func (mock *EventInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.EventLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*EventInterfaceMock) AddLifecycleCalls ¶
func (mock *EventInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.EventLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedEventInterface.AddLifecycleCalls())
func (*EventInterfaceMock) Controller ¶
func (mock *EventInterfaceMock) Controller() v1a.EventController
Controller calls ControllerFunc.
func (*EventInterfaceMock) ControllerCalls ¶
func (mock *EventInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedEventInterface.ControllerCalls())
func (*EventInterfaceMock) CreateCalls ¶
func (mock *EventInterfaceMock) CreateCalls() []struct { In1 *v1.Event }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedEventInterface.CreateCalls())
func (*EventInterfaceMock) Delete ¶
func (mock *EventInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*EventInterfaceMock) DeleteCalls ¶
func (mock *EventInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedEventInterface.DeleteCalls())
func (*EventInterfaceMock) DeleteCollection ¶
func (mock *EventInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*EventInterfaceMock) DeleteCollectionCalls ¶
func (mock *EventInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedEventInterface.DeleteCollectionCalls())
func (*EventInterfaceMock) DeleteNamespaced ¶
func (mock *EventInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*EventInterfaceMock) DeleteNamespacedCalls ¶
func (mock *EventInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedEventInterface.DeleteNamespacedCalls())
func (*EventInterfaceMock) Get ¶
func (mock *EventInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Event, error)
Get calls GetFunc.
func (*EventInterfaceMock) GetCalls ¶
func (mock *EventInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedEventInterface.GetCalls())
func (*EventInterfaceMock) GetNamespaced ¶
func (mock *EventInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Event, error)
GetNamespaced calls GetNamespacedFunc.
func (*EventInterfaceMock) GetNamespacedCalls ¶
func (mock *EventInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedEventInterface.GetNamespacedCalls())
func (*EventInterfaceMock) List ¶
func (mock *EventInterfaceMock) List(opts v1b.ListOptions) (*v1a.EventList, error)
List calls ListFunc.
func (*EventInterfaceMock) ListCalls ¶
func (mock *EventInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedEventInterface.ListCalls())
func (*EventInterfaceMock) ListNamespaced ¶
func (mock *EventInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.EventList, error)
ListNamespaced calls ListNamespacedFunc.
func (*EventInterfaceMock) ListNamespacedCalls ¶
func (mock *EventInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedEventInterface.ListNamespacedCalls())
func (*EventInterfaceMock) ObjectClient ¶
func (mock *EventInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*EventInterfaceMock) ObjectClientCalls ¶
func (mock *EventInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedEventInterface.ObjectClientCalls())
func (*EventInterfaceMock) UpdateCalls ¶
func (mock *EventInterfaceMock) UpdateCalls() []struct { In1 *v1.Event }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedEventInterface.UpdateCalls())
func (*EventInterfaceMock) Watch ¶
func (mock *EventInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*EventInterfaceMock) WatchCalls ¶
func (mock *EventInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedEventInterface.WatchCalls())
type EventListerMock ¶
type EventListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Event, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Event, error) // contains filtered or unexported fields }
EventListerMock is a mock implementation of EventLister.
func TestSomethingThatUsesEventLister(t *testing.T) { // make and configure a mocked EventLister mockedEventLister := &EventListerMock{ GetFunc: func(namespace string, name string) (*v1.Event, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Event, error) { panic("mock out the List method") }, } // use mockedEventLister in code that requires EventLister // and then make assertions. }
func (*EventListerMock) GetCalls ¶
func (mock *EventListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedEventLister.GetCalls())
type EventsGetterMock ¶
type EventsGetterMock struct { // EventsFunc mocks the Events method. EventsFunc func(namespace string) v1a.EventInterface // contains filtered or unexported fields }
EventsGetterMock is a mock implementation of EventsGetter.
func TestSomethingThatUsesEventsGetter(t *testing.T) { // make and configure a mocked EventsGetter mockedEventsGetter := &EventsGetterMock{ EventsFunc: func(namespace string) v1a.EventInterface { panic("mock out the Events method") }, } // use mockedEventsGetter in code that requires EventsGetter // and then make assertions. }
func (*EventsGetterMock) Events ¶
func (mock *EventsGetterMock) Events(namespace string) v1a.EventInterface
Events calls EventsFunc.
func (*EventsGetterMock) EventsCalls ¶
func (mock *EventsGetterMock) EventsCalls() []struct { Namespace string }
EventsCalls gets all the calls that were made to Events. Check the length with:
len(mockedEventsGetter.EventsCalls())
type LimitRangeControllerMock ¶
type LimitRangeControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.LimitRangeHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.LimitRangeHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.LimitRangeHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.LimitRangeLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
LimitRangeControllerMock is a mock implementation of LimitRangeController.
func TestSomethingThatUsesLimitRangeController(t *testing.T) { // make and configure a mocked LimitRangeController mockedLimitRangeController := &LimitRangeControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.LimitRangeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.LimitRangeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.LimitRangeHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.LimitRangeLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedLimitRangeController in code that requires LimitRangeController // and then make assertions. }
func (*LimitRangeControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *LimitRangeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.LimitRangeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*LimitRangeControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *LimitRangeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.LimitRangeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedLimitRangeController.AddClusterScopedFeatureHandlerCalls())
func (*LimitRangeControllerMock) AddClusterScopedHandler ¶
func (mock *LimitRangeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.LimitRangeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*LimitRangeControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *LimitRangeControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.LimitRangeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedLimitRangeController.AddClusterScopedHandlerCalls())
func (*LimitRangeControllerMock) AddFeatureHandler ¶
func (mock *LimitRangeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*LimitRangeControllerMock) AddFeatureHandlerCalls ¶
func (mock *LimitRangeControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.LimitRangeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedLimitRangeController.AddFeatureHandlerCalls())
func (*LimitRangeControllerMock) AddHandler ¶
func (mock *LimitRangeControllerMock) AddHandler(ctx context.Context, name string, handler v1a.LimitRangeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*LimitRangeControllerMock) AddHandlerCalls ¶
func (mock *LimitRangeControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.LimitRangeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedLimitRangeController.AddHandlerCalls())
func (*LimitRangeControllerMock) Enqueue ¶
func (mock *LimitRangeControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*LimitRangeControllerMock) EnqueueAfter ¶
func (mock *LimitRangeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*LimitRangeControllerMock) EnqueueAfterCalls ¶
func (mock *LimitRangeControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedLimitRangeController.EnqueueAfterCalls())
func (*LimitRangeControllerMock) EnqueueCalls ¶
func (mock *LimitRangeControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedLimitRangeController.EnqueueCalls())
func (*LimitRangeControllerMock) Generic ¶
func (mock *LimitRangeControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*LimitRangeControllerMock) GenericCalls ¶
func (mock *LimitRangeControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedLimitRangeController.GenericCalls())
func (*LimitRangeControllerMock) Informer ¶
func (mock *LimitRangeControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*LimitRangeControllerMock) InformerCalls ¶
func (mock *LimitRangeControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedLimitRangeController.InformerCalls())
func (*LimitRangeControllerMock) Lister ¶
func (mock *LimitRangeControllerMock) Lister() v1a.LimitRangeLister
Lister calls ListerFunc.
func (*LimitRangeControllerMock) ListerCalls ¶
func (mock *LimitRangeControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedLimitRangeController.ListerCalls())
func (*LimitRangeControllerMock) Start ¶
func (mock *LimitRangeControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*LimitRangeControllerMock) StartCalls ¶
func (mock *LimitRangeControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedLimitRangeController.StartCalls())
func (*LimitRangeControllerMock) Sync ¶
func (mock *LimitRangeControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*LimitRangeControllerMock) SyncCalls ¶
func (mock *LimitRangeControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedLimitRangeController.SyncCalls())
type LimitRangeInterfaceMock ¶
type LimitRangeInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.LimitRangeHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.LimitRangeHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.LimitRangeLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.LimitRangeHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.LimitRangeLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.LimitRangeController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.LimitRange) (*v1.LimitRange, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.LimitRange, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.LimitRange, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.LimitRangeList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.LimitRange) (*v1.LimitRange, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
LimitRangeInterfaceMock is a mock implementation of LimitRangeInterface.
func TestSomethingThatUsesLimitRangeInterface(t *testing.T) { // make and configure a mocked LimitRangeInterface mockedLimitRangeInterface := &LimitRangeInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.LimitRangeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.LimitRangeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.LimitRangeLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.LimitRangeHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.LimitRangeLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.LimitRangeController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.LimitRange) (*v1.LimitRange, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.LimitRange, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.LimitRange, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.LimitRangeList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.LimitRange) (*v1.LimitRange, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedLimitRangeInterface in code that requires LimitRangeInterface // and then make assertions. }
func (*LimitRangeInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.LimitRangeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*LimitRangeInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.LimitRangeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedLimitRangeInterface.AddClusterScopedFeatureHandlerCalls())
func (*LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.LimitRangeLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedLimitRangeInterface.AddClusterScopedFeatureLifecycleCalls())
func (*LimitRangeInterfaceMock) AddClusterScopedHandler ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.LimitRangeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*LimitRangeInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.LimitRangeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedLimitRangeInterface.AddClusterScopedHandlerCalls())
func (*LimitRangeInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.LimitRangeLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*LimitRangeInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *LimitRangeInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.LimitRangeLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedLimitRangeInterface.AddClusterScopedLifecycleCalls())
func (*LimitRangeInterfaceMock) AddFeatureHandler ¶
func (mock *LimitRangeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.LimitRangeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*LimitRangeInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *LimitRangeInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.LimitRangeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedLimitRangeInterface.AddFeatureHandlerCalls())
func (*LimitRangeInterfaceMock) AddFeatureLifecycle ¶
func (mock *LimitRangeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.LimitRangeLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*LimitRangeInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *LimitRangeInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.LimitRangeLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedLimitRangeInterface.AddFeatureLifecycleCalls())
func (*LimitRangeInterfaceMock) AddHandler ¶
func (mock *LimitRangeInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.LimitRangeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*LimitRangeInterfaceMock) AddHandlerCalls ¶
func (mock *LimitRangeInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.LimitRangeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedLimitRangeInterface.AddHandlerCalls())
func (*LimitRangeInterfaceMock) AddLifecycle ¶
func (mock *LimitRangeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.LimitRangeLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*LimitRangeInterfaceMock) AddLifecycleCalls ¶
func (mock *LimitRangeInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.LimitRangeLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedLimitRangeInterface.AddLifecycleCalls())
func (*LimitRangeInterfaceMock) Controller ¶
func (mock *LimitRangeInterfaceMock) Controller() v1a.LimitRangeController
Controller calls ControllerFunc.
func (*LimitRangeInterfaceMock) ControllerCalls ¶
func (mock *LimitRangeInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedLimitRangeInterface.ControllerCalls())
func (*LimitRangeInterfaceMock) Create ¶
func (mock *LimitRangeInterfaceMock) Create(in1 *v1.LimitRange) (*v1.LimitRange, error)
Create calls CreateFunc.
func (*LimitRangeInterfaceMock) CreateCalls ¶
func (mock *LimitRangeInterfaceMock) CreateCalls() []struct { In1 *v1.LimitRange }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedLimitRangeInterface.CreateCalls())
func (*LimitRangeInterfaceMock) Delete ¶
func (mock *LimitRangeInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*LimitRangeInterfaceMock) DeleteCalls ¶
func (mock *LimitRangeInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedLimitRangeInterface.DeleteCalls())
func (*LimitRangeInterfaceMock) DeleteCollection ¶
func (mock *LimitRangeInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*LimitRangeInterfaceMock) DeleteCollectionCalls ¶
func (mock *LimitRangeInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedLimitRangeInterface.DeleteCollectionCalls())
func (*LimitRangeInterfaceMock) DeleteNamespaced ¶
func (mock *LimitRangeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*LimitRangeInterfaceMock) DeleteNamespacedCalls ¶
func (mock *LimitRangeInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedLimitRangeInterface.DeleteNamespacedCalls())
func (*LimitRangeInterfaceMock) Get ¶
func (mock *LimitRangeInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.LimitRange, error)
Get calls GetFunc.
func (*LimitRangeInterfaceMock) GetCalls ¶
func (mock *LimitRangeInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedLimitRangeInterface.GetCalls())
func (*LimitRangeInterfaceMock) GetNamespaced ¶
func (mock *LimitRangeInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.LimitRange, error)
GetNamespaced calls GetNamespacedFunc.
func (*LimitRangeInterfaceMock) GetNamespacedCalls ¶
func (mock *LimitRangeInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedLimitRangeInterface.GetNamespacedCalls())
func (*LimitRangeInterfaceMock) List ¶
func (mock *LimitRangeInterfaceMock) List(opts v1b.ListOptions) (*v1a.LimitRangeList, error)
List calls ListFunc.
func (*LimitRangeInterfaceMock) ListCalls ¶
func (mock *LimitRangeInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedLimitRangeInterface.ListCalls())
func (*LimitRangeInterfaceMock) ListNamespaced ¶
func (mock *LimitRangeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.LimitRangeList, error)
ListNamespaced calls ListNamespacedFunc.
func (*LimitRangeInterfaceMock) ListNamespacedCalls ¶
func (mock *LimitRangeInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedLimitRangeInterface.ListNamespacedCalls())
func (*LimitRangeInterfaceMock) ObjectClient ¶
func (mock *LimitRangeInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*LimitRangeInterfaceMock) ObjectClientCalls ¶
func (mock *LimitRangeInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedLimitRangeInterface.ObjectClientCalls())
func (*LimitRangeInterfaceMock) Update ¶
func (mock *LimitRangeInterfaceMock) Update(in1 *v1.LimitRange) (*v1.LimitRange, error)
Update calls UpdateFunc.
func (*LimitRangeInterfaceMock) UpdateCalls ¶
func (mock *LimitRangeInterfaceMock) UpdateCalls() []struct { In1 *v1.LimitRange }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedLimitRangeInterface.UpdateCalls())
func (*LimitRangeInterfaceMock) Watch ¶
func (mock *LimitRangeInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*LimitRangeInterfaceMock) WatchCalls ¶
func (mock *LimitRangeInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedLimitRangeInterface.WatchCalls())
type LimitRangeListerMock ¶
type LimitRangeListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.LimitRange, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.LimitRange, error) // contains filtered or unexported fields }
LimitRangeListerMock is a mock implementation of LimitRangeLister.
func TestSomethingThatUsesLimitRangeLister(t *testing.T) { // make and configure a mocked LimitRangeLister mockedLimitRangeLister := &LimitRangeListerMock{ GetFunc: func(namespace string, name string) (*v1.LimitRange, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.LimitRange, error) { panic("mock out the List method") }, } // use mockedLimitRangeLister in code that requires LimitRangeLister // and then make assertions. }
func (*LimitRangeListerMock) Get ¶
func (mock *LimitRangeListerMock) Get(namespace string, name string) (*v1.LimitRange, error)
Get calls GetFunc.
func (*LimitRangeListerMock) GetCalls ¶
func (mock *LimitRangeListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedLimitRangeLister.GetCalls())
func (*LimitRangeListerMock) List ¶
func (mock *LimitRangeListerMock) List(namespace string, selector labels.Selector) ([]*v1.LimitRange, error)
List calls ListFunc.
type LimitRangesGetterMock ¶
type LimitRangesGetterMock struct { // LimitRangesFunc mocks the LimitRanges method. LimitRangesFunc func(namespace string) v1a.LimitRangeInterface // contains filtered or unexported fields }
LimitRangesGetterMock is a mock implementation of LimitRangesGetter.
func TestSomethingThatUsesLimitRangesGetter(t *testing.T) { // make and configure a mocked LimitRangesGetter mockedLimitRangesGetter := &LimitRangesGetterMock{ LimitRangesFunc: func(namespace string) v1a.LimitRangeInterface { panic("mock out the LimitRanges method") }, } // use mockedLimitRangesGetter in code that requires LimitRangesGetter // and then make assertions. }
func (*LimitRangesGetterMock) LimitRanges ¶
func (mock *LimitRangesGetterMock) LimitRanges(namespace string) v1a.LimitRangeInterface
LimitRanges calls LimitRangesFunc.
func (*LimitRangesGetterMock) LimitRangesCalls ¶
func (mock *LimitRangesGetterMock) LimitRangesCalls() []struct { Namespace string }
LimitRangesCalls gets all the calls that were made to LimitRanges. Check the length with:
len(mockedLimitRangesGetter.LimitRangesCalls())
type NamespaceControllerMock ¶
type NamespaceControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NamespaceHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.NamespaceHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.NamespaceHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.NamespaceLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespaceControllerMock is a mock implementation of NamespaceController.
func TestSomethingThatUsesNamespaceController(t *testing.T) { // make and configure a mocked NamespaceController mockedNamespaceController := &NamespaceControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NamespaceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.NamespaceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.NamespaceHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.NamespaceLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespaceController in code that requires NamespaceController // and then make assertions. }
func (*NamespaceControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *NamespaceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NamespaceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*NamespaceControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *NamespaceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.NamespaceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedNamespaceController.AddClusterScopedFeatureHandlerCalls())
func (*NamespaceControllerMock) AddClusterScopedHandler ¶
func (mock *NamespaceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.NamespaceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespaceControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespaceControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.NamespaceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespaceController.AddClusterScopedHandlerCalls())
func (*NamespaceControllerMock) AddFeatureHandler ¶
func (mock *NamespaceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*NamespaceControllerMock) AddFeatureHandlerCalls ¶
func (mock *NamespaceControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.NamespaceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedNamespaceController.AddFeatureHandlerCalls())
func (*NamespaceControllerMock) AddHandler ¶
func (mock *NamespaceControllerMock) AddHandler(ctx context.Context, name string, handler v1a.NamespaceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespaceControllerMock) AddHandlerCalls ¶
func (mock *NamespaceControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.NamespaceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespaceController.AddHandlerCalls())
func (*NamespaceControllerMock) Enqueue ¶
func (mock *NamespaceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespaceControllerMock) EnqueueAfter ¶
func (mock *NamespaceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*NamespaceControllerMock) EnqueueAfterCalls ¶
func (mock *NamespaceControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedNamespaceController.EnqueueAfterCalls())
func (*NamespaceControllerMock) EnqueueCalls ¶
func (mock *NamespaceControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespaceController.EnqueueCalls())
func (*NamespaceControllerMock) Generic ¶
func (mock *NamespaceControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespaceControllerMock) GenericCalls ¶
func (mock *NamespaceControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespaceController.GenericCalls())
func (*NamespaceControllerMock) Informer ¶
func (mock *NamespaceControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespaceControllerMock) InformerCalls ¶
func (mock *NamespaceControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespaceController.InformerCalls())
func (*NamespaceControllerMock) Lister ¶
func (mock *NamespaceControllerMock) Lister() v1a.NamespaceLister
Lister calls ListerFunc.
func (*NamespaceControllerMock) ListerCalls ¶
func (mock *NamespaceControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespaceController.ListerCalls())
func (*NamespaceControllerMock) Start ¶
func (mock *NamespaceControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespaceControllerMock) StartCalls ¶
func (mock *NamespaceControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespaceController.StartCalls())
func (*NamespaceControllerMock) Sync ¶
func (mock *NamespaceControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespaceControllerMock) SyncCalls ¶
func (mock *NamespaceControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespaceController.SyncCalls())
type NamespaceInterfaceMock ¶
type NamespaceInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NamespaceHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NamespaceLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.NamespaceHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.NamespaceLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NamespaceLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.NamespaceHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.NamespaceLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.NamespaceController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Namespace) (*v1.Namespace, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Namespace, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Namespace, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NamespaceList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Namespace) (*v1.Namespace, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespaceInterfaceMock is a mock implementation of NamespaceInterface.
func TestSomethingThatUsesNamespaceInterface(t *testing.T) { // make and configure a mocked NamespaceInterface mockedNamespaceInterface := &NamespaceInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NamespaceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NamespaceLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.NamespaceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.NamespaceLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NamespaceLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.NamespaceHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.NamespaceLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.NamespaceController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Namespace) (*v1.Namespace, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Namespace, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Namespace, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.NamespaceList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Namespace) (*v1.Namespace, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespaceInterface in code that requires NamespaceInterface // and then make assertions. }
func (*NamespaceInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NamespaceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*NamespaceInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.NamespaceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedNamespaceInterface.AddClusterScopedFeatureHandlerCalls())
func (*NamespaceInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NamespaceLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*NamespaceInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.NamespaceLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedNamespaceInterface.AddClusterScopedFeatureLifecycleCalls())
func (*NamespaceInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.NamespaceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespaceInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.NamespaceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespaceInterface.AddClusterScopedHandlerCalls())
func (*NamespaceInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.NamespaceLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespaceInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespaceInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.NamespaceLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespaceInterface.AddClusterScopedLifecycleCalls())
func (*NamespaceInterfaceMock) AddFeatureHandler ¶
func (mock *NamespaceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.NamespaceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*NamespaceInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *NamespaceInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.NamespaceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedNamespaceInterface.AddFeatureHandlerCalls())
func (*NamespaceInterfaceMock) AddFeatureLifecycle ¶
func (mock *NamespaceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NamespaceLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*NamespaceInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *NamespaceInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.NamespaceLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedNamespaceInterface.AddFeatureLifecycleCalls())
func (*NamespaceInterfaceMock) AddHandler ¶
func (mock *NamespaceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.NamespaceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespaceInterfaceMock) AddHandlerCalls ¶
func (mock *NamespaceInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.NamespaceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespaceInterface.AddHandlerCalls())
func (*NamespaceInterfaceMock) AddLifecycle ¶
func (mock *NamespaceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.NamespaceLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespaceInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespaceInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.NamespaceLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespaceInterface.AddLifecycleCalls())
func (*NamespaceInterfaceMock) Controller ¶
func (mock *NamespaceInterfaceMock) Controller() v1a.NamespaceController
Controller calls ControllerFunc.
func (*NamespaceInterfaceMock) ControllerCalls ¶
func (mock *NamespaceInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespaceInterface.ControllerCalls())
func (*NamespaceInterfaceMock) CreateCalls ¶
func (mock *NamespaceInterfaceMock) CreateCalls() []struct { In1 *v1.Namespace }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespaceInterface.CreateCalls())
func (*NamespaceInterfaceMock) Delete ¶
func (mock *NamespaceInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespaceInterfaceMock) DeleteCalls ¶
func (mock *NamespaceInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespaceInterface.DeleteCalls())
func (*NamespaceInterfaceMock) DeleteCollection ¶
func (mock *NamespaceInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespaceInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespaceInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespaceInterface.DeleteCollectionCalls())
func (*NamespaceInterfaceMock) DeleteNamespaced ¶
func (mock *NamespaceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespaceInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespaceInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespaceInterface.DeleteNamespacedCalls())
func (*NamespaceInterfaceMock) Get ¶
func (mock *NamespaceInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Namespace, error)
Get calls GetFunc.
func (*NamespaceInterfaceMock) GetCalls ¶
func (mock *NamespaceInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespaceInterface.GetCalls())
func (*NamespaceInterfaceMock) GetNamespaced ¶
func (mock *NamespaceInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Namespace, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespaceInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespaceInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespaceInterface.GetNamespacedCalls())
func (*NamespaceInterfaceMock) List ¶
func (mock *NamespaceInterfaceMock) List(opts v1b.ListOptions) (*v1a.NamespaceList, error)
List calls ListFunc.
func (*NamespaceInterfaceMock) ListCalls ¶
func (mock *NamespaceInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespaceInterface.ListCalls())
func (*NamespaceInterfaceMock) ListNamespaced ¶
func (mock *NamespaceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NamespaceList, error)
ListNamespaced calls ListNamespacedFunc.
func (*NamespaceInterfaceMock) ListNamespacedCalls ¶
func (mock *NamespaceInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedNamespaceInterface.ListNamespacedCalls())
func (*NamespaceInterfaceMock) ObjectClient ¶
func (mock *NamespaceInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespaceInterfaceMock) ObjectClientCalls ¶
func (mock *NamespaceInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespaceInterface.ObjectClientCalls())
func (*NamespaceInterfaceMock) UpdateCalls ¶
func (mock *NamespaceInterfaceMock) UpdateCalls() []struct { In1 *v1.Namespace }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespaceInterface.UpdateCalls())
func (*NamespaceInterfaceMock) Watch ¶
func (mock *NamespaceInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespaceInterfaceMock) WatchCalls ¶
func (mock *NamespaceInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespaceInterface.WatchCalls())
type NamespaceListerMock ¶
type NamespaceListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Namespace, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Namespace, error) // contains filtered or unexported fields }
NamespaceListerMock is a mock implementation of NamespaceLister.
func TestSomethingThatUsesNamespaceLister(t *testing.T) { // make and configure a mocked NamespaceLister mockedNamespaceLister := &NamespaceListerMock{ GetFunc: func(namespace string, name string) (*v1.Namespace, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Namespace, error) { panic("mock out the List method") }, } // use mockedNamespaceLister in code that requires NamespaceLister // and then make assertions. }
func (*NamespaceListerMock) GetCalls ¶
func (mock *NamespaceListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespaceLister.GetCalls())
type NamespacesGetterMock ¶
type NamespacesGetterMock struct { // NamespacesFunc mocks the Namespaces method. NamespacesFunc func(namespace string) v1a.NamespaceInterface // contains filtered or unexported fields }
NamespacesGetterMock is a mock implementation of NamespacesGetter.
func TestSomethingThatUsesNamespacesGetter(t *testing.T) { // make and configure a mocked NamespacesGetter mockedNamespacesGetter := &NamespacesGetterMock{ NamespacesFunc: func(namespace string) v1a.NamespaceInterface { panic("mock out the Namespaces method") }, } // use mockedNamespacesGetter in code that requires NamespacesGetter // and then make assertions. }
func (*NamespacesGetterMock) Namespaces ¶
func (mock *NamespacesGetterMock) Namespaces(namespace string) v1a.NamespaceInterface
Namespaces calls NamespacesFunc.
func (*NamespacesGetterMock) NamespacesCalls ¶
func (mock *NamespacesGetterMock) NamespacesCalls() []struct { Namespace string }
NamespacesCalls gets all the calls that were made to Namespaces. Check the length with:
len(mockedNamespacesGetter.NamespacesCalls())
type NodeControllerMock ¶
type NodeControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NodeHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.NodeHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.NodeHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.NodeLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NodeControllerMock is a mock implementation of NodeController.
func TestSomethingThatUsesNodeController(t *testing.T) { // make and configure a mocked NodeController mockedNodeController := &NodeControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NodeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.NodeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.NodeHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.NodeLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNodeController in code that requires NodeController // and then make assertions. }
func (*NodeControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *NodeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.NodeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*NodeControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *NodeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.NodeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedNodeController.AddClusterScopedFeatureHandlerCalls())
func (*NodeControllerMock) AddClusterScopedHandler ¶
func (mock *NodeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.NodeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NodeControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NodeControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.NodeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNodeController.AddClusterScopedHandlerCalls())
func (*NodeControllerMock) AddFeatureHandler ¶
func (mock *NodeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*NodeControllerMock) AddFeatureHandlerCalls ¶
func (mock *NodeControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.NodeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedNodeController.AddFeatureHandlerCalls())
func (*NodeControllerMock) AddHandler ¶
func (mock *NodeControllerMock) AddHandler(ctx context.Context, name string, handler v1a.NodeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NodeControllerMock) AddHandlerCalls ¶
func (mock *NodeControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.NodeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNodeController.AddHandlerCalls())
func (*NodeControllerMock) Enqueue ¶
func (mock *NodeControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NodeControllerMock) EnqueueAfter ¶
func (mock *NodeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*NodeControllerMock) EnqueueAfterCalls ¶
func (mock *NodeControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedNodeController.EnqueueAfterCalls())
func (*NodeControllerMock) EnqueueCalls ¶
func (mock *NodeControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNodeController.EnqueueCalls())
func (*NodeControllerMock) Generic ¶
func (mock *NodeControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NodeControllerMock) GenericCalls ¶
func (mock *NodeControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNodeController.GenericCalls())
func (*NodeControllerMock) Informer ¶
func (mock *NodeControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NodeControllerMock) InformerCalls ¶
func (mock *NodeControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNodeController.InformerCalls())
func (*NodeControllerMock) Lister ¶
func (mock *NodeControllerMock) Lister() v1a.NodeLister
Lister calls ListerFunc.
func (*NodeControllerMock) ListerCalls ¶
func (mock *NodeControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNodeController.ListerCalls())
func (*NodeControllerMock) Start ¶
func (mock *NodeControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NodeControllerMock) StartCalls ¶
func (mock *NodeControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNodeController.StartCalls())
func (*NodeControllerMock) Sync ¶
func (mock *NodeControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NodeControllerMock) SyncCalls ¶
func (mock *NodeControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNodeController.SyncCalls())
type NodeInterfaceMock ¶
type NodeInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NodeHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NodeLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.NodeHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.NodeLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NodeLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.NodeHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.NodeLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.NodeController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Node) (*v1.Node, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Node, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Node, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NodeList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Node) (*v1.Node, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NodeInterfaceMock is a mock implementation of NodeInterface.
func TestSomethingThatUsesNodeInterface(t *testing.T) { // make and configure a mocked NodeInterface mockedNodeInterface := &NodeInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NodeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NodeLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.NodeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.NodeLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NodeLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.NodeHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.NodeLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.NodeController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Node) (*v1.Node, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Node, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Node, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.NodeList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Node) (*v1.Node, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNodeInterface in code that requires NodeInterface // and then make assertions. }
func (*NodeInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *NodeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.NodeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*NodeInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *NodeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.NodeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedNodeInterface.AddClusterScopedFeatureHandlerCalls())
func (*NodeInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *NodeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.NodeLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*NodeInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *NodeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.NodeLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedNodeInterface.AddClusterScopedFeatureLifecycleCalls())
func (*NodeInterfaceMock) AddClusterScopedHandler ¶
func (mock *NodeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.NodeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NodeInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NodeInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.NodeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNodeInterface.AddClusterScopedHandlerCalls())
func (*NodeInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NodeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.NodeLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NodeInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NodeInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.NodeLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNodeInterface.AddClusterScopedLifecycleCalls())
func (*NodeInterfaceMock) AddFeatureHandler ¶
func (mock *NodeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.NodeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*NodeInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *NodeInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.NodeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedNodeInterface.AddFeatureHandlerCalls())
func (*NodeInterfaceMock) AddFeatureLifecycle ¶
func (mock *NodeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.NodeLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*NodeInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *NodeInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.NodeLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedNodeInterface.AddFeatureLifecycleCalls())
func (*NodeInterfaceMock) AddHandler ¶
func (mock *NodeInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.NodeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NodeInterfaceMock) AddHandlerCalls ¶
func (mock *NodeInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.NodeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNodeInterface.AddHandlerCalls())
func (*NodeInterfaceMock) AddLifecycle ¶
func (mock *NodeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.NodeLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NodeInterfaceMock) AddLifecycleCalls ¶
func (mock *NodeInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.NodeLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNodeInterface.AddLifecycleCalls())
func (*NodeInterfaceMock) Controller ¶
func (mock *NodeInterfaceMock) Controller() v1a.NodeController
Controller calls ControllerFunc.
func (*NodeInterfaceMock) ControllerCalls ¶
func (mock *NodeInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNodeInterface.ControllerCalls())
func (*NodeInterfaceMock) CreateCalls ¶
func (mock *NodeInterfaceMock) CreateCalls() []struct { In1 *v1.Node }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNodeInterface.CreateCalls())
func (*NodeInterfaceMock) Delete ¶
func (mock *NodeInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*NodeInterfaceMock) DeleteCalls ¶
func (mock *NodeInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNodeInterface.DeleteCalls())
func (*NodeInterfaceMock) DeleteCollection ¶
func (mock *NodeInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NodeInterfaceMock) DeleteCollectionCalls ¶
func (mock *NodeInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNodeInterface.DeleteCollectionCalls())
func (*NodeInterfaceMock) DeleteNamespaced ¶
func (mock *NodeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NodeInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NodeInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNodeInterface.DeleteNamespacedCalls())
func (*NodeInterfaceMock) Get ¶
func (mock *NodeInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Node, error)
Get calls GetFunc.
func (*NodeInterfaceMock) GetCalls ¶
func (mock *NodeInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNodeInterface.GetCalls())
func (*NodeInterfaceMock) GetNamespaced ¶
func (mock *NodeInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Node, error)
GetNamespaced calls GetNamespacedFunc.
func (*NodeInterfaceMock) GetNamespacedCalls ¶
func (mock *NodeInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNodeInterface.GetNamespacedCalls())
func (*NodeInterfaceMock) List ¶
func (mock *NodeInterfaceMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
List calls ListFunc.
func (*NodeInterfaceMock) ListCalls ¶
func (mock *NodeInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNodeInterface.ListCalls())
func (*NodeInterfaceMock) ListNamespaced ¶
func (mock *NodeInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.NodeList, error)
ListNamespaced calls ListNamespacedFunc.
func (*NodeInterfaceMock) ListNamespacedCalls ¶
func (mock *NodeInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedNodeInterface.ListNamespacedCalls())
func (*NodeInterfaceMock) ObjectClient ¶
func (mock *NodeInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NodeInterfaceMock) ObjectClientCalls ¶
func (mock *NodeInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNodeInterface.ObjectClientCalls())
func (*NodeInterfaceMock) UpdateCalls ¶
func (mock *NodeInterfaceMock) UpdateCalls() []struct { In1 *v1.Node }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNodeInterface.UpdateCalls())
func (*NodeInterfaceMock) Watch ¶
func (mock *NodeInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NodeInterfaceMock) WatchCalls ¶
func (mock *NodeInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNodeInterface.WatchCalls())
type NodeListerMock ¶
type NodeListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Node, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Node, error) // contains filtered or unexported fields }
NodeListerMock is a mock implementation of NodeLister.
func TestSomethingThatUsesNodeLister(t *testing.T) { // make and configure a mocked NodeLister mockedNodeLister := &NodeListerMock{ GetFunc: func(namespace string, name string) (*v1.Node, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Node, error) { panic("mock out the List method") }, } // use mockedNodeLister in code that requires NodeLister // and then make assertions. }
func (*NodeListerMock) GetCalls ¶
func (mock *NodeListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNodeLister.GetCalls())
type NodesGetterMock ¶
type NodesGetterMock struct { // NodesFunc mocks the Nodes method. NodesFunc func(namespace string) v1a.NodeInterface // contains filtered or unexported fields }
NodesGetterMock is a mock implementation of NodesGetter.
func TestSomethingThatUsesNodesGetter(t *testing.T) { // make and configure a mocked NodesGetter mockedNodesGetter := &NodesGetterMock{ NodesFunc: func(namespace string) v1a.NodeInterface { panic("mock out the Nodes method") }, } // use mockedNodesGetter in code that requires NodesGetter // and then make assertions. }
func (*NodesGetterMock) Nodes ¶
func (mock *NodesGetterMock) Nodes(namespace string) v1a.NodeInterface
Nodes calls NodesFunc.
func (*NodesGetterMock) NodesCalls ¶
func (mock *NodesGetterMock) NodesCalls() []struct { Namespace string }
NodesCalls gets all the calls that were made to Nodes. Check the length with:
len(mockedNodesGetter.NodesCalls())
type PersistentVolumeClaimControllerMock ¶
type PersistentVolumeClaimControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.PersistentVolumeClaimHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.PersistentVolumeClaimLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
PersistentVolumeClaimControllerMock is a mock implementation of PersistentVolumeClaimController.
func TestSomethingThatUsesPersistentVolumeClaimController(t *testing.T) { // make and configure a mocked PersistentVolumeClaimController mockedPersistentVolumeClaimController := &PersistentVolumeClaimControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.PersistentVolumeClaimLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedPersistentVolumeClaimController in code that requires PersistentVolumeClaimController // and then make assertions. }
func (*PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.PersistentVolumeClaimHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPersistentVolumeClaimController.AddClusterScopedFeatureHandlerCalls())
func (*PersistentVolumeClaimControllerMock) AddClusterScopedHandler ¶
func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.PersistentVolumeClaimHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PersistentVolumeClaimControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.PersistentVolumeClaimHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPersistentVolumeClaimController.AddClusterScopedHandlerCalls())
func (*PersistentVolumeClaimControllerMock) AddFeatureHandler ¶
func (mock *PersistentVolumeClaimControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PersistentVolumeClaimControllerMock) AddFeatureHandlerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PersistentVolumeClaimHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPersistentVolumeClaimController.AddFeatureHandlerCalls())
func (*PersistentVolumeClaimControllerMock) AddHandler ¶
func (mock *PersistentVolumeClaimControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PersistentVolumeClaimHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PersistentVolumeClaimControllerMock) AddHandlerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.PersistentVolumeClaimHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPersistentVolumeClaimController.AddHandlerCalls())
func (*PersistentVolumeClaimControllerMock) Enqueue ¶
func (mock *PersistentVolumeClaimControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PersistentVolumeClaimControllerMock) EnqueueAfter ¶
func (mock *PersistentVolumeClaimControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*PersistentVolumeClaimControllerMock) EnqueueAfterCalls ¶
func (mock *PersistentVolumeClaimControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedPersistentVolumeClaimController.EnqueueAfterCalls())
func (*PersistentVolumeClaimControllerMock) EnqueueCalls ¶
func (mock *PersistentVolumeClaimControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPersistentVolumeClaimController.EnqueueCalls())
func (*PersistentVolumeClaimControllerMock) Generic ¶
func (mock *PersistentVolumeClaimControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PersistentVolumeClaimControllerMock) GenericCalls ¶
func (mock *PersistentVolumeClaimControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPersistentVolumeClaimController.GenericCalls())
func (*PersistentVolumeClaimControllerMock) Informer ¶
func (mock *PersistentVolumeClaimControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PersistentVolumeClaimControllerMock) InformerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPersistentVolumeClaimController.InformerCalls())
func (*PersistentVolumeClaimControllerMock) Lister ¶
func (mock *PersistentVolumeClaimControllerMock) Lister() v1a.PersistentVolumeClaimLister
Lister calls ListerFunc.
func (*PersistentVolumeClaimControllerMock) ListerCalls ¶
func (mock *PersistentVolumeClaimControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPersistentVolumeClaimController.ListerCalls())
func (*PersistentVolumeClaimControllerMock) Start ¶
func (mock *PersistentVolumeClaimControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PersistentVolumeClaimControllerMock) StartCalls ¶
func (mock *PersistentVolumeClaimControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPersistentVolumeClaimController.StartCalls())
func (*PersistentVolumeClaimControllerMock) Sync ¶
func (mock *PersistentVolumeClaimControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PersistentVolumeClaimControllerMock) SyncCalls ¶
func (mock *PersistentVolumeClaimControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPersistentVolumeClaimController.SyncCalls())
type PersistentVolumeClaimInterfaceMock ¶
type PersistentVolumeClaimInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PersistentVolumeClaimLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.PersistentVolumeClaimHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.PersistentVolumeClaimLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.PersistentVolumeClaimController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PersistentVolumeClaimInterfaceMock is a mock implementation of PersistentVolumeClaimInterface.
func TestSomethingThatUsesPersistentVolumeClaimInterface(t *testing.T) { // make and configure a mocked PersistentVolumeClaimInterface mockedPersistentVolumeClaimInterface := &PersistentVolumeClaimInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PersistentVolumeClaimLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.PersistentVolumeClaimHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.PersistentVolumeClaimLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.PersistentVolumeClaimController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPersistentVolumeClaimInterface in code that requires PersistentVolumeClaimInterface // and then make assertions. }
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.PersistentVolumeClaimHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddClusterScopedFeatureHandlerCalls())
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.PersistentVolumeClaimLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddClusterScopedFeatureLifecycleCalls())
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedHandler ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.PersistentVolumeClaimHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.PersistentVolumeClaimHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddClusterScopedHandlerCalls())
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.PersistentVolumeClaimLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.PersistentVolumeClaimLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddClusterScopedLifecycleCalls())
func (*PersistentVolumeClaimInterfaceMock) AddFeatureHandler ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PersistentVolumeClaimHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PersistentVolumeClaimInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PersistentVolumeClaimHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddFeatureHandlerCalls())
func (*PersistentVolumeClaimInterfaceMock) AddFeatureLifecycle ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PersistentVolumeClaimLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*PersistentVolumeClaimInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.PersistentVolumeClaimLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddFeatureLifecycleCalls())
func (*PersistentVolumeClaimInterfaceMock) AddHandler ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PersistentVolumeClaimHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PersistentVolumeClaimInterfaceMock) AddHandlerCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.PersistentVolumeClaimHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddHandlerCalls())
func (*PersistentVolumeClaimInterfaceMock) AddLifecycle ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PersistentVolumeClaimLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PersistentVolumeClaimInterfaceMock) AddLifecycleCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.PersistentVolumeClaimLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPersistentVolumeClaimInterface.AddLifecycleCalls())
func (*PersistentVolumeClaimInterfaceMock) Controller ¶
func (mock *PersistentVolumeClaimInterfaceMock) Controller() v1a.PersistentVolumeClaimController
Controller calls ControllerFunc.
func (*PersistentVolumeClaimInterfaceMock) ControllerCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPersistentVolumeClaimInterface.ControllerCalls())
func (*PersistentVolumeClaimInterfaceMock) Create ¶
func (mock *PersistentVolumeClaimInterfaceMock) Create(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
Create calls CreateFunc.
func (*PersistentVolumeClaimInterfaceMock) CreateCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) CreateCalls() []struct { In1 *v1.PersistentVolumeClaim }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPersistentVolumeClaimInterface.CreateCalls())
func (*PersistentVolumeClaimInterfaceMock) Delete ¶
func (mock *PersistentVolumeClaimInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PersistentVolumeClaimInterfaceMock) DeleteCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPersistentVolumeClaimInterface.DeleteCalls())
func (*PersistentVolumeClaimInterfaceMock) DeleteCollection ¶
func (mock *PersistentVolumeClaimInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PersistentVolumeClaimInterfaceMock) DeleteCollectionCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPersistentVolumeClaimInterface.DeleteCollectionCalls())
func (*PersistentVolumeClaimInterfaceMock) DeleteNamespaced ¶
func (mock *PersistentVolumeClaimInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PersistentVolumeClaimInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPersistentVolumeClaimInterface.DeleteNamespacedCalls())
func (*PersistentVolumeClaimInterfaceMock) Get ¶
func (mock *PersistentVolumeClaimInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error)
Get calls GetFunc.
func (*PersistentVolumeClaimInterfaceMock) GetCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPersistentVolumeClaimInterface.GetCalls())
func (*PersistentVolumeClaimInterfaceMock) GetNamespaced ¶
func (mock *PersistentVolumeClaimInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.PersistentVolumeClaim, error)
GetNamespaced calls GetNamespacedFunc.
func (*PersistentVolumeClaimInterfaceMock) GetNamespacedCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPersistentVolumeClaimInterface.GetNamespacedCalls())
func (*PersistentVolumeClaimInterfaceMock) List ¶
func (mock *PersistentVolumeClaimInterfaceMock) List(opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error)
List calls ListFunc.
func (*PersistentVolumeClaimInterfaceMock) ListCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPersistentVolumeClaimInterface.ListCalls())
func (*PersistentVolumeClaimInterfaceMock) ListNamespaced ¶
func (mock *PersistentVolumeClaimInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error)
ListNamespaced calls ListNamespacedFunc.
func (*PersistentVolumeClaimInterfaceMock) ListNamespacedCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedPersistentVolumeClaimInterface.ListNamespacedCalls())
func (*PersistentVolumeClaimInterfaceMock) ObjectClient ¶
func (mock *PersistentVolumeClaimInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PersistentVolumeClaimInterfaceMock) ObjectClientCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPersistentVolumeClaimInterface.ObjectClientCalls())
func (*PersistentVolumeClaimInterfaceMock) Update ¶
func (mock *PersistentVolumeClaimInterfaceMock) Update(in1 *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
Update calls UpdateFunc.
func (*PersistentVolumeClaimInterfaceMock) UpdateCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) UpdateCalls() []struct { In1 *v1.PersistentVolumeClaim }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPersistentVolumeClaimInterface.UpdateCalls())
func (*PersistentVolumeClaimInterfaceMock) Watch ¶
func (mock *PersistentVolumeClaimInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PersistentVolumeClaimInterfaceMock) WatchCalls ¶
func (mock *PersistentVolumeClaimInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPersistentVolumeClaimInterface.WatchCalls())
type PersistentVolumeClaimListerMock ¶
type PersistentVolumeClaimListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.PersistentVolumeClaim, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.PersistentVolumeClaim, error) // contains filtered or unexported fields }
PersistentVolumeClaimListerMock is a mock implementation of PersistentVolumeClaimLister.
func TestSomethingThatUsesPersistentVolumeClaimLister(t *testing.T) { // make and configure a mocked PersistentVolumeClaimLister mockedPersistentVolumeClaimLister := &PersistentVolumeClaimListerMock{ GetFunc: func(namespace string, name string) (*v1.PersistentVolumeClaim, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.PersistentVolumeClaim, error) { panic("mock out the List method") }, } // use mockedPersistentVolumeClaimLister in code that requires PersistentVolumeClaimLister // and then make assertions. }
func (*PersistentVolumeClaimListerMock) Get ¶
func (mock *PersistentVolumeClaimListerMock) Get(namespace string, name string) (*v1.PersistentVolumeClaim, error)
Get calls GetFunc.
func (*PersistentVolumeClaimListerMock) GetCalls ¶
func (mock *PersistentVolumeClaimListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPersistentVolumeClaimLister.GetCalls())
func (*PersistentVolumeClaimListerMock) List ¶
func (mock *PersistentVolumeClaimListerMock) List(namespace string, selector labels.Selector) ([]*v1.PersistentVolumeClaim, error)
List calls ListFunc.
type PersistentVolumeClaimsGetterMock ¶
type PersistentVolumeClaimsGetterMock struct { // PersistentVolumeClaimsFunc mocks the PersistentVolumeClaims method. PersistentVolumeClaimsFunc func(namespace string) v1a.PersistentVolumeClaimInterface // contains filtered or unexported fields }
PersistentVolumeClaimsGetterMock is a mock implementation of PersistentVolumeClaimsGetter.
func TestSomethingThatUsesPersistentVolumeClaimsGetter(t *testing.T) { // make and configure a mocked PersistentVolumeClaimsGetter mockedPersistentVolumeClaimsGetter := &PersistentVolumeClaimsGetterMock{ PersistentVolumeClaimsFunc: func(namespace string) v1a.PersistentVolumeClaimInterface { panic("mock out the PersistentVolumeClaims method") }, } // use mockedPersistentVolumeClaimsGetter in code that requires PersistentVolumeClaimsGetter // and then make assertions. }
func (*PersistentVolumeClaimsGetterMock) PersistentVolumeClaims ¶
func (mock *PersistentVolumeClaimsGetterMock) PersistentVolumeClaims(namespace string) v1a.PersistentVolumeClaimInterface
PersistentVolumeClaims calls PersistentVolumeClaimsFunc.
func (*PersistentVolumeClaimsGetterMock) PersistentVolumeClaimsCalls ¶
func (mock *PersistentVolumeClaimsGetterMock) PersistentVolumeClaimsCalls() []struct { Namespace string }
PersistentVolumeClaimsCalls gets all the calls that were made to PersistentVolumeClaims. Check the length with:
len(mockedPersistentVolumeClaimsGetter.PersistentVolumeClaimsCalls())
type PodControllerMock ¶
type PodControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PodHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.PodHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.PodHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.PodLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
PodControllerMock is a mock implementation of PodController.
func TestSomethingThatUsesPodController(t *testing.T) { // make and configure a mocked PodController mockedPodController := &PodControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PodHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.PodHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.PodHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.PodLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedPodController in code that requires PodController // and then make assertions. }
func (*PodControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *PodControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PodHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PodControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PodControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.PodHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPodController.AddClusterScopedFeatureHandlerCalls())
func (*PodControllerMock) AddClusterScopedHandler ¶
func (mock *PodControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.PodHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PodControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PodControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.PodHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPodController.AddClusterScopedHandlerCalls())
func (*PodControllerMock) AddFeatureHandler ¶
func (mock *PodControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PodControllerMock) AddFeatureHandlerCalls ¶
func (mock *PodControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PodHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPodController.AddFeatureHandlerCalls())
func (*PodControllerMock) AddHandler ¶
func (mock *PodControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PodHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PodControllerMock) AddHandlerCalls ¶
func (mock *PodControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.PodHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPodController.AddHandlerCalls())
func (*PodControllerMock) Enqueue ¶
func (mock *PodControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PodControllerMock) EnqueueAfter ¶
func (mock *PodControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*PodControllerMock) EnqueueAfterCalls ¶
func (mock *PodControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedPodController.EnqueueAfterCalls())
func (*PodControllerMock) EnqueueCalls ¶
func (mock *PodControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPodController.EnqueueCalls())
func (*PodControllerMock) Generic ¶
func (mock *PodControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PodControllerMock) GenericCalls ¶
func (mock *PodControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPodController.GenericCalls())
func (*PodControllerMock) Informer ¶
func (mock *PodControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PodControllerMock) InformerCalls ¶
func (mock *PodControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPodController.InformerCalls())
func (*PodControllerMock) Lister ¶
func (mock *PodControllerMock) Lister() v1a.PodLister
Lister calls ListerFunc.
func (*PodControllerMock) ListerCalls ¶
func (mock *PodControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPodController.ListerCalls())
func (*PodControllerMock) Start ¶
func (mock *PodControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PodControllerMock) StartCalls ¶
func (mock *PodControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPodController.StartCalls())
func (*PodControllerMock) Sync ¶
func (mock *PodControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PodControllerMock) SyncCalls ¶
func (mock *PodControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPodController.SyncCalls())
type PodInterfaceMock ¶
type PodInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PodHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PodLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.PodHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.PodLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PodLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.PodHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.PodLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.PodController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Pod) (*v1.Pod, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Pod, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Pod, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PodList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Pod) (*v1.Pod, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PodInterfaceMock is a mock implementation of PodInterface.
func TestSomethingThatUsesPodInterface(t *testing.T) { // make and configure a mocked PodInterface mockedPodInterface := &PodInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PodHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PodLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.PodHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.PodLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PodLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.PodHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.PodLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.PodController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Pod) (*v1.Pod, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Pod, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Pod, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.PodList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Pod) (*v1.Pod, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPodInterface in code that requires PodInterface // and then make assertions. }
func (*PodInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *PodInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PodHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PodInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PodInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.PodHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPodInterface.AddClusterScopedFeatureHandlerCalls())
func (*PodInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *PodInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PodLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*PodInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *PodInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.PodLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedPodInterface.AddClusterScopedFeatureLifecycleCalls())
func (*PodInterfaceMock) AddClusterScopedHandler ¶
func (mock *PodInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.PodHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PodInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PodInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.PodHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPodInterface.AddClusterScopedHandlerCalls())
func (*PodInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PodInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.PodLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PodInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PodInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.PodLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPodInterface.AddClusterScopedLifecycleCalls())
func (*PodInterfaceMock) AddFeatureHandler ¶
func (mock *PodInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PodHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PodInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *PodInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PodHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPodInterface.AddFeatureHandlerCalls())
func (*PodInterfaceMock) AddFeatureLifecycle ¶
func (mock *PodInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PodLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*PodInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *PodInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.PodLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedPodInterface.AddFeatureLifecycleCalls())
func (*PodInterfaceMock) AddHandler ¶
func (mock *PodInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PodHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PodInterfaceMock) AddHandlerCalls ¶
func (mock *PodInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.PodHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPodInterface.AddHandlerCalls())
func (*PodInterfaceMock) AddLifecycle ¶
func (mock *PodInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PodLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PodInterfaceMock) AddLifecycleCalls ¶
func (mock *PodInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.PodLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPodInterface.AddLifecycleCalls())
func (*PodInterfaceMock) Controller ¶
func (mock *PodInterfaceMock) Controller() v1a.PodController
Controller calls ControllerFunc.
func (*PodInterfaceMock) ControllerCalls ¶
func (mock *PodInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPodInterface.ControllerCalls())
func (*PodInterfaceMock) CreateCalls ¶
func (mock *PodInterfaceMock) CreateCalls() []struct { In1 *v1.Pod }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPodInterface.CreateCalls())
func (*PodInterfaceMock) Delete ¶
func (mock *PodInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PodInterfaceMock) DeleteCalls ¶
func (mock *PodInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPodInterface.DeleteCalls())
func (*PodInterfaceMock) DeleteCollection ¶
func (mock *PodInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PodInterfaceMock) DeleteCollectionCalls ¶
func (mock *PodInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPodInterface.DeleteCollectionCalls())
func (*PodInterfaceMock) DeleteNamespaced ¶
func (mock *PodInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PodInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PodInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPodInterface.DeleteNamespacedCalls())
func (*PodInterfaceMock) Get ¶
func (mock *PodInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Pod, error)
Get calls GetFunc.
func (*PodInterfaceMock) GetCalls ¶
func (mock *PodInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodInterface.GetCalls())
func (*PodInterfaceMock) GetNamespaced ¶
func (mock *PodInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Pod, error)
GetNamespaced calls GetNamespacedFunc.
func (*PodInterfaceMock) GetNamespacedCalls ¶
func (mock *PodInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPodInterface.GetNamespacedCalls())
func (*PodInterfaceMock) List ¶
func (mock *PodInterfaceMock) List(opts v1b.ListOptions) (*v1a.PodList, error)
List calls ListFunc.
func (*PodInterfaceMock) ListCalls ¶
func (mock *PodInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPodInterface.ListCalls())
func (*PodInterfaceMock) ListNamespaced ¶
func (mock *PodInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
ListNamespaced calls ListNamespacedFunc.
func (*PodInterfaceMock) ListNamespacedCalls ¶
func (mock *PodInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedPodInterface.ListNamespacedCalls())
func (*PodInterfaceMock) ObjectClient ¶
func (mock *PodInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PodInterfaceMock) ObjectClientCalls ¶
func (mock *PodInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPodInterface.ObjectClientCalls())
func (*PodInterfaceMock) UpdateCalls ¶
func (mock *PodInterfaceMock) UpdateCalls() []struct { In1 *v1.Pod }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPodInterface.UpdateCalls())
func (*PodInterfaceMock) Watch ¶
func (mock *PodInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PodInterfaceMock) WatchCalls ¶
func (mock *PodInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPodInterface.WatchCalls())
type PodListerMock ¶
type PodListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Pod, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Pod, error) // contains filtered or unexported fields }
PodListerMock is a mock implementation of PodLister.
func TestSomethingThatUsesPodLister(t *testing.T) { // make and configure a mocked PodLister mockedPodLister := &PodListerMock{ GetFunc: func(namespace string, name string) (*v1.Pod, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Pod, error) { panic("mock out the List method") }, } // use mockedPodLister in code that requires PodLister // and then make assertions. }
func (*PodListerMock) GetCalls ¶
func (mock *PodListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodLister.GetCalls())
type PodsGetterMock ¶
type PodsGetterMock struct { // PodsFunc mocks the Pods method. PodsFunc func(namespace string) v1a.PodInterface // contains filtered or unexported fields }
PodsGetterMock is a mock implementation of PodsGetter.
func TestSomethingThatUsesPodsGetter(t *testing.T) { // make and configure a mocked PodsGetter mockedPodsGetter := &PodsGetterMock{ PodsFunc: func(namespace string) v1a.PodInterface { panic("mock out the Pods method") }, } // use mockedPodsGetter in code that requires PodsGetter // and then make assertions. }
func (*PodsGetterMock) Pods ¶
func (mock *PodsGetterMock) Pods(namespace string) v1a.PodInterface
Pods calls PodsFunc.
func (*PodsGetterMock) PodsCalls ¶
func (mock *PodsGetterMock) PodsCalls() []struct { Namespace string }
PodsCalls gets all the calls that were made to Pods. Check the length with:
len(mockedPodsGetter.PodsCalls())
type ReplicationControllerControllerMock ¶
type ReplicationControllerControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ReplicationControllerHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ReplicationControllerLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ReplicationControllerControllerMock is a mock implementation of ReplicationControllerController.
func TestSomethingThatUsesReplicationControllerController(t *testing.T) { // make and configure a mocked ReplicationControllerController mockedReplicationControllerController := &ReplicationControllerControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ReplicationControllerLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedReplicationControllerController in code that requires ReplicationControllerController // and then make assertions. }
func (*ReplicationControllerControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ReplicationControllerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ReplicationControllerControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ReplicationControllerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ReplicationControllerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedReplicationControllerController.AddClusterScopedFeatureHandlerCalls())
func (*ReplicationControllerControllerMock) AddClusterScopedHandler ¶
func (mock *ReplicationControllerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ReplicationControllerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ReplicationControllerControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ReplicationControllerControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ReplicationControllerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedReplicationControllerController.AddClusterScopedHandlerCalls())
func (*ReplicationControllerControllerMock) AddFeatureHandler ¶
func (mock *ReplicationControllerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ReplicationControllerControllerMock) AddFeatureHandlerCalls ¶
func (mock *ReplicationControllerControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ReplicationControllerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedReplicationControllerController.AddFeatureHandlerCalls())
func (*ReplicationControllerControllerMock) AddHandler ¶
func (mock *ReplicationControllerControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ReplicationControllerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ReplicationControllerControllerMock) AddHandlerCalls ¶
func (mock *ReplicationControllerControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ReplicationControllerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedReplicationControllerController.AddHandlerCalls())
func (*ReplicationControllerControllerMock) Enqueue ¶
func (mock *ReplicationControllerControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ReplicationControllerControllerMock) EnqueueAfter ¶
func (mock *ReplicationControllerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ReplicationControllerControllerMock) EnqueueAfterCalls ¶
func (mock *ReplicationControllerControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedReplicationControllerController.EnqueueAfterCalls())
func (*ReplicationControllerControllerMock) EnqueueCalls ¶
func (mock *ReplicationControllerControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedReplicationControllerController.EnqueueCalls())
func (*ReplicationControllerControllerMock) Generic ¶
func (mock *ReplicationControllerControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ReplicationControllerControllerMock) GenericCalls ¶
func (mock *ReplicationControllerControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedReplicationControllerController.GenericCalls())
func (*ReplicationControllerControllerMock) Informer ¶
func (mock *ReplicationControllerControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ReplicationControllerControllerMock) InformerCalls ¶
func (mock *ReplicationControllerControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedReplicationControllerController.InformerCalls())
func (*ReplicationControllerControllerMock) Lister ¶
func (mock *ReplicationControllerControllerMock) Lister() v1a.ReplicationControllerLister
Lister calls ListerFunc.
func (*ReplicationControllerControllerMock) ListerCalls ¶
func (mock *ReplicationControllerControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedReplicationControllerController.ListerCalls())
func (*ReplicationControllerControllerMock) Start ¶
func (mock *ReplicationControllerControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ReplicationControllerControllerMock) StartCalls ¶
func (mock *ReplicationControllerControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedReplicationControllerController.StartCalls())
func (*ReplicationControllerControllerMock) Sync ¶
func (mock *ReplicationControllerControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ReplicationControllerControllerMock) SyncCalls ¶
func (mock *ReplicationControllerControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedReplicationControllerController.SyncCalls())
type ReplicationControllerInterfaceMock ¶
type ReplicationControllerInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicationControllerLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ReplicationControllerHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ReplicationControllerLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ReplicationControllerController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ReplicationController) (*v1.ReplicationController, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ReplicationController, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicationController, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ReplicationController) (*v1.ReplicationController, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ReplicationControllerInterfaceMock is a mock implementation of ReplicationControllerInterface.
func TestSomethingThatUsesReplicationControllerInterface(t *testing.T) { // make and configure a mocked ReplicationControllerInterface mockedReplicationControllerInterface := &ReplicationControllerInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicationControllerLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ReplicationControllerHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ReplicationControllerLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ReplicationControllerController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ReplicationController) (*v1.ReplicationController, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ReplicationController, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicationController, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ReplicationController) (*v1.ReplicationController, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedReplicationControllerInterface in code that requires ReplicationControllerInterface // and then make assertions. }
func (*ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ReplicationControllerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedReplicationControllerInterface.AddClusterScopedFeatureHandlerCalls())
func (*ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ReplicationControllerLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedReplicationControllerInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ReplicationControllerInterfaceMock) AddClusterScopedHandler ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ReplicationControllerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ReplicationControllerInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ReplicationControllerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedReplicationControllerInterface.AddClusterScopedHandlerCalls())
func (*ReplicationControllerInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicationControllerLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ReplicationControllerInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ReplicationControllerLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedReplicationControllerInterface.AddClusterScopedLifecycleCalls())
func (*ReplicationControllerInterfaceMock) AddFeatureHandler ¶
func (mock *ReplicationControllerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicationControllerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ReplicationControllerInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ReplicationControllerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedReplicationControllerInterface.AddFeatureHandlerCalls())
func (*ReplicationControllerInterfaceMock) AddFeatureLifecycle ¶
func (mock *ReplicationControllerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicationControllerLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ReplicationControllerInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ReplicationControllerLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedReplicationControllerInterface.AddFeatureLifecycleCalls())
func (*ReplicationControllerInterfaceMock) AddHandler ¶
func (mock *ReplicationControllerInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ReplicationControllerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ReplicationControllerInterfaceMock) AddHandlerCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ReplicationControllerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedReplicationControllerInterface.AddHandlerCalls())
func (*ReplicationControllerInterfaceMock) AddLifecycle ¶
func (mock *ReplicationControllerInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ReplicationControllerLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ReplicationControllerInterfaceMock) AddLifecycleCalls ¶
func (mock *ReplicationControllerInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ReplicationControllerLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedReplicationControllerInterface.AddLifecycleCalls())
func (*ReplicationControllerInterfaceMock) Controller ¶
func (mock *ReplicationControllerInterfaceMock) Controller() v1a.ReplicationControllerController
Controller calls ControllerFunc.
func (*ReplicationControllerInterfaceMock) ControllerCalls ¶
func (mock *ReplicationControllerInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedReplicationControllerInterface.ControllerCalls())
func (*ReplicationControllerInterfaceMock) Create ¶
func (mock *ReplicationControllerInterfaceMock) Create(in1 *v1.ReplicationController) (*v1.ReplicationController, error)
Create calls CreateFunc.
func (*ReplicationControllerInterfaceMock) CreateCalls ¶
func (mock *ReplicationControllerInterfaceMock) CreateCalls() []struct { In1 *v1.ReplicationController }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedReplicationControllerInterface.CreateCalls())
func (*ReplicationControllerInterfaceMock) Delete ¶
func (mock *ReplicationControllerInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ReplicationControllerInterfaceMock) DeleteCalls ¶
func (mock *ReplicationControllerInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedReplicationControllerInterface.DeleteCalls())
func (*ReplicationControllerInterfaceMock) DeleteCollection ¶
func (mock *ReplicationControllerInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ReplicationControllerInterfaceMock) DeleteCollectionCalls ¶
func (mock *ReplicationControllerInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedReplicationControllerInterface.DeleteCollectionCalls())
func (*ReplicationControllerInterfaceMock) DeleteNamespaced ¶
func (mock *ReplicationControllerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ReplicationControllerInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ReplicationControllerInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedReplicationControllerInterface.DeleteNamespacedCalls())
func (*ReplicationControllerInterfaceMock) Get ¶
func (mock *ReplicationControllerInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ReplicationController, error)
Get calls GetFunc.
func (*ReplicationControllerInterfaceMock) GetCalls ¶
func (mock *ReplicationControllerInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedReplicationControllerInterface.GetCalls())
func (*ReplicationControllerInterfaceMock) GetNamespaced ¶
func (mock *ReplicationControllerInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicationController, error)
GetNamespaced calls GetNamespacedFunc.
func (*ReplicationControllerInterfaceMock) GetNamespacedCalls ¶
func (mock *ReplicationControllerInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedReplicationControllerInterface.GetNamespacedCalls())
func (*ReplicationControllerInterfaceMock) List ¶
func (mock *ReplicationControllerInterfaceMock) List(opts v1b.ListOptions) (*v1a.ReplicationControllerList, error)
List calls ListFunc.
func (*ReplicationControllerInterfaceMock) ListCalls ¶
func (mock *ReplicationControllerInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedReplicationControllerInterface.ListCalls())
func (*ReplicationControllerInterfaceMock) ListNamespaced ¶
func (mock *ReplicationControllerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ReplicationControllerList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ReplicationControllerInterfaceMock) ListNamespacedCalls ¶
func (mock *ReplicationControllerInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedReplicationControllerInterface.ListNamespacedCalls())
func (*ReplicationControllerInterfaceMock) ObjectClient ¶
func (mock *ReplicationControllerInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ReplicationControllerInterfaceMock) ObjectClientCalls ¶
func (mock *ReplicationControllerInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedReplicationControllerInterface.ObjectClientCalls())
func (*ReplicationControllerInterfaceMock) Update ¶
func (mock *ReplicationControllerInterfaceMock) Update(in1 *v1.ReplicationController) (*v1.ReplicationController, error)
Update calls UpdateFunc.
func (*ReplicationControllerInterfaceMock) UpdateCalls ¶
func (mock *ReplicationControllerInterfaceMock) UpdateCalls() []struct { In1 *v1.ReplicationController }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedReplicationControllerInterface.UpdateCalls())
func (*ReplicationControllerInterfaceMock) Watch ¶
func (mock *ReplicationControllerInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ReplicationControllerInterfaceMock) WatchCalls ¶
func (mock *ReplicationControllerInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedReplicationControllerInterface.WatchCalls())
type ReplicationControllerListerMock ¶
type ReplicationControllerListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ReplicationController, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ReplicationController, error) // contains filtered or unexported fields }
ReplicationControllerListerMock is a mock implementation of ReplicationControllerLister.
func TestSomethingThatUsesReplicationControllerLister(t *testing.T) { // make and configure a mocked ReplicationControllerLister mockedReplicationControllerLister := &ReplicationControllerListerMock{ GetFunc: func(namespace string, name string) (*v1.ReplicationController, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ReplicationController, error) { panic("mock out the List method") }, } // use mockedReplicationControllerLister in code that requires ReplicationControllerLister // and then make assertions. }
func (*ReplicationControllerListerMock) Get ¶
func (mock *ReplicationControllerListerMock) Get(namespace string, name string) (*v1.ReplicationController, error)
Get calls GetFunc.
func (*ReplicationControllerListerMock) GetCalls ¶
func (mock *ReplicationControllerListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedReplicationControllerLister.GetCalls())
func (*ReplicationControllerListerMock) List ¶
func (mock *ReplicationControllerListerMock) List(namespace string, selector labels.Selector) ([]*v1.ReplicationController, error)
List calls ListFunc.
type ReplicationControllersGetterMock ¶
type ReplicationControllersGetterMock struct { // ReplicationControllersFunc mocks the ReplicationControllers method. ReplicationControllersFunc func(namespace string) v1a.ReplicationControllerInterface // contains filtered or unexported fields }
ReplicationControllersGetterMock is a mock implementation of ReplicationControllersGetter.
func TestSomethingThatUsesReplicationControllersGetter(t *testing.T) { // make and configure a mocked ReplicationControllersGetter mockedReplicationControllersGetter := &ReplicationControllersGetterMock{ ReplicationControllersFunc: func(namespace string) v1a.ReplicationControllerInterface { panic("mock out the ReplicationControllers method") }, } // use mockedReplicationControllersGetter in code that requires ReplicationControllersGetter // and then make assertions. }
func (*ReplicationControllersGetterMock) ReplicationControllers ¶
func (mock *ReplicationControllersGetterMock) ReplicationControllers(namespace string) v1a.ReplicationControllerInterface
ReplicationControllers calls ReplicationControllersFunc.
func (*ReplicationControllersGetterMock) ReplicationControllersCalls ¶
func (mock *ReplicationControllersGetterMock) ReplicationControllersCalls() []struct { Namespace string }
ReplicationControllersCalls gets all the calls that were made to ReplicationControllers. Check the length with:
len(mockedReplicationControllersGetter.ReplicationControllersCalls())
type ResourceQuotaControllerMock ¶
type ResourceQuotaControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ResourceQuotaHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ResourceQuotaLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ResourceQuotaControllerMock is a mock implementation of ResourceQuotaController.
func TestSomethingThatUsesResourceQuotaController(t *testing.T) { // make and configure a mocked ResourceQuotaController mockedResourceQuotaController := &ResourceQuotaControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ResourceQuotaLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedResourceQuotaController in code that requires ResourceQuotaController // and then make assertions. }
func (*ResourceQuotaControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ResourceQuotaControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ResourceQuotaControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ResourceQuotaControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ResourceQuotaHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedResourceQuotaController.AddClusterScopedFeatureHandlerCalls())
func (*ResourceQuotaControllerMock) AddClusterScopedHandler ¶
func (mock *ResourceQuotaControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ResourceQuotaHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ResourceQuotaControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ResourceQuotaControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ResourceQuotaHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedResourceQuotaController.AddClusterScopedHandlerCalls())
func (*ResourceQuotaControllerMock) AddFeatureHandler ¶
func (mock *ResourceQuotaControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ResourceQuotaControllerMock) AddFeatureHandlerCalls ¶
func (mock *ResourceQuotaControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ResourceQuotaHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedResourceQuotaController.AddFeatureHandlerCalls())
func (*ResourceQuotaControllerMock) AddHandler ¶
func (mock *ResourceQuotaControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ResourceQuotaHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ResourceQuotaControllerMock) AddHandlerCalls ¶
func (mock *ResourceQuotaControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ResourceQuotaHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedResourceQuotaController.AddHandlerCalls())
func (*ResourceQuotaControllerMock) Enqueue ¶
func (mock *ResourceQuotaControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ResourceQuotaControllerMock) EnqueueAfter ¶
func (mock *ResourceQuotaControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ResourceQuotaControllerMock) EnqueueAfterCalls ¶
func (mock *ResourceQuotaControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedResourceQuotaController.EnqueueAfterCalls())
func (*ResourceQuotaControllerMock) EnqueueCalls ¶
func (mock *ResourceQuotaControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedResourceQuotaController.EnqueueCalls())
func (*ResourceQuotaControllerMock) Generic ¶
func (mock *ResourceQuotaControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ResourceQuotaControllerMock) GenericCalls ¶
func (mock *ResourceQuotaControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedResourceQuotaController.GenericCalls())
func (*ResourceQuotaControllerMock) Informer ¶
func (mock *ResourceQuotaControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ResourceQuotaControllerMock) InformerCalls ¶
func (mock *ResourceQuotaControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedResourceQuotaController.InformerCalls())
func (*ResourceQuotaControllerMock) Lister ¶
func (mock *ResourceQuotaControllerMock) Lister() v1a.ResourceQuotaLister
Lister calls ListerFunc.
func (*ResourceQuotaControllerMock) ListerCalls ¶
func (mock *ResourceQuotaControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedResourceQuotaController.ListerCalls())
func (*ResourceQuotaControllerMock) Start ¶
func (mock *ResourceQuotaControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ResourceQuotaControllerMock) StartCalls ¶
func (mock *ResourceQuotaControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedResourceQuotaController.StartCalls())
func (*ResourceQuotaControllerMock) Sync ¶
func (mock *ResourceQuotaControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ResourceQuotaControllerMock) SyncCalls ¶
func (mock *ResourceQuotaControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedResourceQuotaController.SyncCalls())
type ResourceQuotaInterfaceMock ¶
type ResourceQuotaInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ResourceQuotaLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ResourceQuotaHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ResourceQuotaLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ResourceQuotaController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ResourceQuota, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ResourceQuota, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ResourceQuotaInterfaceMock is a mock implementation of ResourceQuotaInterface.
func TestSomethingThatUsesResourceQuotaInterface(t *testing.T) { // make and configure a mocked ResourceQuotaInterface mockedResourceQuotaInterface := &ResourceQuotaInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ResourceQuotaLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ResourceQuotaHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ResourceQuotaLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ResourceQuotaController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ResourceQuota, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ResourceQuota, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedResourceQuotaInterface in code that requires ResourceQuotaInterface // and then make assertions. }
func (*ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ResourceQuotaHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedResourceQuotaInterface.AddClusterScopedFeatureHandlerCalls())
func (*ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ResourceQuotaLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedResourceQuotaInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ResourceQuotaInterfaceMock) AddClusterScopedHandler ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ResourceQuotaHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ResourceQuotaInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ResourceQuotaHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedResourceQuotaInterface.AddClusterScopedHandlerCalls())
func (*ResourceQuotaInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ResourceQuotaLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ResourceQuotaInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ResourceQuotaLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedResourceQuotaInterface.AddClusterScopedLifecycleCalls())
func (*ResourceQuotaInterfaceMock) AddFeatureHandler ¶
func (mock *ResourceQuotaInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ResourceQuotaHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ResourceQuotaInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ResourceQuotaHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedResourceQuotaInterface.AddFeatureHandlerCalls())
func (*ResourceQuotaInterfaceMock) AddFeatureLifecycle ¶
func (mock *ResourceQuotaInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ResourceQuotaLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ResourceQuotaInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ResourceQuotaLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedResourceQuotaInterface.AddFeatureLifecycleCalls())
func (*ResourceQuotaInterfaceMock) AddHandler ¶
func (mock *ResourceQuotaInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ResourceQuotaHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ResourceQuotaInterfaceMock) AddHandlerCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ResourceQuotaHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedResourceQuotaInterface.AddHandlerCalls())
func (*ResourceQuotaInterfaceMock) AddLifecycle ¶
func (mock *ResourceQuotaInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ResourceQuotaLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ResourceQuotaInterfaceMock) AddLifecycleCalls ¶
func (mock *ResourceQuotaInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ResourceQuotaLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedResourceQuotaInterface.AddLifecycleCalls())
func (*ResourceQuotaInterfaceMock) Controller ¶
func (mock *ResourceQuotaInterfaceMock) Controller() v1a.ResourceQuotaController
Controller calls ControllerFunc.
func (*ResourceQuotaInterfaceMock) ControllerCalls ¶
func (mock *ResourceQuotaInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedResourceQuotaInterface.ControllerCalls())
func (*ResourceQuotaInterfaceMock) Create ¶
func (mock *ResourceQuotaInterfaceMock) Create(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error)
Create calls CreateFunc.
func (*ResourceQuotaInterfaceMock) CreateCalls ¶
func (mock *ResourceQuotaInterfaceMock) CreateCalls() []struct { In1 *v1.ResourceQuota }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedResourceQuotaInterface.CreateCalls())
func (*ResourceQuotaInterfaceMock) Delete ¶
func (mock *ResourceQuotaInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ResourceQuotaInterfaceMock) DeleteCalls ¶
func (mock *ResourceQuotaInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedResourceQuotaInterface.DeleteCalls())
func (*ResourceQuotaInterfaceMock) DeleteCollection ¶
func (mock *ResourceQuotaInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ResourceQuotaInterfaceMock) DeleteCollectionCalls ¶
func (mock *ResourceQuotaInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedResourceQuotaInterface.DeleteCollectionCalls())
func (*ResourceQuotaInterfaceMock) DeleteNamespaced ¶
func (mock *ResourceQuotaInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ResourceQuotaInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ResourceQuotaInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedResourceQuotaInterface.DeleteNamespacedCalls())
func (*ResourceQuotaInterfaceMock) Get ¶
func (mock *ResourceQuotaInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ResourceQuota, error)
Get calls GetFunc.
func (*ResourceQuotaInterfaceMock) GetCalls ¶
func (mock *ResourceQuotaInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedResourceQuotaInterface.GetCalls())
func (*ResourceQuotaInterfaceMock) GetNamespaced ¶
func (mock *ResourceQuotaInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ResourceQuota, error)
GetNamespaced calls GetNamespacedFunc.
func (*ResourceQuotaInterfaceMock) GetNamespacedCalls ¶
func (mock *ResourceQuotaInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedResourceQuotaInterface.GetNamespacedCalls())
func (*ResourceQuotaInterfaceMock) List ¶
func (mock *ResourceQuotaInterfaceMock) List(opts v1b.ListOptions) (*v1a.ResourceQuotaList, error)
List calls ListFunc.
func (*ResourceQuotaInterfaceMock) ListCalls ¶
func (mock *ResourceQuotaInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedResourceQuotaInterface.ListCalls())
func (*ResourceQuotaInterfaceMock) ListNamespaced ¶
func (mock *ResourceQuotaInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ResourceQuotaList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ResourceQuotaInterfaceMock) ListNamespacedCalls ¶
func (mock *ResourceQuotaInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedResourceQuotaInterface.ListNamespacedCalls())
func (*ResourceQuotaInterfaceMock) ObjectClient ¶
func (mock *ResourceQuotaInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ResourceQuotaInterfaceMock) ObjectClientCalls ¶
func (mock *ResourceQuotaInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedResourceQuotaInterface.ObjectClientCalls())
func (*ResourceQuotaInterfaceMock) Update ¶
func (mock *ResourceQuotaInterfaceMock) Update(in1 *v1.ResourceQuota) (*v1.ResourceQuota, error)
Update calls UpdateFunc.
func (*ResourceQuotaInterfaceMock) UpdateCalls ¶
func (mock *ResourceQuotaInterfaceMock) UpdateCalls() []struct { In1 *v1.ResourceQuota }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedResourceQuotaInterface.UpdateCalls())
func (*ResourceQuotaInterfaceMock) Watch ¶
func (mock *ResourceQuotaInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ResourceQuotaInterfaceMock) WatchCalls ¶
func (mock *ResourceQuotaInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedResourceQuotaInterface.WatchCalls())
type ResourceQuotaListerMock ¶
type ResourceQuotaListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ResourceQuota, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ResourceQuota, error) // contains filtered or unexported fields }
ResourceQuotaListerMock is a mock implementation of ResourceQuotaLister.
func TestSomethingThatUsesResourceQuotaLister(t *testing.T) { // make and configure a mocked ResourceQuotaLister mockedResourceQuotaLister := &ResourceQuotaListerMock{ GetFunc: func(namespace string, name string) (*v1.ResourceQuota, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ResourceQuota, error) { panic("mock out the List method") }, } // use mockedResourceQuotaLister in code that requires ResourceQuotaLister // and then make assertions. }
func (*ResourceQuotaListerMock) Get ¶
func (mock *ResourceQuotaListerMock) Get(namespace string, name string) (*v1.ResourceQuota, error)
Get calls GetFunc.
func (*ResourceQuotaListerMock) GetCalls ¶
func (mock *ResourceQuotaListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedResourceQuotaLister.GetCalls())
func (*ResourceQuotaListerMock) List ¶
func (mock *ResourceQuotaListerMock) List(namespace string, selector labels.Selector) ([]*v1.ResourceQuota, error)
List calls ListFunc.
type ResourceQuotasGetterMock ¶
type ResourceQuotasGetterMock struct { // ResourceQuotasFunc mocks the ResourceQuotas method. ResourceQuotasFunc func(namespace string) v1a.ResourceQuotaInterface // contains filtered or unexported fields }
ResourceQuotasGetterMock is a mock implementation of ResourceQuotasGetter.
func TestSomethingThatUsesResourceQuotasGetter(t *testing.T) { // make and configure a mocked ResourceQuotasGetter mockedResourceQuotasGetter := &ResourceQuotasGetterMock{ ResourceQuotasFunc: func(namespace string) v1a.ResourceQuotaInterface { panic("mock out the ResourceQuotas method") }, } // use mockedResourceQuotasGetter in code that requires ResourceQuotasGetter // and then make assertions. }
func (*ResourceQuotasGetterMock) ResourceQuotas ¶
func (mock *ResourceQuotasGetterMock) ResourceQuotas(namespace string) v1a.ResourceQuotaInterface
ResourceQuotas calls ResourceQuotasFunc.
func (*ResourceQuotasGetterMock) ResourceQuotasCalls ¶
func (mock *ResourceQuotasGetterMock) ResourceQuotasCalls() []struct { Namespace string }
ResourceQuotasCalls gets all the calls that were made to ResourceQuotas. Check the length with:
len(mockedResourceQuotasGetter.ResourceQuotasCalls())
type SecretControllerMock ¶
type SecretControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.SecretHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.SecretHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.SecretHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.SecretLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SecretControllerMock is a mock implementation of SecretController.
func TestSomethingThatUsesSecretController(t *testing.T) { // make and configure a mocked SecretController mockedSecretController := &SecretControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.SecretHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.SecretHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.SecretHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.SecretLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSecretController in code that requires SecretController // and then make assertions. }
func (*SecretControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *SecretControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.SecretHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*SecretControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *SecretControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.SecretHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedSecretController.AddClusterScopedFeatureHandlerCalls())
func (*SecretControllerMock) AddClusterScopedHandler ¶
func (mock *SecretControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.SecretHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SecretControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SecretControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.SecretHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSecretController.AddClusterScopedHandlerCalls())
func (*SecretControllerMock) AddFeatureHandler ¶
func (mock *SecretControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*SecretControllerMock) AddFeatureHandlerCalls ¶
func (mock *SecretControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.SecretHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedSecretController.AddFeatureHandlerCalls())
func (*SecretControllerMock) AddHandler ¶
func (mock *SecretControllerMock) AddHandler(ctx context.Context, name string, handler v1a.SecretHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SecretControllerMock) AddHandlerCalls ¶
func (mock *SecretControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.SecretHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSecretController.AddHandlerCalls())
func (*SecretControllerMock) Enqueue ¶
func (mock *SecretControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SecretControllerMock) EnqueueAfter ¶
func (mock *SecretControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*SecretControllerMock) EnqueueAfterCalls ¶
func (mock *SecretControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedSecretController.EnqueueAfterCalls())
func (*SecretControllerMock) EnqueueCalls ¶
func (mock *SecretControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSecretController.EnqueueCalls())
func (*SecretControllerMock) Generic ¶
func (mock *SecretControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SecretControllerMock) GenericCalls ¶
func (mock *SecretControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSecretController.GenericCalls())
func (*SecretControllerMock) Informer ¶
func (mock *SecretControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SecretControllerMock) InformerCalls ¶
func (mock *SecretControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSecretController.InformerCalls())
func (*SecretControllerMock) Lister ¶
func (mock *SecretControllerMock) Lister() v1a.SecretLister
Lister calls ListerFunc.
func (*SecretControllerMock) ListerCalls ¶
func (mock *SecretControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSecretController.ListerCalls())
func (*SecretControllerMock) Start ¶
func (mock *SecretControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SecretControllerMock) StartCalls ¶
func (mock *SecretControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSecretController.StartCalls())
func (*SecretControllerMock) Sync ¶
func (mock *SecretControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SecretControllerMock) SyncCalls ¶
func (mock *SecretControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSecretController.SyncCalls())
type SecretInterfaceMock ¶
type SecretInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.SecretHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.SecretLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.SecretHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.SecretLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.SecretLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.SecretHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.SecretLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.SecretController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Secret) (*v1.Secret, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Secret, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Secret, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.SecretList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Secret) (*v1.Secret, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SecretInterfaceMock is a mock implementation of SecretInterface.
func TestSomethingThatUsesSecretInterface(t *testing.T) { // make and configure a mocked SecretInterface mockedSecretInterface := &SecretInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.SecretHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.SecretLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.SecretHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.SecretLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.SecretLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.SecretHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.SecretLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.SecretController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Secret) (*v1.Secret, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Secret, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Secret, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.SecretList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Secret) (*v1.Secret, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSecretInterface in code that requires SecretInterface // and then make assertions. }
func (*SecretInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *SecretInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.SecretHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*SecretInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *SecretInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.SecretHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedSecretInterface.AddClusterScopedFeatureHandlerCalls())
func (*SecretInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *SecretInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.SecretLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*SecretInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *SecretInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.SecretLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedSecretInterface.AddClusterScopedFeatureLifecycleCalls())
func (*SecretInterfaceMock) AddClusterScopedHandler ¶
func (mock *SecretInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.SecretHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SecretInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SecretInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.SecretHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSecretInterface.AddClusterScopedHandlerCalls())
func (*SecretInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SecretInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.SecretLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SecretInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SecretInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.SecretLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSecretInterface.AddClusterScopedLifecycleCalls())
func (*SecretInterfaceMock) AddFeatureHandler ¶
func (mock *SecretInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.SecretHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*SecretInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *SecretInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.SecretHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedSecretInterface.AddFeatureHandlerCalls())
func (*SecretInterfaceMock) AddFeatureLifecycle ¶
func (mock *SecretInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.SecretLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*SecretInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *SecretInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.SecretLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedSecretInterface.AddFeatureLifecycleCalls())
func (*SecretInterfaceMock) AddHandler ¶
func (mock *SecretInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.SecretHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SecretInterfaceMock) AddHandlerCalls ¶
func (mock *SecretInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.SecretHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSecretInterface.AddHandlerCalls())
func (*SecretInterfaceMock) AddLifecycle ¶
func (mock *SecretInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.SecretLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SecretInterfaceMock) AddLifecycleCalls ¶
func (mock *SecretInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.SecretLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSecretInterface.AddLifecycleCalls())
func (*SecretInterfaceMock) Controller ¶
func (mock *SecretInterfaceMock) Controller() v1a.SecretController
Controller calls ControllerFunc.
func (*SecretInterfaceMock) ControllerCalls ¶
func (mock *SecretInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSecretInterface.ControllerCalls())
func (*SecretInterfaceMock) CreateCalls ¶
func (mock *SecretInterfaceMock) CreateCalls() []struct { In1 *v1.Secret }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSecretInterface.CreateCalls())
func (*SecretInterfaceMock) Delete ¶
func (mock *SecretInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*SecretInterfaceMock) DeleteCalls ¶
func (mock *SecretInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSecretInterface.DeleteCalls())
func (*SecretInterfaceMock) DeleteCollection ¶
func (mock *SecretInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SecretInterfaceMock) DeleteCollectionCalls ¶
func (mock *SecretInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSecretInterface.DeleteCollectionCalls())
func (*SecretInterfaceMock) DeleteNamespaced ¶
func (mock *SecretInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SecretInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SecretInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSecretInterface.DeleteNamespacedCalls())
func (*SecretInterfaceMock) Get ¶
func (mock *SecretInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Secret, error)
Get calls GetFunc.
func (*SecretInterfaceMock) GetCalls ¶
func (mock *SecretInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSecretInterface.GetCalls())
func (*SecretInterfaceMock) GetNamespaced ¶
func (mock *SecretInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Secret, error)
GetNamespaced calls GetNamespacedFunc.
func (*SecretInterfaceMock) GetNamespacedCalls ¶
func (mock *SecretInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSecretInterface.GetNamespacedCalls())
func (*SecretInterfaceMock) List ¶
func (mock *SecretInterfaceMock) List(opts v1b.ListOptions) (*v1a.SecretList, error)
List calls ListFunc.
func (*SecretInterfaceMock) ListCalls ¶
func (mock *SecretInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSecretInterface.ListCalls())
func (*SecretInterfaceMock) ListNamespaced ¶
func (mock *SecretInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
ListNamespaced calls ListNamespacedFunc.
func (*SecretInterfaceMock) ListNamespacedCalls ¶
func (mock *SecretInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedSecretInterface.ListNamespacedCalls())
func (*SecretInterfaceMock) ObjectClient ¶
func (mock *SecretInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SecretInterfaceMock) ObjectClientCalls ¶
func (mock *SecretInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSecretInterface.ObjectClientCalls())
func (*SecretInterfaceMock) UpdateCalls ¶
func (mock *SecretInterfaceMock) UpdateCalls() []struct { In1 *v1.Secret }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSecretInterface.UpdateCalls())
func (*SecretInterfaceMock) Watch ¶
func (mock *SecretInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SecretInterfaceMock) WatchCalls ¶
func (mock *SecretInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSecretInterface.WatchCalls())
type SecretListerMock ¶
type SecretListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Secret, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Secret, error) // contains filtered or unexported fields }
SecretListerMock is a mock implementation of SecretLister.
func TestSomethingThatUsesSecretLister(t *testing.T) { // make and configure a mocked SecretLister mockedSecretLister := &SecretListerMock{ GetFunc: func(namespace string, name string) (*v1.Secret, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Secret, error) { panic("mock out the List method") }, } // use mockedSecretLister in code that requires SecretLister // and then make assertions. }
func (*SecretListerMock) GetCalls ¶
func (mock *SecretListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSecretLister.GetCalls())
type SecretsGetterMock ¶
type SecretsGetterMock struct { // SecretsFunc mocks the Secrets method. SecretsFunc func(namespace string) v1a.SecretInterface // contains filtered or unexported fields }
SecretsGetterMock is a mock implementation of SecretsGetter.
func TestSomethingThatUsesSecretsGetter(t *testing.T) { // make and configure a mocked SecretsGetter mockedSecretsGetter := &SecretsGetterMock{ SecretsFunc: func(namespace string) v1a.SecretInterface { panic("mock out the Secrets method") }, } // use mockedSecretsGetter in code that requires SecretsGetter // and then make assertions. }
func (*SecretsGetterMock) Secrets ¶
func (mock *SecretsGetterMock) Secrets(namespace string) v1a.SecretInterface
Secrets calls SecretsFunc.
func (*SecretsGetterMock) SecretsCalls ¶
func (mock *SecretsGetterMock) SecretsCalls() []struct { Namespace string }
SecretsCalls gets all the calls that were made to Secrets. Check the length with:
len(mockedSecretsGetter.SecretsCalls())
type ServiceAccountControllerMock ¶
type ServiceAccountControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ServiceAccountHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ServiceAccountLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ServiceAccountControllerMock is a mock implementation of ServiceAccountController.
func TestSomethingThatUsesServiceAccountController(t *testing.T) { // make and configure a mocked ServiceAccountController mockedServiceAccountController := &ServiceAccountControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ServiceAccountHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ServiceAccountLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedServiceAccountController in code that requires ServiceAccountController // and then make assertions. }
func (*ServiceAccountControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceAccountControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceAccountControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceAccountControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ServiceAccountHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceAccountController.AddClusterScopedFeatureHandlerCalls())
func (*ServiceAccountControllerMock) AddClusterScopedHandler ¶
func (mock *ServiceAccountControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ServiceAccountHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceAccountControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceAccountControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ServiceAccountHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceAccountController.AddClusterScopedHandlerCalls())
func (*ServiceAccountControllerMock) AddFeatureHandler ¶
func (mock *ServiceAccountControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceAccountControllerMock) AddFeatureHandlerCalls ¶
func (mock *ServiceAccountControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceAccountHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceAccountController.AddFeatureHandlerCalls())
func (*ServiceAccountControllerMock) AddHandler ¶
func (mock *ServiceAccountControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceAccountHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceAccountControllerMock) AddHandlerCalls ¶
func (mock *ServiceAccountControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ServiceAccountHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceAccountController.AddHandlerCalls())
func (*ServiceAccountControllerMock) Enqueue ¶
func (mock *ServiceAccountControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceAccountControllerMock) EnqueueAfter ¶
func (mock *ServiceAccountControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ServiceAccountControllerMock) EnqueueAfterCalls ¶
func (mock *ServiceAccountControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedServiceAccountController.EnqueueAfterCalls())
func (*ServiceAccountControllerMock) EnqueueCalls ¶
func (mock *ServiceAccountControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceAccountController.EnqueueCalls())
func (*ServiceAccountControllerMock) Generic ¶
func (mock *ServiceAccountControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ServiceAccountControllerMock) GenericCalls ¶
func (mock *ServiceAccountControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedServiceAccountController.GenericCalls())
func (*ServiceAccountControllerMock) Informer ¶
func (mock *ServiceAccountControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceAccountControllerMock) InformerCalls ¶
func (mock *ServiceAccountControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceAccountController.InformerCalls())
func (*ServiceAccountControllerMock) Lister ¶
func (mock *ServiceAccountControllerMock) Lister() v1a.ServiceAccountLister
Lister calls ListerFunc.
func (*ServiceAccountControllerMock) ListerCalls ¶
func (mock *ServiceAccountControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedServiceAccountController.ListerCalls())
func (*ServiceAccountControllerMock) Start ¶
func (mock *ServiceAccountControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ServiceAccountControllerMock) StartCalls ¶
func (mock *ServiceAccountControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedServiceAccountController.StartCalls())
func (*ServiceAccountControllerMock) Sync ¶
func (mock *ServiceAccountControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ServiceAccountControllerMock) SyncCalls ¶
func (mock *ServiceAccountControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedServiceAccountController.SyncCalls())
type ServiceAccountInterfaceMock ¶
type ServiceAccountInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceAccountLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ServiceAccountHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ServiceAccountLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ServiceAccountController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ServiceAccount, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceAccount, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceAccountList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceAccountInterfaceMock is a mock implementation of ServiceAccountInterface.
func TestSomethingThatUsesServiceAccountInterface(t *testing.T) { // make and configure a mocked ServiceAccountInterface mockedServiceAccountInterface := &ServiceAccountInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceAccountLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ServiceAccountHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ServiceAccountLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ServiceAccountController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ServiceAccount, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceAccount, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceAccountInterface in code that requires ServiceAccountInterface // and then make assertions. }
func (*ServiceAccountInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceAccountInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ServiceAccountHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceAccountInterface.AddClusterScopedFeatureHandlerCalls())
func (*ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ServiceAccountLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedServiceAccountInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ServiceAccountInterfaceMock) AddClusterScopedHandler ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ServiceAccountHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceAccountInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ServiceAccountHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceAccountInterface.AddClusterScopedHandlerCalls())
func (*ServiceAccountInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceAccountLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ServiceAccountInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ServiceAccountInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ServiceAccountLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedServiceAccountInterface.AddClusterScopedLifecycleCalls())
func (*ServiceAccountInterfaceMock) AddFeatureHandler ¶
func (mock *ServiceAccountInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceAccountHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceAccountInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ServiceAccountInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceAccountHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceAccountInterface.AddFeatureHandlerCalls())
func (*ServiceAccountInterfaceMock) AddFeatureLifecycle ¶
func (mock *ServiceAccountInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceAccountLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ServiceAccountInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ServiceAccountInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ServiceAccountLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedServiceAccountInterface.AddFeatureLifecycleCalls())
func (*ServiceAccountInterfaceMock) AddHandler ¶
func (mock *ServiceAccountInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceAccountHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceAccountInterfaceMock) AddHandlerCalls ¶
func (mock *ServiceAccountInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ServiceAccountHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceAccountInterface.AddHandlerCalls())
func (*ServiceAccountInterfaceMock) AddLifecycle ¶
func (mock *ServiceAccountInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceAccountLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ServiceAccountInterfaceMock) AddLifecycleCalls ¶
func (mock *ServiceAccountInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ServiceAccountLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedServiceAccountInterface.AddLifecycleCalls())
func (*ServiceAccountInterfaceMock) Controller ¶
func (mock *ServiceAccountInterfaceMock) Controller() v1a.ServiceAccountController
Controller calls ControllerFunc.
func (*ServiceAccountInterfaceMock) ControllerCalls ¶
func (mock *ServiceAccountInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedServiceAccountInterface.ControllerCalls())
func (*ServiceAccountInterfaceMock) Create ¶
func (mock *ServiceAccountInterfaceMock) Create(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error)
Create calls CreateFunc.
func (*ServiceAccountInterfaceMock) CreateCalls ¶
func (mock *ServiceAccountInterfaceMock) CreateCalls() []struct { In1 *v1.ServiceAccount }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceAccountInterface.CreateCalls())
func (*ServiceAccountInterfaceMock) Delete ¶
func (mock *ServiceAccountInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceAccountInterfaceMock) DeleteCalls ¶
func (mock *ServiceAccountInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceAccountInterface.DeleteCalls())
func (*ServiceAccountInterfaceMock) DeleteCollection ¶
func (mock *ServiceAccountInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ServiceAccountInterfaceMock) DeleteCollectionCalls ¶
func (mock *ServiceAccountInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedServiceAccountInterface.DeleteCollectionCalls())
func (*ServiceAccountInterfaceMock) DeleteNamespaced ¶
func (mock *ServiceAccountInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ServiceAccountInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ServiceAccountInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedServiceAccountInterface.DeleteNamespacedCalls())
func (*ServiceAccountInterfaceMock) Get ¶
func (mock *ServiceAccountInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ServiceAccount, error)
Get calls GetFunc.
func (*ServiceAccountInterfaceMock) GetCalls ¶
func (mock *ServiceAccountInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountInterface.GetCalls())
func (*ServiceAccountInterfaceMock) GetNamespaced ¶
func (mock *ServiceAccountInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceAccount, error)
GetNamespaced calls GetNamespacedFunc.
func (*ServiceAccountInterfaceMock) GetNamespacedCalls ¶
func (mock *ServiceAccountInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedServiceAccountInterface.GetNamespacedCalls())
func (*ServiceAccountInterfaceMock) List ¶
func (mock *ServiceAccountInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
List calls ListFunc.
func (*ServiceAccountInterfaceMock) ListCalls ¶
func (mock *ServiceAccountInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceAccountInterface.ListCalls())
func (*ServiceAccountInterfaceMock) ListNamespaced ¶
func (mock *ServiceAccountInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ServiceAccountInterfaceMock) ListNamespacedCalls ¶
func (mock *ServiceAccountInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedServiceAccountInterface.ListNamespacedCalls())
func (*ServiceAccountInterfaceMock) ObjectClient ¶
func (mock *ServiceAccountInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ServiceAccountInterfaceMock) ObjectClientCalls ¶
func (mock *ServiceAccountInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedServiceAccountInterface.ObjectClientCalls())
func (*ServiceAccountInterfaceMock) Update ¶
func (mock *ServiceAccountInterfaceMock) Update(in1 *v1.ServiceAccount) (*v1.ServiceAccount, error)
Update calls UpdateFunc.
func (*ServiceAccountInterfaceMock) UpdateCalls ¶
func (mock *ServiceAccountInterfaceMock) UpdateCalls() []struct { In1 *v1.ServiceAccount }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceAccountInterface.UpdateCalls())
func (*ServiceAccountInterfaceMock) Watch ¶
func (mock *ServiceAccountInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceAccountInterfaceMock) WatchCalls ¶
func (mock *ServiceAccountInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceAccountInterface.WatchCalls())
type ServiceAccountListerMock ¶
type ServiceAccountListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ServiceAccount, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error) // contains filtered or unexported fields }
ServiceAccountListerMock is a mock implementation of ServiceAccountLister.
func TestSomethingThatUsesServiceAccountLister(t *testing.T) { // make and configure a mocked ServiceAccountLister mockedServiceAccountLister := &ServiceAccountListerMock{ GetFunc: func(namespace string, name string) (*v1.ServiceAccount, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error) { panic("mock out the List method") }, } // use mockedServiceAccountLister in code that requires ServiceAccountLister // and then make assertions. }
func (*ServiceAccountListerMock) Get ¶
func (mock *ServiceAccountListerMock) Get(namespace string, name string) (*v1.ServiceAccount, error)
Get calls GetFunc.
func (*ServiceAccountListerMock) GetCalls ¶
func (mock *ServiceAccountListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountLister.GetCalls())
func (*ServiceAccountListerMock) List ¶
func (mock *ServiceAccountListerMock) List(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error)
List calls ListFunc.
type ServiceAccountsGetterMock ¶
type ServiceAccountsGetterMock struct { // ServiceAccountsFunc mocks the ServiceAccounts method. ServiceAccountsFunc func(namespace string) v1a.ServiceAccountInterface // contains filtered or unexported fields }
ServiceAccountsGetterMock is a mock implementation of ServiceAccountsGetter.
func TestSomethingThatUsesServiceAccountsGetter(t *testing.T) { // make and configure a mocked ServiceAccountsGetter mockedServiceAccountsGetter := &ServiceAccountsGetterMock{ ServiceAccountsFunc: func(namespace string) v1a.ServiceAccountInterface { panic("mock out the ServiceAccounts method") }, } // use mockedServiceAccountsGetter in code that requires ServiceAccountsGetter // and then make assertions. }
func (*ServiceAccountsGetterMock) ServiceAccounts ¶
func (mock *ServiceAccountsGetterMock) ServiceAccounts(namespace string) v1a.ServiceAccountInterface
ServiceAccounts calls ServiceAccountsFunc.
func (*ServiceAccountsGetterMock) ServiceAccountsCalls ¶
func (mock *ServiceAccountsGetterMock) ServiceAccountsCalls() []struct { Namespace string }
ServiceAccountsCalls gets all the calls that were made to ServiceAccounts. Check the length with:
len(mockedServiceAccountsGetter.ServiceAccountsCalls())
type ServiceControllerMock ¶
type ServiceControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ServiceHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ServiceHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ServiceLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ServiceControllerMock is a mock implementation of ServiceController.
func TestSomethingThatUsesServiceController(t *testing.T) { // make and configure a mocked ServiceController mockedServiceController := &ServiceControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ServiceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ServiceHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ServiceLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedServiceController in code that requires ServiceController // and then make assertions. }
func (*ServiceControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ServiceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceController.AddClusterScopedFeatureHandlerCalls())
func (*ServiceControllerMock) AddClusterScopedHandler ¶
func (mock *ServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ServiceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ServiceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceController.AddClusterScopedHandlerCalls())
func (*ServiceControllerMock) AddFeatureHandler ¶
func (mock *ServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceControllerMock) AddFeatureHandlerCalls ¶
func (mock *ServiceControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceController.AddFeatureHandlerCalls())
func (*ServiceControllerMock) AddHandler ¶
func (mock *ServiceControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceControllerMock) AddHandlerCalls ¶
func (mock *ServiceControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ServiceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceController.AddHandlerCalls())
func (*ServiceControllerMock) Enqueue ¶
func (mock *ServiceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceControllerMock) EnqueueAfter ¶
func (mock *ServiceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ServiceControllerMock) EnqueueAfterCalls ¶
func (mock *ServiceControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedServiceController.EnqueueAfterCalls())
func (*ServiceControllerMock) EnqueueCalls ¶
func (mock *ServiceControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceController.EnqueueCalls())
func (*ServiceControllerMock) Generic ¶
func (mock *ServiceControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ServiceControllerMock) GenericCalls ¶
func (mock *ServiceControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedServiceController.GenericCalls())
func (*ServiceControllerMock) Informer ¶
func (mock *ServiceControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceControllerMock) InformerCalls ¶
func (mock *ServiceControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceController.InformerCalls())
func (*ServiceControllerMock) Lister ¶
func (mock *ServiceControllerMock) Lister() v1a.ServiceLister
Lister calls ListerFunc.
func (*ServiceControllerMock) ListerCalls ¶
func (mock *ServiceControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedServiceController.ListerCalls())
func (*ServiceControllerMock) Start ¶
func (mock *ServiceControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ServiceControllerMock) StartCalls ¶
func (mock *ServiceControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedServiceController.StartCalls())
func (*ServiceControllerMock) Sync ¶
func (mock *ServiceControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ServiceControllerMock) SyncCalls ¶
func (mock *ServiceControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedServiceController.SyncCalls())
type ServiceInterfaceMock ¶
type ServiceInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ServiceHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ServiceHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ServiceLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ServiceController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Service) (*v1.Service, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Service, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Service, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Service) (*v1.Service, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceInterfaceMock is a mock implementation of ServiceInterface.
func TestSomethingThatUsesServiceInterface(t *testing.T) { // make and configure a mocked ServiceInterface mockedServiceInterface := &ServiceInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ServiceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ServiceHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ServiceLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ServiceController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Service) (*v1.Service, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Service, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Service, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Service) (*v1.Service, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceInterface in code that requires ServiceInterface // and then make assertions. }
func (*ServiceInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ServiceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceInterface.AddClusterScopedFeatureHandlerCalls())
func (*ServiceInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ServiceLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedServiceInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ServiceInterfaceMock) AddClusterScopedHandler ¶
func (mock *ServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ServiceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ServiceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceInterface.AddClusterScopedHandlerCalls())
func (*ServiceInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ServiceInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ServiceLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedServiceInterface.AddClusterScopedLifecycleCalls())
func (*ServiceInterfaceMock) AddFeatureHandler ¶
func (mock *ServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ServiceInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceInterface.AddFeatureHandlerCalls())
func (*ServiceInterfaceMock) AddFeatureLifecycle ¶
func (mock *ServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ServiceInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ServiceInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ServiceLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedServiceInterface.AddFeatureLifecycleCalls())
func (*ServiceInterfaceMock) AddHandler ¶
func (mock *ServiceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceInterfaceMock) AddHandlerCalls ¶
func (mock *ServiceInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ServiceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceInterface.AddHandlerCalls())
func (*ServiceInterfaceMock) AddLifecycle ¶
func (mock *ServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ServiceInterfaceMock) AddLifecycleCalls ¶
func (mock *ServiceInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ServiceLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedServiceInterface.AddLifecycleCalls())
func (*ServiceInterfaceMock) Controller ¶
func (mock *ServiceInterfaceMock) Controller() v1a.ServiceController
Controller calls ControllerFunc.
func (*ServiceInterfaceMock) ControllerCalls ¶
func (mock *ServiceInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedServiceInterface.ControllerCalls())
func (*ServiceInterfaceMock) CreateCalls ¶
func (mock *ServiceInterfaceMock) CreateCalls() []struct { In1 *v1.Service }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceInterface.CreateCalls())
func (*ServiceInterfaceMock) Delete ¶
func (mock *ServiceInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceInterfaceMock) DeleteCalls ¶
func (mock *ServiceInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceInterface.DeleteCalls())
func (*ServiceInterfaceMock) DeleteCollection ¶
func (mock *ServiceInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ServiceInterfaceMock) DeleteCollectionCalls ¶
func (mock *ServiceInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedServiceInterface.DeleteCollectionCalls())
func (*ServiceInterfaceMock) DeleteNamespaced ¶
func (mock *ServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ServiceInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ServiceInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedServiceInterface.DeleteNamespacedCalls())
func (*ServiceInterfaceMock) Get ¶
func (mock *ServiceInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Service, error)
Get calls GetFunc.
func (*ServiceInterfaceMock) GetCalls ¶
func (mock *ServiceInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceInterface.GetCalls())
func (*ServiceInterfaceMock) GetNamespaced ¶
func (mock *ServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Service, error)
GetNamespaced calls GetNamespacedFunc.
func (*ServiceInterfaceMock) GetNamespacedCalls ¶
func (mock *ServiceInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedServiceInterface.GetNamespacedCalls())
func (*ServiceInterfaceMock) List ¶
func (mock *ServiceInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceList, error)
List calls ListFunc.
func (*ServiceInterfaceMock) ListCalls ¶
func (mock *ServiceInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceInterface.ListCalls())
func (*ServiceInterfaceMock) ListNamespaced ¶
func (mock *ServiceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ServiceInterfaceMock) ListNamespacedCalls ¶
func (mock *ServiceInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedServiceInterface.ListNamespacedCalls())
func (*ServiceInterfaceMock) ObjectClient ¶
func (mock *ServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ServiceInterfaceMock) ObjectClientCalls ¶
func (mock *ServiceInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedServiceInterface.ObjectClientCalls())
func (*ServiceInterfaceMock) UpdateCalls ¶
func (mock *ServiceInterfaceMock) UpdateCalls() []struct { In1 *v1.Service }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceInterface.UpdateCalls())
func (*ServiceInterfaceMock) Watch ¶
func (mock *ServiceInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceInterfaceMock) WatchCalls ¶
func (mock *ServiceInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceInterface.WatchCalls())
type ServiceListerMock ¶
type ServiceListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Service, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Service, error) // contains filtered or unexported fields }
ServiceListerMock is a mock implementation of ServiceLister.
func TestSomethingThatUsesServiceLister(t *testing.T) { // make and configure a mocked ServiceLister mockedServiceLister := &ServiceListerMock{ GetFunc: func(namespace string, name string) (*v1.Service, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Service, error) { panic("mock out the List method") }, } // use mockedServiceLister in code that requires ServiceLister // and then make assertions. }
func (*ServiceListerMock) GetCalls ¶
func (mock *ServiceListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceLister.GetCalls())
type ServicesGetterMock ¶
type ServicesGetterMock struct { // ServicesFunc mocks the Services method. ServicesFunc func(namespace string) v1a.ServiceInterface // contains filtered or unexported fields }
ServicesGetterMock is a mock implementation of ServicesGetter.
func TestSomethingThatUsesServicesGetter(t *testing.T) { // make and configure a mocked ServicesGetter mockedServicesGetter := &ServicesGetterMock{ ServicesFunc: func(namespace string) v1a.ServiceInterface { panic("mock out the Services method") }, } // use mockedServicesGetter in code that requires ServicesGetter // and then make assertions. }
func (*ServicesGetterMock) Services ¶
func (mock *ServicesGetterMock) Services(namespace string) v1a.ServiceInterface
Services calls ServicesFunc.
func (*ServicesGetterMock) ServicesCalls ¶
func (mock *ServicesGetterMock) ServicesCalls() []struct { Namespace string }
ServicesCalls gets all the calls that were made to Services. Check the length with:
len(mockedServicesGetter.ServicesCalls())
Source Files ¶
- zz_generated_component_status_mock.go
- zz_generated_config_map_mock.go
- zz_generated_endpoints_mock.go
- zz_generated_event_mock.go
- zz_generated_limit_range_mock.go
- zz_generated_namespace_mock.go
- zz_generated_node_mock.go
- zz_generated_persistent_volume_claim_mock.go
- zz_generated_pod_mock.go
- zz_generated_replication_controller_mock.go
- zz_generated_resource_quota_mock.go
- zz_generated_secret_mock.go
- zz_generated_service_account_mock.go
- zz_generated_service_mock.go