Documentation ¶
Index ¶
- type AuthProviderControllerMock
- func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthProviderControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthProviderControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) AddHandler(ctx context.Context, name string, handler v3public.AuthProviderHandlerFunc)
- func (mock *AuthProviderControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) Enqueue(namespace string, name string)
- func (mock *AuthProviderControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *AuthProviderControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) Generic() controller.GenericController
- func (mock *AuthProviderControllerMock) GenericCalls() []struct{}
- func (mock *AuthProviderControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AuthProviderControllerMock) InformerCalls() []struct{}
- func (mock *AuthProviderControllerMock) Lister() v3public.AuthProviderLister
- func (mock *AuthProviderControllerMock) ListerCalls() []struct{}
- func (mock *AuthProviderControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *AuthProviderControllerMock) StartCalls() []struct{ ... }
- func (mock *AuthProviderControllerMock) Sync(ctx context.Context) error
- func (mock *AuthProviderControllerMock) SyncCalls() []struct{ ... }
- type AuthProviderInterfaceMock
- func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthProviderInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthProviderInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthProviderInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddHandler(ctx context.Context, name string, sync v3public.AuthProviderHandlerFunc)
- func (mock *AuthProviderInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle)
- func (mock *AuthProviderInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) Controller() v3public.AuthProviderController
- func (mock *AuthProviderInterfaceMock) ControllerCalls() []struct{}
- func (mock *AuthProviderInterfaceMock) Create(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error)
- func (mock *AuthProviderInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *AuthProviderInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *AuthProviderInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *AuthProviderInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) Get(name string, opts v1.GetOptions) (*v3public.AuthProvider, error)
- func (mock *AuthProviderInterfaceMock) GetCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error)
- func (mock *AuthProviderInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) List(opts v1.ListOptions) (*v3public.AuthProviderList, error)
- func (mock *AuthProviderInterfaceMock) ListCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error)
- func (mock *AuthProviderInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *AuthProviderInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *AuthProviderInterfaceMock) Update(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error)
- func (mock *AuthProviderInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *AuthProviderInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *AuthProviderInterfaceMock) WatchCalls() []struct{ ... }
- type AuthProviderListerMock
- func (mock *AuthProviderListerMock) Get(namespace string, name string) (*v3public.AuthProvider, error)
- func (mock *AuthProviderListerMock) GetCalls() []struct{ ... }
- func (mock *AuthProviderListerMock) List(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error)
- func (mock *AuthProviderListerMock) ListCalls() []struct{ ... }
- type AuthProvidersGetterMock
- type AuthTokenControllerMock
- func (mock *AuthTokenControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthTokenControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthTokenControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3public.AuthTokenHandlerFunc)
- func (mock *AuthTokenControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) Enqueue(namespace string, name string)
- func (mock *AuthTokenControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *AuthTokenControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) Generic() controller.GenericController
- func (mock *AuthTokenControllerMock) GenericCalls() []struct{}
- func (mock *AuthTokenControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AuthTokenControllerMock) InformerCalls() []struct{}
- func (mock *AuthTokenControllerMock) Lister() v3public.AuthTokenLister
- func (mock *AuthTokenControllerMock) ListerCalls() []struct{}
- func (mock *AuthTokenControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *AuthTokenControllerMock) StartCalls() []struct{ ... }
- func (mock *AuthTokenControllerMock) Sync(ctx context.Context) error
- func (mock *AuthTokenControllerMock) SyncCalls() []struct{ ... }
- type AuthTokenInterfaceMock
- func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *AuthTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthTokenInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AuthTokenInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3public.AuthTokenHandlerFunc)
- func (mock *AuthTokenInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3public.AuthTokenLifecycle)
- func (mock *AuthTokenInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) Controller() v3public.AuthTokenController
- func (mock *AuthTokenInterfaceMock) ControllerCalls() []struct{}
- func (mock *AuthTokenInterfaceMock) Create(in1 *v3public.AuthToken) (*v3public.AuthToken, error)
- func (mock *AuthTokenInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *AuthTokenInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *AuthTokenInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *AuthTokenInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3public.AuthToken, error)
- func (mock *AuthTokenInterfaceMock) GetCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3public.AuthToken, error)
- func (mock *AuthTokenInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) List(opts v1.ListOptions) (*v3public.AuthTokenList, error)
- func (mock *AuthTokenInterfaceMock) ListCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthTokenList, error)
- func (mock *AuthTokenInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *AuthTokenInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *AuthTokenInterfaceMock) Update(in1 *v3public.AuthToken) (*v3public.AuthToken, error)
- func (mock *AuthTokenInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *AuthTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *AuthTokenInterfaceMock) WatchCalls() []struct{ ... }
- type AuthTokenListerMock
- func (mock *AuthTokenListerMock) Get(namespace string, name string) (*v3public.AuthToken, error)
- func (mock *AuthTokenListerMock) GetCalls() []struct{ ... }
- func (mock *AuthTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3public.AuthToken, error)
- func (mock *AuthTokenListerMock) ListCalls() []struct{ ... }
- type AuthTokensGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProviderControllerMock ¶
type AuthProviderControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3public.AuthProviderHandlerFunc) // 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() v3public.AuthProviderLister // 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 }
AuthProviderControllerMock is a mock implementation of AuthProviderController.
func TestSomethingThatUsesAuthProviderController(t *testing.T) { // make and configure a mocked AuthProviderController mockedAuthProviderController := &AuthProviderControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3public.AuthProviderHandlerFunc) { 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() v3public.AuthProviderLister { 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 mockedAuthProviderController in code that requires AuthProviderController // and then make assertions. }
func (*AuthProviderControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AuthProviderControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v3public.AuthProviderHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAuthProviderController.AddClusterScopedFeatureHandlerCalls())
func (*AuthProviderControllerMock) AddClusterScopedHandler ¶
func (mock *AuthProviderControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AuthProviderControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *AuthProviderControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3public.AuthProviderHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAuthProviderController.AddClusterScopedHandlerCalls())
func (*AuthProviderControllerMock) AddFeatureHandler ¶
func (mock *AuthProviderControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AuthProviderControllerMock) AddFeatureHandlerCalls ¶
func (mock *AuthProviderControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3public.AuthProviderHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAuthProviderController.AddFeatureHandlerCalls())
func (*AuthProviderControllerMock) AddHandler ¶
func (mock *AuthProviderControllerMock) AddHandler(ctx context.Context, name string, handler v3public.AuthProviderHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AuthProviderControllerMock) AddHandlerCalls ¶
func (mock *AuthProviderControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3public.AuthProviderHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAuthProviderController.AddHandlerCalls())
func (*AuthProviderControllerMock) Enqueue ¶
func (mock *AuthProviderControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AuthProviderControllerMock) EnqueueAfter ¶
func (mock *AuthProviderControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*AuthProviderControllerMock) EnqueueAfterCalls ¶
func (mock *AuthProviderControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedAuthProviderController.EnqueueAfterCalls())
func (*AuthProviderControllerMock) EnqueueCalls ¶
func (mock *AuthProviderControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAuthProviderController.EnqueueCalls())
func (*AuthProviderControllerMock) Generic ¶
func (mock *AuthProviderControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*AuthProviderControllerMock) GenericCalls ¶
func (mock *AuthProviderControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedAuthProviderController.GenericCalls())
func (*AuthProviderControllerMock) Informer ¶
func (mock *AuthProviderControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AuthProviderControllerMock) InformerCalls ¶
func (mock *AuthProviderControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAuthProviderController.InformerCalls())
func (*AuthProviderControllerMock) Lister ¶
func (mock *AuthProviderControllerMock) Lister() v3public.AuthProviderLister
Lister calls ListerFunc.
func (*AuthProviderControllerMock) ListerCalls ¶
func (mock *AuthProviderControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedAuthProviderController.ListerCalls())
func (*AuthProviderControllerMock) Start ¶
func (mock *AuthProviderControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*AuthProviderControllerMock) StartCalls ¶
func (mock *AuthProviderControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedAuthProviderController.StartCalls())
func (*AuthProviderControllerMock) Sync ¶
func (mock *AuthProviderControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*AuthProviderControllerMock) SyncCalls ¶
func (mock *AuthProviderControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedAuthProviderController.SyncCalls())
type AuthProviderInterfaceMock ¶
type AuthProviderInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3public.AuthProviderHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthProviderLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3public.AuthProviderHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3public.AuthProviderController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, 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) (*v3public.AuthProvider, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3public.AuthProviderList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
AuthProviderInterfaceMock is a mock implementation of AuthProviderInterface.
func TestSomethingThatUsesAuthProviderInterface(t *testing.T) { // make and configure a mocked AuthProviderInterface mockedAuthProviderInterface := &AuthProviderInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3public.AuthProviderHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthProviderLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3public.AuthProviderHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3public.AuthProviderController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, 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) (*v3public.AuthProvider, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3public.AuthProviderList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedAuthProviderInterface in code that requires AuthProviderInterface // and then make assertions. }
func (*AuthProviderInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AuthProviderInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v3public.AuthProviderHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAuthProviderInterface.AddClusterScopedFeatureHandlerCalls())
func (*AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v3public.AuthProviderLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedAuthProviderInterface.AddClusterScopedFeatureLifecycleCalls())
func (*AuthProviderInterfaceMock) AddClusterScopedHandler ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AuthProviderInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3public.AuthProviderHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAuthProviderInterface.AddClusterScopedHandlerCalls())
func (*AuthProviderInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*AuthProviderInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3public.AuthProviderLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedAuthProviderInterface.AddClusterScopedLifecycleCalls())
func (*AuthProviderInterfaceMock) AddFeatureHandler ¶
func (mock *AuthProviderInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AuthProviderInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *AuthProviderInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3public.AuthProviderHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAuthProviderInterface.AddFeatureHandlerCalls())
func (*AuthProviderInterfaceMock) AddFeatureLifecycle ¶
func (mock *AuthProviderInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthProviderLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*AuthProviderInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *AuthProviderInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v3public.AuthProviderLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedAuthProviderInterface.AddFeatureLifecycleCalls())
func (*AuthProviderInterfaceMock) AddHandler ¶
func (mock *AuthProviderInterfaceMock) AddHandler(ctx context.Context, name string, sync v3public.AuthProviderHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AuthProviderInterfaceMock) AddHandlerCalls ¶
func (mock *AuthProviderInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3public.AuthProviderHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAuthProviderInterface.AddHandlerCalls())
func (*AuthProviderInterfaceMock) AddLifecycle ¶
func (mock *AuthProviderInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*AuthProviderInterfaceMock) AddLifecycleCalls ¶
func (mock *AuthProviderInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3public.AuthProviderLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedAuthProviderInterface.AddLifecycleCalls())
func (*AuthProviderInterfaceMock) Controller ¶
func (mock *AuthProviderInterfaceMock) Controller() v3public.AuthProviderController
Controller calls ControllerFunc.
func (*AuthProviderInterfaceMock) ControllerCalls ¶
func (mock *AuthProviderInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedAuthProviderInterface.ControllerCalls())
func (*AuthProviderInterfaceMock) Create ¶
func (mock *AuthProviderInterfaceMock) Create(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error)
Create calls CreateFunc.
func (*AuthProviderInterfaceMock) CreateCalls ¶
func (mock *AuthProviderInterfaceMock) CreateCalls() []struct { In1 *v3public.AuthProvider }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAuthProviderInterface.CreateCalls())
func (*AuthProviderInterfaceMock) Delete ¶
func (mock *AuthProviderInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*AuthProviderInterfaceMock) DeleteCalls ¶
func (mock *AuthProviderInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAuthProviderInterface.DeleteCalls())
func (*AuthProviderInterfaceMock) DeleteCollection ¶
func (mock *AuthProviderInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*AuthProviderInterfaceMock) DeleteCollectionCalls ¶
func (mock *AuthProviderInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedAuthProviderInterface.DeleteCollectionCalls())
func (*AuthProviderInterfaceMock) DeleteNamespaced ¶
func (mock *AuthProviderInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*AuthProviderInterfaceMock) DeleteNamespacedCalls ¶
func (mock *AuthProviderInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedAuthProviderInterface.DeleteNamespacedCalls())
func (*AuthProviderInterfaceMock) Get ¶
func (mock *AuthProviderInterfaceMock) Get(name string, opts v1.GetOptions) (*v3public.AuthProvider, error)
Get calls GetFunc.
func (*AuthProviderInterfaceMock) GetCalls ¶
func (mock *AuthProviderInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAuthProviderInterface.GetCalls())
func (*AuthProviderInterfaceMock) GetNamespaced ¶
func (mock *AuthProviderInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error)
GetNamespaced calls GetNamespacedFunc.
func (*AuthProviderInterfaceMock) GetNamespacedCalls ¶
func (mock *AuthProviderInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedAuthProviderInterface.GetNamespacedCalls())
func (*AuthProviderInterfaceMock) List ¶
func (mock *AuthProviderInterfaceMock) List(opts v1.ListOptions) (*v3public.AuthProviderList, error)
List calls ListFunc.
func (*AuthProviderInterfaceMock) ListCalls ¶
func (mock *AuthProviderInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAuthProviderInterface.ListCalls())
func (*AuthProviderInterfaceMock) ListNamespaced ¶
func (mock *AuthProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error)
ListNamespaced calls ListNamespacedFunc.
func (*AuthProviderInterfaceMock) ListNamespacedCalls ¶
func (mock *AuthProviderInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedAuthProviderInterface.ListNamespacedCalls())
func (*AuthProviderInterfaceMock) ObjectClient ¶
func (mock *AuthProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*AuthProviderInterfaceMock) ObjectClientCalls ¶
func (mock *AuthProviderInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedAuthProviderInterface.ObjectClientCalls())
func (*AuthProviderInterfaceMock) Update ¶
func (mock *AuthProviderInterfaceMock) Update(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error)
Update calls UpdateFunc.
func (*AuthProviderInterfaceMock) UpdateCalls ¶
func (mock *AuthProviderInterfaceMock) UpdateCalls() []struct { In1 *v3public.AuthProvider }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAuthProviderInterface.UpdateCalls())
func (*AuthProviderInterfaceMock) Watch ¶
func (mock *AuthProviderInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AuthProviderInterfaceMock) WatchCalls ¶
func (mock *AuthProviderInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAuthProviderInterface.WatchCalls())
type AuthProviderListerMock ¶
type AuthProviderListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3public.AuthProvider, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error) // contains filtered or unexported fields }
AuthProviderListerMock is a mock implementation of AuthProviderLister.
func TestSomethingThatUsesAuthProviderLister(t *testing.T) { // make and configure a mocked AuthProviderLister mockedAuthProviderLister := &AuthProviderListerMock{ GetFunc: func(namespace string, name string) (*v3public.AuthProvider, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error) { panic("mock out the List method") }, } // use mockedAuthProviderLister in code that requires AuthProviderLister // and then make assertions. }
func (*AuthProviderListerMock) Get ¶
func (mock *AuthProviderListerMock) Get(namespace string, name string) (*v3public.AuthProvider, error)
Get calls GetFunc.
func (*AuthProviderListerMock) GetCalls ¶
func (mock *AuthProviderListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAuthProviderLister.GetCalls())
func (*AuthProviderListerMock) List ¶
func (mock *AuthProviderListerMock) List(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error)
List calls ListFunc.
type AuthProvidersGetterMock ¶
type AuthProvidersGetterMock struct { // AuthProvidersFunc mocks the AuthProviders method. AuthProvidersFunc func(namespace string) v3public.AuthProviderInterface // contains filtered or unexported fields }
AuthProvidersGetterMock is a mock implementation of AuthProvidersGetter.
func TestSomethingThatUsesAuthProvidersGetter(t *testing.T) { // make and configure a mocked AuthProvidersGetter mockedAuthProvidersGetter := &AuthProvidersGetterMock{ AuthProvidersFunc: func(namespace string) v3public.AuthProviderInterface { panic("mock out the AuthProviders method") }, } // use mockedAuthProvidersGetter in code that requires AuthProvidersGetter // and then make assertions. }
func (*AuthProvidersGetterMock) AuthProviders ¶
func (mock *AuthProvidersGetterMock) AuthProviders(namespace string) v3public.AuthProviderInterface
AuthProviders calls AuthProvidersFunc.
func (*AuthProvidersGetterMock) AuthProvidersCalls ¶
func (mock *AuthProvidersGetterMock) AuthProvidersCalls() []struct { Namespace string }
AuthProvidersCalls gets all the calls that were made to AuthProviders. Check the length with:
len(mockedAuthProvidersGetter.AuthProvidersCalls())
type AuthTokenControllerMock ¶
type AuthTokenControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthTokenHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3public.AuthTokenHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3public.AuthTokenHandlerFunc) // 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() v3public.AuthTokenLister // 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 }
AuthTokenControllerMock is a mock implementation of AuthTokenController.
func TestSomethingThatUsesAuthTokenController(t *testing.T) { // make and configure a mocked AuthTokenController mockedAuthTokenController := &AuthTokenControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthTokenHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3public.AuthTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3public.AuthTokenHandlerFunc) { 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() v3public.AuthTokenLister { 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 mockedAuthTokenController in code that requires AuthTokenController // and then make assertions. }
func (*AuthTokenControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *AuthTokenControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthTokenHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v3public.AuthTokenHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAuthTokenController.AddClusterScopedFeatureHandlerCalls())
func (*AuthTokenControllerMock) AddClusterScopedHandler ¶
func (mock *AuthTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3public.AuthTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AuthTokenControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *AuthTokenControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3public.AuthTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAuthTokenController.AddClusterScopedHandlerCalls())
func (*AuthTokenControllerMock) AddFeatureHandler ¶
func (mock *AuthTokenControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AuthTokenControllerMock) AddFeatureHandlerCalls ¶
func (mock *AuthTokenControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3public.AuthTokenHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAuthTokenController.AddFeatureHandlerCalls())
func (*AuthTokenControllerMock) AddHandler ¶
func (mock *AuthTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3public.AuthTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AuthTokenControllerMock) AddHandlerCalls ¶
func (mock *AuthTokenControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3public.AuthTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAuthTokenController.AddHandlerCalls())
func (*AuthTokenControllerMock) Enqueue ¶
func (mock *AuthTokenControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AuthTokenControllerMock) EnqueueAfter ¶
func (mock *AuthTokenControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*AuthTokenControllerMock) EnqueueAfterCalls ¶
func (mock *AuthTokenControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedAuthTokenController.EnqueueAfterCalls())
func (*AuthTokenControllerMock) EnqueueCalls ¶
func (mock *AuthTokenControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAuthTokenController.EnqueueCalls())
func (*AuthTokenControllerMock) Generic ¶
func (mock *AuthTokenControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*AuthTokenControllerMock) GenericCalls ¶
func (mock *AuthTokenControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedAuthTokenController.GenericCalls())
func (*AuthTokenControllerMock) Informer ¶
func (mock *AuthTokenControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AuthTokenControllerMock) InformerCalls ¶
func (mock *AuthTokenControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAuthTokenController.InformerCalls())
func (*AuthTokenControllerMock) Lister ¶
func (mock *AuthTokenControllerMock) Lister() v3public.AuthTokenLister
Lister calls ListerFunc.
func (*AuthTokenControllerMock) ListerCalls ¶
func (mock *AuthTokenControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedAuthTokenController.ListerCalls())
func (*AuthTokenControllerMock) Start ¶
func (mock *AuthTokenControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*AuthTokenControllerMock) StartCalls ¶
func (mock *AuthTokenControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedAuthTokenController.StartCalls())
func (*AuthTokenControllerMock) Sync ¶
func (mock *AuthTokenControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*AuthTokenControllerMock) SyncCalls ¶
func (mock *AuthTokenControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedAuthTokenController.SyncCalls())
type AuthTokenInterfaceMock ¶
type AuthTokenInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthTokenHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3public.AuthTokenHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthTokenLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3public.AuthTokenHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3public.AuthTokenLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3public.AuthTokenController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3public.AuthToken) (*v3public.AuthToken, 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) (*v3public.AuthToken, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3public.AuthToken, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3public.AuthTokenList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3public.AuthTokenList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3public.AuthToken) (*v3public.AuthToken, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
AuthTokenInterfaceMock is a mock implementation of AuthTokenInterface.
func TestSomethingThatUsesAuthTokenInterface(t *testing.T) { // make and configure a mocked AuthTokenInterface mockedAuthTokenInterface := &AuthTokenInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthTokenHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3public.AuthTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthTokenLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3public.AuthTokenHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3public.AuthTokenLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3public.AuthTokenController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3public.AuthToken) (*v3public.AuthToken, 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) (*v3public.AuthToken, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3public.AuthToken, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3public.AuthTokenList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3public.AuthTokenList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3public.AuthToken) (*v3public.AuthToken, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedAuthTokenInterface in code that requires AuthTokenInterface // and then make assertions. }
func (*AuthTokenInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthTokenHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v3public.AuthTokenHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAuthTokenInterface.AddClusterScopedFeatureHandlerCalls())
func (*AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v3public.AuthTokenLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedAuthTokenInterface.AddClusterScopedFeatureLifecycleCalls())
func (*AuthTokenInterfaceMock) AddClusterScopedHandler ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3public.AuthTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AuthTokenInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3public.AuthTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAuthTokenInterface.AddClusterScopedHandlerCalls())
func (*AuthTokenInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthTokenLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*AuthTokenInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *AuthTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3public.AuthTokenLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedAuthTokenInterface.AddClusterScopedLifecycleCalls())
func (*AuthTokenInterfaceMock) AddFeatureHandler ¶
func (mock *AuthTokenInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthTokenHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AuthTokenInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *AuthTokenInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v3public.AuthTokenHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAuthTokenInterface.AddFeatureHandlerCalls())
func (*AuthTokenInterfaceMock) AddFeatureLifecycle ¶
func (mock *AuthTokenInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthTokenLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*AuthTokenInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *AuthTokenInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v3public.AuthTokenLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedAuthTokenInterface.AddFeatureLifecycleCalls())
func (*AuthTokenInterfaceMock) AddHandler ¶
func (mock *AuthTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3public.AuthTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AuthTokenInterfaceMock) AddHandlerCalls ¶
func (mock *AuthTokenInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3public.AuthTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAuthTokenInterface.AddHandlerCalls())
func (*AuthTokenInterfaceMock) AddLifecycle ¶
func (mock *AuthTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3public.AuthTokenLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*AuthTokenInterfaceMock) AddLifecycleCalls ¶
func (mock *AuthTokenInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3public.AuthTokenLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedAuthTokenInterface.AddLifecycleCalls())
func (*AuthTokenInterfaceMock) Controller ¶
func (mock *AuthTokenInterfaceMock) Controller() v3public.AuthTokenController
Controller calls ControllerFunc.
func (*AuthTokenInterfaceMock) ControllerCalls ¶
func (mock *AuthTokenInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedAuthTokenInterface.ControllerCalls())
func (*AuthTokenInterfaceMock) CreateCalls ¶
func (mock *AuthTokenInterfaceMock) CreateCalls() []struct { In1 *v3public.AuthToken }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAuthTokenInterface.CreateCalls())
func (*AuthTokenInterfaceMock) Delete ¶
func (mock *AuthTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*AuthTokenInterfaceMock) DeleteCalls ¶
func (mock *AuthTokenInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAuthTokenInterface.DeleteCalls())
func (*AuthTokenInterfaceMock) DeleteCollection ¶
func (mock *AuthTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*AuthTokenInterfaceMock) DeleteCollectionCalls ¶
func (mock *AuthTokenInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedAuthTokenInterface.DeleteCollectionCalls())
func (*AuthTokenInterfaceMock) DeleteNamespaced ¶
func (mock *AuthTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*AuthTokenInterfaceMock) DeleteNamespacedCalls ¶
func (mock *AuthTokenInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedAuthTokenInterface.DeleteNamespacedCalls())
func (*AuthTokenInterfaceMock) Get ¶
func (mock *AuthTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3public.AuthToken, error)
Get calls GetFunc.
func (*AuthTokenInterfaceMock) GetCalls ¶
func (mock *AuthTokenInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAuthTokenInterface.GetCalls())
func (*AuthTokenInterfaceMock) GetNamespaced ¶
func (mock *AuthTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3public.AuthToken, error)
GetNamespaced calls GetNamespacedFunc.
func (*AuthTokenInterfaceMock) GetNamespacedCalls ¶
func (mock *AuthTokenInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedAuthTokenInterface.GetNamespacedCalls())
func (*AuthTokenInterfaceMock) List ¶
func (mock *AuthTokenInterfaceMock) List(opts v1.ListOptions) (*v3public.AuthTokenList, error)
List calls ListFunc.
func (*AuthTokenInterfaceMock) ListCalls ¶
func (mock *AuthTokenInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAuthTokenInterface.ListCalls())
func (*AuthTokenInterfaceMock) ListNamespaced ¶
func (mock *AuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthTokenList, error)
ListNamespaced calls ListNamespacedFunc.
func (*AuthTokenInterfaceMock) ListNamespacedCalls ¶
func (mock *AuthTokenInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedAuthTokenInterface.ListNamespacedCalls())
func (*AuthTokenInterfaceMock) ObjectClient ¶
func (mock *AuthTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*AuthTokenInterfaceMock) ObjectClientCalls ¶
func (mock *AuthTokenInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedAuthTokenInterface.ObjectClientCalls())
func (*AuthTokenInterfaceMock) UpdateCalls ¶
func (mock *AuthTokenInterfaceMock) UpdateCalls() []struct { In1 *v3public.AuthToken }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAuthTokenInterface.UpdateCalls())
func (*AuthTokenInterfaceMock) Watch ¶
func (mock *AuthTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AuthTokenInterfaceMock) WatchCalls ¶
func (mock *AuthTokenInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAuthTokenInterface.WatchCalls())
type AuthTokenListerMock ¶
type AuthTokenListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3public.AuthToken, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3public.AuthToken, error) // contains filtered or unexported fields }
AuthTokenListerMock is a mock implementation of AuthTokenLister.
func TestSomethingThatUsesAuthTokenLister(t *testing.T) { // make and configure a mocked AuthTokenLister mockedAuthTokenLister := &AuthTokenListerMock{ GetFunc: func(namespace string, name string) (*v3public.AuthToken, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3public.AuthToken, error) { panic("mock out the List method") }, } // use mockedAuthTokenLister in code that requires AuthTokenLister // and then make assertions. }
func (*AuthTokenListerMock) GetCalls ¶
func (mock *AuthTokenListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAuthTokenLister.GetCalls())
type AuthTokensGetterMock ¶
type AuthTokensGetterMock struct { // AuthTokensFunc mocks the AuthTokens method. AuthTokensFunc func(namespace string) v3public.AuthTokenInterface // contains filtered or unexported fields }
AuthTokensGetterMock is a mock implementation of AuthTokensGetter.
func TestSomethingThatUsesAuthTokensGetter(t *testing.T) { // make and configure a mocked AuthTokensGetter mockedAuthTokensGetter := &AuthTokensGetterMock{ AuthTokensFunc: func(namespace string) v3public.AuthTokenInterface { panic("mock out the AuthTokens method") }, } // use mockedAuthTokensGetter in code that requires AuthTokensGetter // and then make assertions. }
func (*AuthTokensGetterMock) AuthTokens ¶
func (mock *AuthTokensGetterMock) AuthTokens(namespace string) v3public.AuthTokenInterface
AuthTokens calls AuthTokensFunc.
func (*AuthTokensGetterMock) AuthTokensCalls ¶
func (mock *AuthTokensGetterMock) AuthTokensCalls() []struct { Namespace string }
AuthTokensCalls gets all the calls that were made to AuthTokens. Check the length with:
len(mockedAuthTokensGetter.AuthTokensCalls())