Documentation ¶
Index ¶
- type ClusterAuthTokenControllerMock
- func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterAuthTokenControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc)
- func (mock *ClusterAuthTokenControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) Enqueue(namespace string, name string)
- func (mock *ClusterAuthTokenControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ClusterAuthTokenControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterAuthTokenControllerMock) Generic() controller.GenericController
- func (mock *ClusterAuthTokenControllerMock) GenericCalls() []struct{}
- func (mock *ClusterAuthTokenControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterAuthTokenControllerMock) InformerCalls() []struct{}
- func (mock *ClusterAuthTokenControllerMock) Lister() v3.ClusterAuthTokenLister
- func (mock *ClusterAuthTokenControllerMock) ListerCalls() []struct{}
- type ClusterAuthTokenInterfaceMock
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc)
- func (mock *ClusterAuthTokenInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle)
- func (mock *ClusterAuthTokenInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) Controller() v3.ClusterAuthTokenController
- func (mock *ClusterAuthTokenInterfaceMock) ControllerCalls() []struct{}
- func (mock *ClusterAuthTokenInterfaceMock) Create(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *ClusterAuthTokenInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *ClusterAuthTokenInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) List(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)
- func (mock *ClusterAuthTokenInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)
- func (mock *ClusterAuthTokenInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ClusterAuthTokenInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ClusterAuthTokenInterfaceMock) Update(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterAuthTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *ClusterAuthTokenInterfaceMock) WatchCalls() []struct{ ... }
- type ClusterAuthTokenListerMock
- func (mock *ClusterAuthTokenListerMock) Get(namespace string, name string) (*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenListerMock) GetCalls() []struct{ ... }
- func (mock *ClusterAuthTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error)
- func (mock *ClusterAuthTokenListerMock) ListCalls() []struct{ ... }
- type ClusterAuthTokensGetterMock
- type ClusterUserAttributeControllerMock
- func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterUserAttributeControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) AddHandler(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc)
- func (mock *ClusterUserAttributeControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) Enqueue(namespace string, name string)
- func (mock *ClusterUserAttributeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ClusterUserAttributeControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterUserAttributeControllerMock) Generic() controller.GenericController
- func (mock *ClusterUserAttributeControllerMock) GenericCalls() []struct{}
- func (mock *ClusterUserAttributeControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterUserAttributeControllerMock) InformerCalls() []struct{}
- func (mock *ClusterUserAttributeControllerMock) Lister() v3.ClusterUserAttributeLister
- func (mock *ClusterUserAttributeControllerMock) ListerCalls() []struct{}
- type ClusterUserAttributeInterfaceMock
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc)
- func (mock *ClusterUserAttributeInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle)
- func (mock *ClusterUserAttributeInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) Controller() v3.ClusterUserAttributeController
- func (mock *ClusterUserAttributeInterfaceMock) ControllerCalls() []struct{}
- func (mock *ClusterUserAttributeInterfaceMock) Create(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *ClusterUserAttributeInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *ClusterUserAttributeInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) List(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)
- func (mock *ClusterUserAttributeInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)
- func (mock *ClusterUserAttributeInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ClusterUserAttributeInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ClusterUserAttributeInterfaceMock) Update(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterUserAttributeInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *ClusterUserAttributeInterfaceMock) WatchCalls() []struct{ ... }
- type ClusterUserAttributeListerMock
- func (mock *ClusterUserAttributeListerMock) Get(namespace string, name string) (*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeListerMock) GetCalls() []struct{ ... }
- func (mock *ClusterUserAttributeListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error)
- func (mock *ClusterUserAttributeListerMock) ListCalls() []struct{ ... }
- type ClusterUserAttributesGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAuthTokenControllerMock ¶
type ClusterAuthTokenControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc) // 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() v3.ClusterAuthTokenLister // contains filtered or unexported fields }
ClusterAuthTokenControllerMock is a mock implementation of ClusterAuthTokenController.
func TestSomethingThatUsesClusterAuthTokenController(t *testing.T) { // make and configure a mocked ClusterAuthTokenController mockedClusterAuthTokenController := &ClusterAuthTokenControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc) { 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() v3.ClusterAuthTokenLister { panic("mock out the Lister method") }, } // use mockedClusterAuthTokenController in code that requires ClusterAuthTokenController // and then make assertions. }
func (*ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v3.ClusterAuthTokenHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedClusterAuthTokenController.AddClusterScopedFeatureHandlerCalls())
func (*ClusterAuthTokenControllerMock) AddClusterScopedHandler ¶
func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterAuthTokenControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.ClusterAuthTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterAuthTokenController.AddClusterScopedHandlerCalls())
func (*ClusterAuthTokenControllerMock) AddFeatureHandler ¶
func (mock *ClusterAuthTokenControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ClusterAuthTokenControllerMock) AddFeatureHandlerCalls ¶
func (mock *ClusterAuthTokenControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3.ClusterAuthTokenHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedClusterAuthTokenController.AddFeatureHandlerCalls())
func (*ClusterAuthTokenControllerMock) AddHandler ¶
func (mock *ClusterAuthTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterAuthTokenControllerMock) AddHandlerCalls ¶
func (mock *ClusterAuthTokenControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.ClusterAuthTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterAuthTokenController.AddHandlerCalls())
func (*ClusterAuthTokenControllerMock) Enqueue ¶
func (mock *ClusterAuthTokenControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ClusterAuthTokenControllerMock) EnqueueAfter ¶
func (mock *ClusterAuthTokenControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ClusterAuthTokenControllerMock) EnqueueAfterCalls ¶
func (mock *ClusterAuthTokenControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedClusterAuthTokenController.EnqueueAfterCalls())
func (*ClusterAuthTokenControllerMock) EnqueueCalls ¶
func (mock *ClusterAuthTokenControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterAuthTokenController.EnqueueCalls())
func (*ClusterAuthTokenControllerMock) Generic ¶
func (mock *ClusterAuthTokenControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ClusterAuthTokenControllerMock) GenericCalls ¶
func (mock *ClusterAuthTokenControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedClusterAuthTokenController.GenericCalls())
func (*ClusterAuthTokenControllerMock) Informer ¶
func (mock *ClusterAuthTokenControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterAuthTokenControllerMock) InformerCalls ¶
func (mock *ClusterAuthTokenControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterAuthTokenController.InformerCalls())
func (*ClusterAuthTokenControllerMock) Lister ¶
func (mock *ClusterAuthTokenControllerMock) Lister() v3.ClusterAuthTokenLister
Lister calls ListerFunc.
func (*ClusterAuthTokenControllerMock) ListerCalls ¶
func (mock *ClusterAuthTokenControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedClusterAuthTokenController.ListerCalls())
type ClusterAuthTokenInterfaceMock ¶
type ClusterAuthTokenInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.ClusterAuthTokenController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, 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) (*v3.ClusterAuthToken, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ClusterAuthTokenInterfaceMock is a mock implementation of ClusterAuthTokenInterface.
func TestSomethingThatUsesClusterAuthTokenInterface(t *testing.T) { // make and configure a mocked ClusterAuthTokenInterface mockedClusterAuthTokenInterface := &ClusterAuthTokenInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.ClusterAuthTokenController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, 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) (*v3.ClusterAuthToken, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedClusterAuthTokenInterface in code that requires ClusterAuthTokenInterface // and then make assertions. }
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v3.ClusterAuthTokenHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedClusterAuthTokenInterface.AddClusterScopedFeatureHandlerCalls())
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v3.ClusterAuthTokenLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedClusterAuthTokenInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedHandler ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.ClusterAuthTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterAuthTokenInterface.AddClusterScopedHandlerCalls())
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.ClusterAuthTokenLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedClusterAuthTokenInterface.AddClusterScopedLifecycleCalls())
func (*ClusterAuthTokenInterfaceMock) AddFeatureHandler ¶
func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ClusterAuthTokenInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3.ClusterAuthTokenHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedClusterAuthTokenInterface.AddFeatureHandlerCalls())
func (*ClusterAuthTokenInterfaceMock) AddFeatureLifecycle ¶
func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ClusterAuthTokenInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v3.ClusterAuthTokenLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedClusterAuthTokenInterface.AddFeatureLifecycleCalls())
func (*ClusterAuthTokenInterfaceMock) AddHandler ¶
func (mock *ClusterAuthTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterAuthTokenInterfaceMock) AddHandlerCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.ClusterAuthTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterAuthTokenInterface.AddHandlerCalls())
func (*ClusterAuthTokenInterfaceMock) AddLifecycle ¶
func (mock *ClusterAuthTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ClusterAuthTokenInterfaceMock) AddLifecycleCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.ClusterAuthTokenLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedClusterAuthTokenInterface.AddLifecycleCalls())
func (*ClusterAuthTokenInterfaceMock) Controller ¶
func (mock *ClusterAuthTokenInterfaceMock) Controller() v3.ClusterAuthTokenController
Controller calls ControllerFunc.
func (*ClusterAuthTokenInterfaceMock) ControllerCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedClusterAuthTokenInterface.ControllerCalls())
func (*ClusterAuthTokenInterfaceMock) Create ¶
func (mock *ClusterAuthTokenInterfaceMock) Create(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)
Create calls CreateFunc.
func (*ClusterAuthTokenInterfaceMock) CreateCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) CreateCalls() []struct { In1 *v3.ClusterAuthToken }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterAuthTokenInterface.CreateCalls())
func (*ClusterAuthTokenInterfaceMock) Delete ¶
func (mock *ClusterAuthTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterAuthTokenInterfaceMock) DeleteCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterAuthTokenInterface.DeleteCalls())
func (*ClusterAuthTokenInterfaceMock) DeleteCollection ¶
func (mock *ClusterAuthTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ClusterAuthTokenInterfaceMock) DeleteCollectionCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedClusterAuthTokenInterface.DeleteCollectionCalls())
func (*ClusterAuthTokenInterfaceMock) DeleteNamespaced ¶
func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ClusterAuthTokenInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedClusterAuthTokenInterface.DeleteNamespacedCalls())
func (*ClusterAuthTokenInterfaceMock) Get ¶
func (mock *ClusterAuthTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)
Get calls GetFunc.
func (*ClusterAuthTokenInterfaceMock) GetCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterAuthTokenInterface.GetCalls())
func (*ClusterAuthTokenInterfaceMock) GetNamespaced ¶
func (mock *ClusterAuthTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)
GetNamespaced calls GetNamespacedFunc.
func (*ClusterAuthTokenInterfaceMock) GetNamespacedCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedClusterAuthTokenInterface.GetNamespacedCalls())
func (*ClusterAuthTokenInterfaceMock) List ¶
func (mock *ClusterAuthTokenInterfaceMock) List(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)
List calls ListFunc.
func (*ClusterAuthTokenInterfaceMock) ListCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterAuthTokenInterface.ListCalls())
func (*ClusterAuthTokenInterfaceMock) ListNamespaced ¶
func (mock *ClusterAuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ClusterAuthTokenInterfaceMock) ListNamespacedCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedClusterAuthTokenInterface.ListNamespacedCalls())
func (*ClusterAuthTokenInterfaceMock) ObjectClient ¶
func (mock *ClusterAuthTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ClusterAuthTokenInterfaceMock) ObjectClientCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedClusterAuthTokenInterface.ObjectClientCalls())
func (*ClusterAuthTokenInterfaceMock) Update ¶
func (mock *ClusterAuthTokenInterfaceMock) Update(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)
Update calls UpdateFunc.
func (*ClusterAuthTokenInterfaceMock) UpdateCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) UpdateCalls() []struct { In1 *v3.ClusterAuthToken }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterAuthTokenInterface.UpdateCalls())
func (*ClusterAuthTokenInterfaceMock) Watch ¶
func (mock *ClusterAuthTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterAuthTokenInterfaceMock) WatchCalls ¶
func (mock *ClusterAuthTokenInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterAuthTokenInterface.WatchCalls())
type ClusterAuthTokenListerMock ¶
type ClusterAuthTokenListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.ClusterAuthToken, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error) // contains filtered or unexported fields }
ClusterAuthTokenListerMock is a mock implementation of ClusterAuthTokenLister.
func TestSomethingThatUsesClusterAuthTokenLister(t *testing.T) { // make and configure a mocked ClusterAuthTokenLister mockedClusterAuthTokenLister := &ClusterAuthTokenListerMock{ GetFunc: func(namespace string, name string) (*v3.ClusterAuthToken, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error) { panic("mock out the List method") }, } // use mockedClusterAuthTokenLister in code that requires ClusterAuthTokenLister // and then make assertions. }
func (*ClusterAuthTokenListerMock) Get ¶
func (mock *ClusterAuthTokenListerMock) Get(namespace string, name string) (*v3.ClusterAuthToken, error)
Get calls GetFunc.
func (*ClusterAuthTokenListerMock) GetCalls ¶
func (mock *ClusterAuthTokenListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterAuthTokenLister.GetCalls())
func (*ClusterAuthTokenListerMock) List ¶
func (mock *ClusterAuthTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error)
List calls ListFunc.
type ClusterAuthTokensGetterMock ¶
type ClusterAuthTokensGetterMock struct { // ClusterAuthTokensFunc mocks the ClusterAuthTokens method. ClusterAuthTokensFunc func(namespace string) v3.ClusterAuthTokenInterface // contains filtered or unexported fields }
ClusterAuthTokensGetterMock is a mock implementation of ClusterAuthTokensGetter.
func TestSomethingThatUsesClusterAuthTokensGetter(t *testing.T) { // make and configure a mocked ClusterAuthTokensGetter mockedClusterAuthTokensGetter := &ClusterAuthTokensGetterMock{ ClusterAuthTokensFunc: func(namespace string) v3.ClusterAuthTokenInterface { panic("mock out the ClusterAuthTokens method") }, } // use mockedClusterAuthTokensGetter in code that requires ClusterAuthTokensGetter // and then make assertions. }
func (*ClusterAuthTokensGetterMock) ClusterAuthTokens ¶
func (mock *ClusterAuthTokensGetterMock) ClusterAuthTokens(namespace string) v3.ClusterAuthTokenInterface
ClusterAuthTokens calls ClusterAuthTokensFunc.
func (*ClusterAuthTokensGetterMock) ClusterAuthTokensCalls ¶
func (mock *ClusterAuthTokensGetterMock) ClusterAuthTokensCalls() []struct { Namespace string }
ClusterAuthTokensCalls gets all the calls that were made to ClusterAuthTokens. Check the length with:
len(mockedClusterAuthTokensGetter.ClusterAuthTokensCalls())
type ClusterUserAttributeControllerMock ¶
type ClusterUserAttributeControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc) // 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() v3.ClusterUserAttributeLister // contains filtered or unexported fields }
ClusterUserAttributeControllerMock is a mock implementation of ClusterUserAttributeController.
func TestSomethingThatUsesClusterUserAttributeController(t *testing.T) { // make and configure a mocked ClusterUserAttributeController mockedClusterUserAttributeController := &ClusterUserAttributeControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc) { 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() v3.ClusterUserAttributeLister { panic("mock out the Lister method") }, } // use mockedClusterUserAttributeController in code that requires ClusterUserAttributeController // and then make assertions. }
func (*ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v3.ClusterUserAttributeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedClusterUserAttributeController.AddClusterScopedFeatureHandlerCalls())
func (*ClusterUserAttributeControllerMock) AddClusterScopedHandler ¶
func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterUserAttributeControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.ClusterUserAttributeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterUserAttributeController.AddClusterScopedHandlerCalls())
func (*ClusterUserAttributeControllerMock) AddFeatureHandler ¶
func (mock *ClusterUserAttributeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ClusterUserAttributeControllerMock) AddFeatureHandlerCalls ¶
func (mock *ClusterUserAttributeControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3.ClusterUserAttributeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedClusterUserAttributeController.AddFeatureHandlerCalls())
func (*ClusterUserAttributeControllerMock) AddHandler ¶
func (mock *ClusterUserAttributeControllerMock) AddHandler(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterUserAttributeControllerMock) AddHandlerCalls ¶
func (mock *ClusterUserAttributeControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.ClusterUserAttributeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterUserAttributeController.AddHandlerCalls())
func (*ClusterUserAttributeControllerMock) Enqueue ¶
func (mock *ClusterUserAttributeControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ClusterUserAttributeControllerMock) EnqueueAfter ¶
func (mock *ClusterUserAttributeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ClusterUserAttributeControllerMock) EnqueueAfterCalls ¶
func (mock *ClusterUserAttributeControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedClusterUserAttributeController.EnqueueAfterCalls())
func (*ClusterUserAttributeControllerMock) EnqueueCalls ¶
func (mock *ClusterUserAttributeControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterUserAttributeController.EnqueueCalls())
func (*ClusterUserAttributeControllerMock) Generic ¶
func (mock *ClusterUserAttributeControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ClusterUserAttributeControllerMock) GenericCalls ¶
func (mock *ClusterUserAttributeControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedClusterUserAttributeController.GenericCalls())
func (*ClusterUserAttributeControllerMock) Informer ¶
func (mock *ClusterUserAttributeControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterUserAttributeControllerMock) InformerCalls ¶
func (mock *ClusterUserAttributeControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterUserAttributeController.InformerCalls())
func (*ClusterUserAttributeControllerMock) Lister ¶
func (mock *ClusterUserAttributeControllerMock) Lister() v3.ClusterUserAttributeLister
Lister calls ListerFunc.
func (*ClusterUserAttributeControllerMock) ListerCalls ¶
func (mock *ClusterUserAttributeControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedClusterUserAttributeController.ListerCalls())
type ClusterUserAttributeInterfaceMock ¶
type ClusterUserAttributeInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.ClusterUserAttributeController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, 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) (*v3.ClusterUserAttribute, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ClusterUserAttributeInterfaceMock is a mock implementation of ClusterUserAttributeInterface.
func TestSomethingThatUsesClusterUserAttributeInterface(t *testing.T) { // make and configure a mocked ClusterUserAttributeInterface mockedClusterUserAttributeInterface := &ClusterUserAttributeInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.ClusterUserAttributeController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, 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) (*v3.ClusterUserAttribute, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedClusterUserAttributeInterface in code that requires ClusterUserAttributeInterface // and then make assertions. }
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v3.ClusterUserAttributeHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedClusterUserAttributeInterface.AddClusterScopedFeatureHandlerCalls())
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v3.ClusterUserAttributeLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedClusterUserAttributeInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedHandler ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.ClusterUserAttributeHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterUserAttributeInterface.AddClusterScopedHandlerCalls())
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.ClusterUserAttributeLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedClusterUserAttributeInterface.AddClusterScopedLifecycleCalls())
func (*ClusterUserAttributeInterfaceMock) AddFeatureHandler ¶
func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ClusterUserAttributeInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3.ClusterUserAttributeHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedClusterUserAttributeInterface.AddFeatureHandlerCalls())
func (*ClusterUserAttributeInterfaceMock) AddFeatureLifecycle ¶
func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ClusterUserAttributeInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v3.ClusterUserAttributeLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedClusterUserAttributeInterface.AddFeatureLifecycleCalls())
func (*ClusterUserAttributeInterfaceMock) AddHandler ¶
func (mock *ClusterUserAttributeInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterUserAttributeInterfaceMock) AddHandlerCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.ClusterUserAttributeHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterUserAttributeInterface.AddHandlerCalls())
func (*ClusterUserAttributeInterfaceMock) AddLifecycle ¶
func (mock *ClusterUserAttributeInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ClusterUserAttributeInterfaceMock) AddLifecycleCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.ClusterUserAttributeLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedClusterUserAttributeInterface.AddLifecycleCalls())
func (*ClusterUserAttributeInterfaceMock) Controller ¶
func (mock *ClusterUserAttributeInterfaceMock) Controller() v3.ClusterUserAttributeController
Controller calls ControllerFunc.
func (*ClusterUserAttributeInterfaceMock) ControllerCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedClusterUserAttributeInterface.ControllerCalls())
func (*ClusterUserAttributeInterfaceMock) Create ¶
func (mock *ClusterUserAttributeInterfaceMock) Create(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)
Create calls CreateFunc.
func (*ClusterUserAttributeInterfaceMock) CreateCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) CreateCalls() []struct { In1 *v3.ClusterUserAttribute }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterUserAttributeInterface.CreateCalls())
func (*ClusterUserAttributeInterfaceMock) Delete ¶
func (mock *ClusterUserAttributeInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterUserAttributeInterfaceMock) DeleteCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterUserAttributeInterface.DeleteCalls())
func (*ClusterUserAttributeInterfaceMock) DeleteCollection ¶
func (mock *ClusterUserAttributeInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ClusterUserAttributeInterfaceMock) DeleteCollectionCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedClusterUserAttributeInterface.DeleteCollectionCalls())
func (*ClusterUserAttributeInterfaceMock) DeleteNamespaced ¶
func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ClusterUserAttributeInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedClusterUserAttributeInterface.DeleteNamespacedCalls())
func (*ClusterUserAttributeInterfaceMock) Get ¶
func (mock *ClusterUserAttributeInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)
Get calls GetFunc.
func (*ClusterUserAttributeInterfaceMock) GetCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterUserAttributeInterface.GetCalls())
func (*ClusterUserAttributeInterfaceMock) GetNamespaced ¶
func (mock *ClusterUserAttributeInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)
GetNamespaced calls GetNamespacedFunc.
func (*ClusterUserAttributeInterfaceMock) GetNamespacedCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedClusterUserAttributeInterface.GetNamespacedCalls())
func (*ClusterUserAttributeInterfaceMock) List ¶
func (mock *ClusterUserAttributeInterfaceMock) List(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)
List calls ListFunc.
func (*ClusterUserAttributeInterfaceMock) ListCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterUserAttributeInterface.ListCalls())
func (*ClusterUserAttributeInterfaceMock) ListNamespaced ¶
func (mock *ClusterUserAttributeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ClusterUserAttributeInterfaceMock) ListNamespacedCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedClusterUserAttributeInterface.ListNamespacedCalls())
func (*ClusterUserAttributeInterfaceMock) ObjectClient ¶
func (mock *ClusterUserAttributeInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ClusterUserAttributeInterfaceMock) ObjectClientCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedClusterUserAttributeInterface.ObjectClientCalls())
func (*ClusterUserAttributeInterfaceMock) Update ¶
func (mock *ClusterUserAttributeInterfaceMock) Update(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)
Update calls UpdateFunc.
func (*ClusterUserAttributeInterfaceMock) UpdateCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) UpdateCalls() []struct { In1 *v3.ClusterUserAttribute }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterUserAttributeInterface.UpdateCalls())
func (*ClusterUserAttributeInterfaceMock) Watch ¶
func (mock *ClusterUserAttributeInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterUserAttributeInterfaceMock) WatchCalls ¶
func (mock *ClusterUserAttributeInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterUserAttributeInterface.WatchCalls())
type ClusterUserAttributeListerMock ¶
type ClusterUserAttributeListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.ClusterUserAttribute, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error) // contains filtered or unexported fields }
ClusterUserAttributeListerMock is a mock implementation of ClusterUserAttributeLister.
func TestSomethingThatUsesClusterUserAttributeLister(t *testing.T) { // make and configure a mocked ClusterUserAttributeLister mockedClusterUserAttributeLister := &ClusterUserAttributeListerMock{ GetFunc: func(namespace string, name string) (*v3.ClusterUserAttribute, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error) { panic("mock out the List method") }, } // use mockedClusterUserAttributeLister in code that requires ClusterUserAttributeLister // and then make assertions. }
func (*ClusterUserAttributeListerMock) Get ¶
func (mock *ClusterUserAttributeListerMock) Get(namespace string, name string) (*v3.ClusterUserAttribute, error)
Get calls GetFunc.
func (*ClusterUserAttributeListerMock) GetCalls ¶
func (mock *ClusterUserAttributeListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterUserAttributeLister.GetCalls())
func (*ClusterUserAttributeListerMock) List ¶
func (mock *ClusterUserAttributeListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error)
List calls ListFunc.
type ClusterUserAttributesGetterMock ¶
type ClusterUserAttributesGetterMock struct { // ClusterUserAttributesFunc mocks the ClusterUserAttributes method. ClusterUserAttributesFunc func(namespace string) v3.ClusterUserAttributeInterface // contains filtered or unexported fields }
ClusterUserAttributesGetterMock is a mock implementation of ClusterUserAttributesGetter.
func TestSomethingThatUsesClusterUserAttributesGetter(t *testing.T) { // make and configure a mocked ClusterUserAttributesGetter mockedClusterUserAttributesGetter := &ClusterUserAttributesGetterMock{ ClusterUserAttributesFunc: func(namespace string) v3.ClusterUserAttributeInterface { panic("mock out the ClusterUserAttributes method") }, } // use mockedClusterUserAttributesGetter in code that requires ClusterUserAttributesGetter // and then make assertions. }
func (*ClusterUserAttributesGetterMock) ClusterUserAttributes ¶
func (mock *ClusterUserAttributesGetterMock) ClusterUserAttributes(namespace string) v3.ClusterUserAttributeInterface
ClusterUserAttributes calls ClusterUserAttributesFunc.
func (*ClusterUserAttributesGetterMock) ClusterUserAttributesCalls ¶
func (mock *ClusterUserAttributesGetterMock) ClusterUserAttributesCalls() []struct { Namespace string }
ClusterUserAttributesCalls gets all the calls that were made to ClusterUserAttributes. Check the length with:
len(mockedClusterUserAttributesGetter.ClusterUserAttributesCalls())