Documentation ¶
Index ¶
- type HorizontalPodAutoscalerControllerMock
- func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *HorizontalPodAutoscalerControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *HorizontalPodAutoscalerControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) Enqueue(namespace string, name string)
- func (mock *HorizontalPodAutoscalerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *HorizontalPodAutoscalerControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) Generic() controller.GenericController
- func (mock *HorizontalPodAutoscalerControllerMock) GenericCalls() []struct{}
- func (mock *HorizontalPodAutoscalerControllerMock) Informer() cache.SharedIndexInformer
- func (mock *HorizontalPodAutoscalerControllerMock) InformerCalls() []struct{}
- func (mock *HorizontalPodAutoscalerControllerMock) Lister() v2beta2a.HorizontalPodAutoscalerLister
- func (mock *HorizontalPodAutoscalerControllerMock) ListerCalls() []struct{}
- func (mock *HorizontalPodAutoscalerControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *HorizontalPodAutoscalerControllerMock) StartCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerControllerMock) Sync(ctx context.Context) error
- func (mock *HorizontalPodAutoscalerControllerMock) SyncCalls() []struct{ ... }
- type HorizontalPodAutoscalerInterfaceMock
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddLifecycle(ctx context.Context, name string, ...)
- func (mock *HorizontalPodAutoscalerInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) Controller() v2beta2a.HorizontalPodAutoscalerController
- func (mock *HorizontalPodAutoscalerInterfaceMock) ControllerCalls() []struct{}
- func (mock *HorizontalPodAutoscalerInterfaceMock) Create(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) Get(name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) GetCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) List(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) ListCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *HorizontalPodAutoscalerInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *HorizontalPodAutoscalerInterfaceMock) Update(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *HorizontalPodAutoscalerInterfaceMock) WatchCalls() []struct{ ... }
- type HorizontalPodAutoscalerListerMock
- func (mock *HorizontalPodAutoscalerListerMock) Get(namespace string, name string) (*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerListerMock) GetCalls() []struct{ ... }
- func (mock *HorizontalPodAutoscalerListerMock) List(namespace string, selector labels.Selector) ([]*v2beta2.HorizontalPodAutoscaler, error)
- func (mock *HorizontalPodAutoscalerListerMock) ListCalls() []struct{ ... }
- type HorizontalPodAutoscalersGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HorizontalPodAutoscalerControllerMock ¶
type HorizontalPodAutoscalerControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) // 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() v2beta2a.HorizontalPodAutoscalerLister // 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 }
HorizontalPodAutoscalerControllerMock is a mock implementation of HorizontalPodAutoscalerController.
func TestSomethingThatUsesHorizontalPodAutoscalerController(t *testing.T) { // make and configure a mocked HorizontalPodAutoscalerController mockedHorizontalPodAutoscalerController := &HorizontalPodAutoscalerControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc) { 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() v2beta2a.HorizontalPodAutoscalerLister { 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 mockedHorizontalPodAutoscalerController in code that requires HorizontalPodAutoscalerController // and then make assertions. }
func (*HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedHorizontalPodAutoscalerController.AddClusterScopedFeatureHandlerCalls())
func (*HorizontalPodAutoscalerControllerMock) AddClusterScopedHandler ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*HorizontalPodAutoscalerControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedHorizontalPodAutoscalerController.AddClusterScopedHandlerCalls())
func (*HorizontalPodAutoscalerControllerMock) AddFeatureHandler ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*HorizontalPodAutoscalerControllerMock) AddFeatureHandlerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedHorizontalPodAutoscalerController.AddFeatureHandlerCalls())
func (*HorizontalPodAutoscalerControllerMock) AddHandler ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddHandler(ctx context.Context, name string, handler v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*HorizontalPodAutoscalerControllerMock) AddHandlerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedHorizontalPodAutoscalerController.AddHandlerCalls())
func (*HorizontalPodAutoscalerControllerMock) Enqueue ¶
func (mock *HorizontalPodAutoscalerControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*HorizontalPodAutoscalerControllerMock) EnqueueAfter ¶
func (mock *HorizontalPodAutoscalerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*HorizontalPodAutoscalerControllerMock) EnqueueAfterCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedHorizontalPodAutoscalerController.EnqueueAfterCalls())
func (*HorizontalPodAutoscalerControllerMock) EnqueueCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedHorizontalPodAutoscalerController.EnqueueCalls())
func (*HorizontalPodAutoscalerControllerMock) Generic ¶
func (mock *HorizontalPodAutoscalerControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*HorizontalPodAutoscalerControllerMock) GenericCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedHorizontalPodAutoscalerController.GenericCalls())
func (*HorizontalPodAutoscalerControllerMock) Informer ¶
func (mock *HorizontalPodAutoscalerControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*HorizontalPodAutoscalerControllerMock) InformerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedHorizontalPodAutoscalerController.InformerCalls())
func (*HorizontalPodAutoscalerControllerMock) Lister ¶
func (mock *HorizontalPodAutoscalerControllerMock) Lister() v2beta2a.HorizontalPodAutoscalerLister
Lister calls ListerFunc.
func (*HorizontalPodAutoscalerControllerMock) ListerCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedHorizontalPodAutoscalerController.ListerCalls())
func (*HorizontalPodAutoscalerControllerMock) Start ¶
func (mock *HorizontalPodAutoscalerControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*HorizontalPodAutoscalerControllerMock) StartCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedHorizontalPodAutoscalerController.StartCalls())
func (*HorizontalPodAutoscalerControllerMock) Sync ¶
func (mock *HorizontalPodAutoscalerControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*HorizontalPodAutoscalerControllerMock) SyncCalls ¶
func (mock *HorizontalPodAutoscalerControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedHorizontalPodAutoscalerController.SyncCalls())
type HorizontalPodAutoscalerInterfaceMock ¶
type HorizontalPodAutoscalerInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v2beta2a.HorizontalPodAutoscalerController // CreateFunc mocks the Create method. CreateFunc func(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
HorizontalPodAutoscalerInterfaceMock is a mock implementation of HorizontalPodAutoscalerInterface.
func TestSomethingThatUsesHorizontalPodAutoscalerInterface(t *testing.T) { // make and configure a mocked HorizontalPodAutoscalerInterface mockedHorizontalPodAutoscalerInterface := &HorizontalPodAutoscalerInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v2beta2a.HorizontalPodAutoscalerController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedHorizontalPodAutoscalerInterface in code that requires HorizontalPodAutoscalerInterface // and then make assertions. }
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddClusterScopedFeatureHandlerCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddClusterScopedFeatureLifecycleCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandler ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddClusterScopedHandlerCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddClusterScopedLifecycleCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddFeatureHandler ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddFeatureHandlerCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycle ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddFeatureLifecycleCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddHandler ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddHandler(ctx context.Context, name string, sync v2beta2a.HorizontalPodAutoscalerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddHandlerCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v2beta2a.HorizontalPodAutoscalerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddHandlerCalls())
func (*HorizontalPodAutoscalerInterfaceMock) AddLifecycle ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*HorizontalPodAutoscalerInterfaceMock) AddLifecycleCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v2beta2a.HorizontalPodAutoscalerLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.AddLifecycleCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Controller ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Controller() v2beta2a.HorizontalPodAutoscalerController
Controller calls ControllerFunc.
func (*HorizontalPodAutoscalerInterfaceMock) ControllerCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.ControllerCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Create ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Create(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error)
Create calls CreateFunc.
func (*HorizontalPodAutoscalerInterfaceMock) CreateCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) CreateCalls() []struct { In1 *v2beta2.HorizontalPodAutoscaler }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.CreateCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Delete ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*HorizontalPodAutoscalerInterfaceMock) DeleteCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.DeleteCalls())
func (*HorizontalPodAutoscalerInterfaceMock) DeleteCollection ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*HorizontalPodAutoscalerInterfaceMock) DeleteCollectionCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.DeleteCollectionCalls())
func (*HorizontalPodAutoscalerInterfaceMock) DeleteNamespaced ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*HorizontalPodAutoscalerInterfaceMock) DeleteNamespacedCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.DeleteNamespacedCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Get ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Get(name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error)
Get calls GetFunc.
func (*HorizontalPodAutoscalerInterfaceMock) GetCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.GetCalls())
func (*HorizontalPodAutoscalerInterfaceMock) GetNamespaced ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error)
GetNamespaced calls GetNamespacedFunc.
func (*HorizontalPodAutoscalerInterfaceMock) GetNamespacedCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.GetNamespacedCalls())
func (*HorizontalPodAutoscalerInterfaceMock) List ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) List(opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error)
List calls ListFunc.
func (*HorizontalPodAutoscalerInterfaceMock) ListCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.ListCalls())
func (*HorizontalPodAutoscalerInterfaceMock) ListNamespaced ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v2beta2a.HorizontalPodAutoscalerList, error)
ListNamespaced calls ListNamespacedFunc.
func (*HorizontalPodAutoscalerInterfaceMock) ListNamespacedCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.ListNamespacedCalls())
func (*HorizontalPodAutoscalerInterfaceMock) ObjectClient ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*HorizontalPodAutoscalerInterfaceMock) ObjectClientCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.ObjectClientCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Update ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Update(in1 *v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error)
Update calls UpdateFunc.
func (*HorizontalPodAutoscalerInterfaceMock) UpdateCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) UpdateCalls() []struct { In1 *v2beta2.HorizontalPodAutoscaler }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.UpdateCalls())
func (*HorizontalPodAutoscalerInterfaceMock) Watch ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*HorizontalPodAutoscalerInterfaceMock) WatchCalls ¶
func (mock *HorizontalPodAutoscalerInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedHorizontalPodAutoscalerInterface.WatchCalls())
type HorizontalPodAutoscalerListerMock ¶
type HorizontalPodAutoscalerListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v2beta2.HorizontalPodAutoscaler, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v2beta2.HorizontalPodAutoscaler, error) // contains filtered or unexported fields }
HorizontalPodAutoscalerListerMock is a mock implementation of HorizontalPodAutoscalerLister.
func TestSomethingThatUsesHorizontalPodAutoscalerLister(t *testing.T) { // make and configure a mocked HorizontalPodAutoscalerLister mockedHorizontalPodAutoscalerLister := &HorizontalPodAutoscalerListerMock{ GetFunc: func(namespace string, name string) (*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v2beta2.HorizontalPodAutoscaler, error) { panic("mock out the List method") }, } // use mockedHorizontalPodAutoscalerLister in code that requires HorizontalPodAutoscalerLister // and then make assertions. }
func (*HorizontalPodAutoscalerListerMock) Get ¶
func (mock *HorizontalPodAutoscalerListerMock) Get(namespace string, name string) (*v2beta2.HorizontalPodAutoscaler, error)
Get calls GetFunc.
func (*HorizontalPodAutoscalerListerMock) GetCalls ¶
func (mock *HorizontalPodAutoscalerListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedHorizontalPodAutoscalerLister.GetCalls())
func (*HorizontalPodAutoscalerListerMock) List ¶
func (mock *HorizontalPodAutoscalerListerMock) List(namespace string, selector labels.Selector) ([]*v2beta2.HorizontalPodAutoscaler, error)
List calls ListFunc.
type HorizontalPodAutoscalersGetterMock ¶
type HorizontalPodAutoscalersGetterMock struct { // HorizontalPodAutoscalersFunc mocks the HorizontalPodAutoscalers method. HorizontalPodAutoscalersFunc func(namespace string) v2beta2a.HorizontalPodAutoscalerInterface // contains filtered or unexported fields }
HorizontalPodAutoscalersGetterMock is a mock implementation of HorizontalPodAutoscalersGetter.
func TestSomethingThatUsesHorizontalPodAutoscalersGetter(t *testing.T) { // make and configure a mocked HorizontalPodAutoscalersGetter mockedHorizontalPodAutoscalersGetter := &HorizontalPodAutoscalersGetterMock{ HorizontalPodAutoscalersFunc: func(namespace string) v2beta2a.HorizontalPodAutoscalerInterface { panic("mock out the HorizontalPodAutoscalers method") }, } // use mockedHorizontalPodAutoscalersGetter in code that requires HorizontalPodAutoscalersGetter // and then make assertions. }
func (*HorizontalPodAutoscalersGetterMock) HorizontalPodAutoscalers ¶
func (mock *HorizontalPodAutoscalersGetterMock) HorizontalPodAutoscalers(namespace string) v2beta2a.HorizontalPodAutoscalerInterface
HorizontalPodAutoscalers calls HorizontalPodAutoscalersFunc.
func (*HorizontalPodAutoscalersGetterMock) HorizontalPodAutoscalersCalls ¶
func (mock *HorizontalPodAutoscalersGetterMock) HorizontalPodAutoscalersCalls() []struct { Namespace string }
HorizontalPodAutoscalersCalls gets all the calls that were made to HorizontalPodAutoscalers. Check the length with:
len(mockedHorizontalPodAutoscalersGetter.HorizontalPodAutoscalersCalls())