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{}
- 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
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 // 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") }, } // 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())
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())