Documentation ¶
Index ¶
- type ClusterRoleBindingControllerMock
- func (mock *ClusterRoleBindingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleBindingControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleBindingControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ClusterRoleBindingHandlerFunc)
- func (mock *ClusterRoleBindingControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleBindingControllerMock) Enqueue(namespace string, name string)
- func (mock *ClusterRoleBindingControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterRoleBindingControllerMock) Generic() controller.GenericController
- func (mock *ClusterRoleBindingControllerMock) GenericCalls() []struct{}
- func (mock *ClusterRoleBindingControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterRoleBindingControllerMock) InformerCalls() []struct{}
- func (mock *ClusterRoleBindingControllerMock) Lister() v1a.ClusterRoleBindingLister
- func (mock *ClusterRoleBindingControllerMock) ListerCalls() []struct{}
- func (mock *ClusterRoleBindingControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ClusterRoleBindingControllerMock) StartCalls() []struct{ ... }
- func (mock *ClusterRoleBindingControllerMock) Sync(ctx context.Context) error
- func (mock *ClusterRoleBindingControllerMock) SyncCalls() []struct{ ... }
- type ClusterRoleBindingInterfaceMock
- func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ClusterRoleBindingHandlerFunc)
- func (mock *ClusterRoleBindingInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ClusterRoleBindingLifecycle)
- func (mock *ClusterRoleBindingInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) Controller() v1a.ClusterRoleBindingController
- func (mock *ClusterRoleBindingInterfaceMock) ControllerCalls() []struct{}
- func (mock *ClusterRoleBindingInterfaceMock) Create(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ClusterRoleBindingInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ClusterRoleBindingInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ClusterRoleBindingInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) List(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error)
- func (mock *ClusterRoleBindingInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ClusterRoleBindingInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ClusterRoleBindingInterfaceMock) Update(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterRoleBindingInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ClusterRoleBindingInterfaceMock) WatchCalls() []struct{ ... }
- type ClusterRoleBindingListerMock
- func (mock *ClusterRoleBindingListerMock) Get(namespace string, name string) (*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingListerMock) GetCalls() []struct{ ... }
- func (mock *ClusterRoleBindingListerMock) List(namespace string, selector labels.Selector) ([]*v1.ClusterRoleBinding, error)
- func (mock *ClusterRoleBindingListerMock) ListCalls() []struct{ ... }
- type ClusterRoleBindingsGetterMock
- type ClusterRoleControllerMock
- func (mock *ClusterRoleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ClusterRoleHandlerFunc)
- func (mock *ClusterRoleControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleControllerMock) Enqueue(namespace string, name string)
- func (mock *ClusterRoleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterRoleControllerMock) Generic() controller.GenericController
- func (mock *ClusterRoleControllerMock) GenericCalls() []struct{}
- func (mock *ClusterRoleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterRoleControllerMock) InformerCalls() []struct{}
- func (mock *ClusterRoleControllerMock) Lister() v1a.ClusterRoleLister
- func (mock *ClusterRoleControllerMock) ListerCalls() []struct{}
- func (mock *ClusterRoleControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ClusterRoleControllerMock) StartCalls() []struct{ ... }
- func (mock *ClusterRoleControllerMock) Sync(ctx context.Context) error
- func (mock *ClusterRoleControllerMock) SyncCalls() []struct{ ... }
- type ClusterRoleInterfaceMock
- func (mock *ClusterRoleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ClusterRoleInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ClusterRoleHandlerFunc)
- func (mock *ClusterRoleInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ClusterRoleLifecycle)
- func (mock *ClusterRoleInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) Controller() v1a.ClusterRoleController
- func (mock *ClusterRoleInterfaceMock) ControllerCalls() []struct{}
- func (mock *ClusterRoleInterfaceMock) Create(in1 *v1.ClusterRole) (*v1.ClusterRole, error)
- func (mock *ClusterRoleInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ClusterRoleInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ClusterRoleInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ClusterRoleInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ClusterRole, error)
- func (mock *ClusterRoleInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRole, error)
- func (mock *ClusterRoleInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) List(opts v1b.ListOptions) (*v1a.ClusterRoleList, error)
- func (mock *ClusterRoleInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ClusterRoleInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ClusterRoleInterfaceMock) Update(in1 *v1.ClusterRole) (*v1.ClusterRole, error)
- func (mock *ClusterRoleInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterRoleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ClusterRoleInterfaceMock) WatchCalls() []struct{ ... }
- type ClusterRoleListerMock
- func (mock *ClusterRoleListerMock) Get(namespace string, name string) (*v1.ClusterRole, error)
- func (mock *ClusterRoleListerMock) GetCalls() []struct{ ... }
- func (mock *ClusterRoleListerMock) List(namespace string, selector labels.Selector) ([]*v1.ClusterRole, error)
- func (mock *ClusterRoleListerMock) ListCalls() []struct{ ... }
- type ClusterRolesGetterMock
- type RoleBindingControllerMock
- func (mock *RoleBindingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *RoleBindingControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *RoleBindingControllerMock) AddHandler(ctx context.Context, name string, handler v1a.RoleBindingHandlerFunc)
- func (mock *RoleBindingControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *RoleBindingControllerMock) Enqueue(namespace string, name string)
- func (mock *RoleBindingControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *RoleBindingControllerMock) Generic() controller.GenericController
- func (mock *RoleBindingControllerMock) GenericCalls() []struct{}
- func (mock *RoleBindingControllerMock) Informer() cache.SharedIndexInformer
- func (mock *RoleBindingControllerMock) InformerCalls() []struct{}
- func (mock *RoleBindingControllerMock) Lister() v1a.RoleBindingLister
- func (mock *RoleBindingControllerMock) ListerCalls() []struct{}
- func (mock *RoleBindingControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *RoleBindingControllerMock) StartCalls() []struct{ ... }
- func (mock *RoleBindingControllerMock) Sync(ctx context.Context) error
- func (mock *RoleBindingControllerMock) SyncCalls() []struct{ ... }
- type RoleBindingInterfaceMock
- func (mock *RoleBindingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *RoleBindingInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *RoleBindingInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.RoleBindingHandlerFunc)
- func (mock *RoleBindingInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.RoleBindingLifecycle)
- func (mock *RoleBindingInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) Controller() v1a.RoleBindingController
- func (mock *RoleBindingInterfaceMock) ControllerCalls() []struct{}
- func (mock *RoleBindingInterfaceMock) Create(in1 *v1.RoleBinding) (*v1.RoleBinding, error)
- func (mock *RoleBindingInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *RoleBindingInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *RoleBindingInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *RoleBindingInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.RoleBinding, error)
- func (mock *RoleBindingInterfaceMock) GetCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.RoleBinding, error)
- func (mock *RoleBindingInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) List(opts v1b.ListOptions) (*v1a.RoleBindingList, error)
- func (mock *RoleBindingInterfaceMock) ListCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *RoleBindingInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *RoleBindingInterfaceMock) Update(in1 *v1.RoleBinding) (*v1.RoleBinding, error)
- func (mock *RoleBindingInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *RoleBindingInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RoleBindingInterfaceMock) WatchCalls() []struct{ ... }
- type RoleBindingListerMock
- func (mock *RoleBindingListerMock) Get(namespace string, name string) (*v1.RoleBinding, error)
- func (mock *RoleBindingListerMock) GetCalls() []struct{ ... }
- func (mock *RoleBindingListerMock) List(namespace string, selector labels.Selector) ([]*v1.RoleBinding, error)
- func (mock *RoleBindingListerMock) ListCalls() []struct{ ... }
- type RoleBindingsGetterMock
- type RoleControllerMock
- func (mock *RoleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *RoleControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *RoleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.RoleHandlerFunc)
- func (mock *RoleControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *RoleControllerMock) Enqueue(namespace string, name string)
- func (mock *RoleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *RoleControllerMock) Generic() controller.GenericController
- func (mock *RoleControllerMock) GenericCalls() []struct{}
- func (mock *RoleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *RoleControllerMock) InformerCalls() []struct{}
- func (mock *RoleControllerMock) Lister() v1a.RoleLister
- func (mock *RoleControllerMock) ListerCalls() []struct{}
- func (mock *RoleControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *RoleControllerMock) StartCalls() []struct{ ... }
- func (mock *RoleControllerMock) Sync(ctx context.Context) error
- func (mock *RoleControllerMock) SyncCalls() []struct{ ... }
- type RoleInterfaceMock
- func (mock *RoleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.RoleHandlerFunc)
- func (mock *RoleInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *RoleInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.RoleHandlerFunc)
- func (mock *RoleInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.RoleLifecycle)
- func (mock *RoleInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) Controller() v1a.RoleController
- func (mock *RoleInterfaceMock) ControllerCalls() []struct{}
- func (mock *RoleInterfaceMock) Create(in1 *v1.Role) (*v1.Role, error)
- func (mock *RoleInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *RoleInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *RoleInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *RoleInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Role, error)
- func (mock *RoleInterfaceMock) GetCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Role, error)
- func (mock *RoleInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) List(opts v1b.ListOptions) (*v1a.RoleList, error)
- func (mock *RoleInterfaceMock) ListCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *RoleInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *RoleInterfaceMock) Update(in1 *v1.Role) (*v1.Role, error)
- func (mock *RoleInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *RoleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RoleInterfaceMock) WatchCalls() []struct{ ... }
- type RoleListerMock
- type RolesGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRoleBindingControllerMock ¶
type ClusterRoleBindingControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ClusterRoleBindingHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ClusterRoleBindingLister // 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 }
ClusterRoleBindingControllerMock is a mock implementation of ClusterRoleBindingController.
func TestSomethingThatUsesClusterRoleBindingController(t *testing.T) { // make and configure a mocked ClusterRoleBindingController mockedClusterRoleBindingController := &ClusterRoleBindingControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ClusterRoleBindingHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ClusterRoleBindingLister { 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 mockedClusterRoleBindingController in code that requires ClusterRoleBindingController // and then make assertions. }
func (*ClusterRoleBindingControllerMock) AddClusterScopedHandler ¶
func (mock *ClusterRoleBindingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterRoleBindingControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterRoleBindingControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ClusterRoleBindingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterRoleBindingController.AddClusterScopedHandlerCalls())
func (*ClusterRoleBindingControllerMock) AddHandler ¶
func (mock *ClusterRoleBindingControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ClusterRoleBindingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterRoleBindingControllerMock) AddHandlerCalls ¶
func (mock *ClusterRoleBindingControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ClusterRoleBindingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterRoleBindingController.AddHandlerCalls())
func (*ClusterRoleBindingControllerMock) Enqueue ¶
func (mock *ClusterRoleBindingControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ClusterRoleBindingControllerMock) EnqueueCalls ¶
func (mock *ClusterRoleBindingControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterRoleBindingController.EnqueueCalls())
func (*ClusterRoleBindingControllerMock) Generic ¶
func (mock *ClusterRoleBindingControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ClusterRoleBindingControllerMock) GenericCalls ¶
func (mock *ClusterRoleBindingControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedClusterRoleBindingController.GenericCalls())
func (*ClusterRoleBindingControllerMock) Informer ¶
func (mock *ClusterRoleBindingControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterRoleBindingControllerMock) InformerCalls ¶
func (mock *ClusterRoleBindingControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterRoleBindingController.InformerCalls())
func (*ClusterRoleBindingControllerMock) Lister ¶
func (mock *ClusterRoleBindingControllerMock) Lister() v1a.ClusterRoleBindingLister
Lister calls ListerFunc.
func (*ClusterRoleBindingControllerMock) ListerCalls ¶
func (mock *ClusterRoleBindingControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedClusterRoleBindingController.ListerCalls())
func (*ClusterRoleBindingControllerMock) Start ¶
func (mock *ClusterRoleBindingControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ClusterRoleBindingControllerMock) StartCalls ¶
func (mock *ClusterRoleBindingControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedClusterRoleBindingController.StartCalls())
func (*ClusterRoleBindingControllerMock) Sync ¶
func (mock *ClusterRoleBindingControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ClusterRoleBindingControllerMock) SyncCalls ¶
func (mock *ClusterRoleBindingControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedClusterRoleBindingController.SyncCalls())
type ClusterRoleBindingInterfaceMock ¶
type ClusterRoleBindingInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ClusterRoleBindingHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ClusterRoleBindingLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ClusterRoleBindingController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ClusterRoleBindingInterfaceMock is a mock implementation of ClusterRoleBindingInterface.
func TestSomethingThatUsesClusterRoleBindingInterface(t *testing.T) { // make and configure a mocked ClusterRoleBindingInterface mockedClusterRoleBindingInterface := &ClusterRoleBindingInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ClusterRoleBindingHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ClusterRoleBindingLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ClusterRoleBindingController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedClusterRoleBindingInterface in code that requires ClusterRoleBindingInterface // and then make assertions. }
func (*ClusterRoleBindingInterfaceMock) AddClusterScopedHandler ¶
func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterRoleBindingInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ClusterRoleBindingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterRoleBindingInterface.AddClusterScopedHandlerCalls())
func (*ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ClusterRoleBindingLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedClusterRoleBindingInterface.AddClusterScopedLifecycleCalls())
func (*ClusterRoleBindingInterfaceMock) AddHandler ¶
func (mock *ClusterRoleBindingInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ClusterRoleBindingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterRoleBindingInterfaceMock) AddHandlerCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ClusterRoleBindingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterRoleBindingInterface.AddHandlerCalls())
func (*ClusterRoleBindingInterfaceMock) AddLifecycle ¶
func (mock *ClusterRoleBindingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ClusterRoleBindingLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ClusterRoleBindingInterfaceMock) AddLifecycleCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ClusterRoleBindingLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedClusterRoleBindingInterface.AddLifecycleCalls())
func (*ClusterRoleBindingInterfaceMock) Controller ¶
func (mock *ClusterRoleBindingInterfaceMock) Controller() v1a.ClusterRoleBindingController
Controller calls ControllerFunc.
func (*ClusterRoleBindingInterfaceMock) ControllerCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedClusterRoleBindingInterface.ControllerCalls())
func (*ClusterRoleBindingInterfaceMock) Create ¶
func (mock *ClusterRoleBindingInterfaceMock) Create(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
Create calls CreateFunc.
func (*ClusterRoleBindingInterfaceMock) CreateCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) CreateCalls() []struct { In1 *v1.ClusterRoleBinding }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterRoleBindingInterface.CreateCalls())
func (*ClusterRoleBindingInterfaceMock) Delete ¶
func (mock *ClusterRoleBindingInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterRoleBindingInterfaceMock) DeleteCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterRoleBindingInterface.DeleteCalls())
func (*ClusterRoleBindingInterfaceMock) DeleteCollection ¶
func (mock *ClusterRoleBindingInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ClusterRoleBindingInterfaceMock) DeleteCollectionCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedClusterRoleBindingInterface.DeleteCollectionCalls())
func (*ClusterRoleBindingInterfaceMock) DeleteNamespaced ¶
func (mock *ClusterRoleBindingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ClusterRoleBindingInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedClusterRoleBindingInterface.DeleteNamespacedCalls())
func (*ClusterRoleBindingInterfaceMock) Get ¶
func (mock *ClusterRoleBindingInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error)
Get calls GetFunc.
func (*ClusterRoleBindingInterfaceMock) GetCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterRoleBindingInterface.GetCalls())
func (*ClusterRoleBindingInterfaceMock) GetNamespaced ¶
func (mock *ClusterRoleBindingInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRoleBinding, error)
GetNamespaced calls GetNamespacedFunc.
func (*ClusterRoleBindingInterfaceMock) GetNamespacedCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedClusterRoleBindingInterface.GetNamespacedCalls())
func (*ClusterRoleBindingInterfaceMock) List ¶
func (mock *ClusterRoleBindingInterfaceMock) List(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error)
List calls ListFunc.
func (*ClusterRoleBindingInterfaceMock) ListCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterRoleBindingInterface.ListCalls())
func (*ClusterRoleBindingInterfaceMock) ObjectClient ¶
func (mock *ClusterRoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ClusterRoleBindingInterfaceMock) ObjectClientCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedClusterRoleBindingInterface.ObjectClientCalls())
func (*ClusterRoleBindingInterfaceMock) Update ¶
func (mock *ClusterRoleBindingInterfaceMock) Update(in1 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
Update calls UpdateFunc.
func (*ClusterRoleBindingInterfaceMock) UpdateCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) UpdateCalls() []struct { In1 *v1.ClusterRoleBinding }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterRoleBindingInterface.UpdateCalls())
func (*ClusterRoleBindingInterfaceMock) Watch ¶
func (mock *ClusterRoleBindingInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterRoleBindingInterfaceMock) WatchCalls ¶
func (mock *ClusterRoleBindingInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterRoleBindingInterface.WatchCalls())
type ClusterRoleBindingListerMock ¶
type ClusterRoleBindingListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ClusterRoleBinding, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ClusterRoleBinding, error) // contains filtered or unexported fields }
ClusterRoleBindingListerMock is a mock implementation of ClusterRoleBindingLister.
func TestSomethingThatUsesClusterRoleBindingLister(t *testing.T) { // make and configure a mocked ClusterRoleBindingLister mockedClusterRoleBindingLister := &ClusterRoleBindingListerMock{ GetFunc: func(namespace string, name string) (*v1.ClusterRoleBinding, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ClusterRoleBinding, error) { panic("mock out the List method") }, } // use mockedClusterRoleBindingLister in code that requires ClusterRoleBindingLister // and then make assertions. }
func (*ClusterRoleBindingListerMock) Get ¶
func (mock *ClusterRoleBindingListerMock) Get(namespace string, name string) (*v1.ClusterRoleBinding, error)
Get calls GetFunc.
func (*ClusterRoleBindingListerMock) GetCalls ¶
func (mock *ClusterRoleBindingListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterRoleBindingLister.GetCalls())
func (*ClusterRoleBindingListerMock) List ¶
func (mock *ClusterRoleBindingListerMock) List(namespace string, selector labels.Selector) ([]*v1.ClusterRoleBinding, error)
List calls ListFunc.
type ClusterRoleBindingsGetterMock ¶
type ClusterRoleBindingsGetterMock struct { // ClusterRoleBindingsFunc mocks the ClusterRoleBindings method. ClusterRoleBindingsFunc func(namespace string) v1a.ClusterRoleBindingInterface // contains filtered or unexported fields }
ClusterRoleBindingsGetterMock is a mock implementation of ClusterRoleBindingsGetter.
func TestSomethingThatUsesClusterRoleBindingsGetter(t *testing.T) { // make and configure a mocked ClusterRoleBindingsGetter mockedClusterRoleBindingsGetter := &ClusterRoleBindingsGetterMock{ ClusterRoleBindingsFunc: func(namespace string) v1a.ClusterRoleBindingInterface { panic("mock out the ClusterRoleBindings method") }, } // use mockedClusterRoleBindingsGetter in code that requires ClusterRoleBindingsGetter // and then make assertions. }
func (*ClusterRoleBindingsGetterMock) ClusterRoleBindings ¶
func (mock *ClusterRoleBindingsGetterMock) ClusterRoleBindings(namespace string) v1a.ClusterRoleBindingInterface
ClusterRoleBindings calls ClusterRoleBindingsFunc.
func (*ClusterRoleBindingsGetterMock) ClusterRoleBindingsCalls ¶
func (mock *ClusterRoleBindingsGetterMock) ClusterRoleBindingsCalls() []struct { Namespace string }
ClusterRoleBindingsCalls gets all the calls that were made to ClusterRoleBindings. Check the length with:
len(mockedClusterRoleBindingsGetter.ClusterRoleBindingsCalls())
type ClusterRoleControllerMock ¶
type ClusterRoleControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ClusterRoleHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.ClusterRoleLister // 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 }
ClusterRoleControllerMock is a mock implementation of ClusterRoleController.
func TestSomethingThatUsesClusterRoleController(t *testing.T) { // make and configure a mocked ClusterRoleController mockedClusterRoleController := &ClusterRoleControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ClusterRoleHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.ClusterRoleLister { 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 mockedClusterRoleController in code that requires ClusterRoleController // and then make assertions. }
func (*ClusterRoleControllerMock) AddClusterScopedHandler ¶
func (mock *ClusterRoleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterRoleControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterRoleControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ClusterRoleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterRoleController.AddClusterScopedHandlerCalls())
func (*ClusterRoleControllerMock) AddHandler ¶
func (mock *ClusterRoleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ClusterRoleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterRoleControllerMock) AddHandlerCalls ¶
func (mock *ClusterRoleControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ClusterRoleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterRoleController.AddHandlerCalls())
func (*ClusterRoleControllerMock) Enqueue ¶
func (mock *ClusterRoleControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ClusterRoleControllerMock) EnqueueCalls ¶
func (mock *ClusterRoleControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterRoleController.EnqueueCalls())
func (*ClusterRoleControllerMock) Generic ¶
func (mock *ClusterRoleControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ClusterRoleControllerMock) GenericCalls ¶
func (mock *ClusterRoleControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedClusterRoleController.GenericCalls())
func (*ClusterRoleControllerMock) Informer ¶
func (mock *ClusterRoleControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterRoleControllerMock) InformerCalls ¶
func (mock *ClusterRoleControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterRoleController.InformerCalls())
func (*ClusterRoleControllerMock) Lister ¶
func (mock *ClusterRoleControllerMock) Lister() v1a.ClusterRoleLister
Lister calls ListerFunc.
func (*ClusterRoleControllerMock) ListerCalls ¶
func (mock *ClusterRoleControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedClusterRoleController.ListerCalls())
func (*ClusterRoleControllerMock) Start ¶
func (mock *ClusterRoleControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ClusterRoleControllerMock) StartCalls ¶
func (mock *ClusterRoleControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedClusterRoleController.StartCalls())
func (*ClusterRoleControllerMock) Sync ¶
func (mock *ClusterRoleControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ClusterRoleControllerMock) SyncCalls ¶
func (mock *ClusterRoleControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedClusterRoleController.SyncCalls())
type ClusterRoleInterfaceMock ¶
type ClusterRoleInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ClusterRoleHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ClusterRoleLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ClusterRoleController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ClusterRole) (*v1.ClusterRole, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ClusterRole, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRole, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ClusterRole) (*v1.ClusterRole, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ClusterRoleInterfaceMock is a mock implementation of ClusterRoleInterface.
func TestSomethingThatUsesClusterRoleInterface(t *testing.T) { // make and configure a mocked ClusterRoleInterface mockedClusterRoleInterface := &ClusterRoleInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ClusterRoleHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ClusterRoleLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ClusterRoleController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ClusterRole) (*v1.ClusterRole, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ClusterRole, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRole, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ClusterRole) (*v1.ClusterRole, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedClusterRoleInterface in code that requires ClusterRoleInterface // and then make assertions. }
func (*ClusterRoleInterfaceMock) AddClusterScopedHandler ¶
func (mock *ClusterRoleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ClusterRoleInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ClusterRoleInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ClusterRoleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedClusterRoleInterface.AddClusterScopedHandlerCalls())
func (*ClusterRoleInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ClusterRoleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ClusterRoleInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ClusterRoleInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ClusterRoleLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedClusterRoleInterface.AddClusterScopedLifecycleCalls())
func (*ClusterRoleInterfaceMock) AddHandler ¶
func (mock *ClusterRoleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ClusterRoleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ClusterRoleInterfaceMock) AddHandlerCalls ¶
func (mock *ClusterRoleInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ClusterRoleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedClusterRoleInterface.AddHandlerCalls())
func (*ClusterRoleInterfaceMock) AddLifecycle ¶
func (mock *ClusterRoleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ClusterRoleLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ClusterRoleInterfaceMock) AddLifecycleCalls ¶
func (mock *ClusterRoleInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ClusterRoleLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedClusterRoleInterface.AddLifecycleCalls())
func (*ClusterRoleInterfaceMock) Controller ¶
func (mock *ClusterRoleInterfaceMock) Controller() v1a.ClusterRoleController
Controller calls ControllerFunc.
func (*ClusterRoleInterfaceMock) ControllerCalls ¶
func (mock *ClusterRoleInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedClusterRoleInterface.ControllerCalls())
func (*ClusterRoleInterfaceMock) Create ¶
func (mock *ClusterRoleInterfaceMock) Create(in1 *v1.ClusterRole) (*v1.ClusterRole, error)
Create calls CreateFunc.
func (*ClusterRoleInterfaceMock) CreateCalls ¶
func (mock *ClusterRoleInterfaceMock) CreateCalls() []struct { In1 *v1.ClusterRole }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterRoleInterface.CreateCalls())
func (*ClusterRoleInterfaceMock) Delete ¶
func (mock *ClusterRoleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterRoleInterfaceMock) DeleteCalls ¶
func (mock *ClusterRoleInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterRoleInterface.DeleteCalls())
func (*ClusterRoleInterfaceMock) DeleteCollection ¶
func (mock *ClusterRoleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ClusterRoleInterfaceMock) DeleteCollectionCalls ¶
func (mock *ClusterRoleInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedClusterRoleInterface.DeleteCollectionCalls())
func (*ClusterRoleInterfaceMock) DeleteNamespaced ¶
func (mock *ClusterRoleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ClusterRoleInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ClusterRoleInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedClusterRoleInterface.DeleteNamespacedCalls())
func (*ClusterRoleInterfaceMock) Get ¶
func (mock *ClusterRoleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ClusterRole, error)
Get calls GetFunc.
func (*ClusterRoleInterfaceMock) GetCalls ¶
func (mock *ClusterRoleInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterRoleInterface.GetCalls())
func (*ClusterRoleInterfaceMock) GetNamespaced ¶
func (mock *ClusterRoleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ClusterRole, error)
GetNamespaced calls GetNamespacedFunc.
func (*ClusterRoleInterfaceMock) GetNamespacedCalls ¶
func (mock *ClusterRoleInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedClusterRoleInterface.GetNamespacedCalls())
func (*ClusterRoleInterfaceMock) List ¶
func (mock *ClusterRoleInterfaceMock) List(opts v1b.ListOptions) (*v1a.ClusterRoleList, error)
List calls ListFunc.
func (*ClusterRoleInterfaceMock) ListCalls ¶
func (mock *ClusterRoleInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterRoleInterface.ListCalls())
func (*ClusterRoleInterfaceMock) ObjectClient ¶
func (mock *ClusterRoleInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ClusterRoleInterfaceMock) ObjectClientCalls ¶
func (mock *ClusterRoleInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedClusterRoleInterface.ObjectClientCalls())
func (*ClusterRoleInterfaceMock) Update ¶
func (mock *ClusterRoleInterfaceMock) Update(in1 *v1.ClusterRole) (*v1.ClusterRole, error)
Update calls UpdateFunc.
func (*ClusterRoleInterfaceMock) UpdateCalls ¶
func (mock *ClusterRoleInterfaceMock) UpdateCalls() []struct { In1 *v1.ClusterRole }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterRoleInterface.UpdateCalls())
func (*ClusterRoleInterfaceMock) Watch ¶
func (mock *ClusterRoleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterRoleInterfaceMock) WatchCalls ¶
func (mock *ClusterRoleInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterRoleInterface.WatchCalls())
type ClusterRoleListerMock ¶
type ClusterRoleListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ClusterRole, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ClusterRole, error) // contains filtered or unexported fields }
ClusterRoleListerMock is a mock implementation of ClusterRoleLister.
func TestSomethingThatUsesClusterRoleLister(t *testing.T) { // make and configure a mocked ClusterRoleLister mockedClusterRoleLister := &ClusterRoleListerMock{ GetFunc: func(namespace string, name string) (*v1.ClusterRole, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ClusterRole, error) { panic("mock out the List method") }, } // use mockedClusterRoleLister in code that requires ClusterRoleLister // and then make assertions. }
func (*ClusterRoleListerMock) Get ¶
func (mock *ClusterRoleListerMock) Get(namespace string, name string) (*v1.ClusterRole, error)
Get calls GetFunc.
func (*ClusterRoleListerMock) GetCalls ¶
func (mock *ClusterRoleListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterRoleLister.GetCalls())
func (*ClusterRoleListerMock) List ¶
func (mock *ClusterRoleListerMock) List(namespace string, selector labels.Selector) ([]*v1.ClusterRole, error)
List calls ListFunc.
type ClusterRolesGetterMock ¶
type ClusterRolesGetterMock struct { // ClusterRolesFunc mocks the ClusterRoles method. ClusterRolesFunc func(namespace string) v1a.ClusterRoleInterface // contains filtered or unexported fields }
ClusterRolesGetterMock is a mock implementation of ClusterRolesGetter.
func TestSomethingThatUsesClusterRolesGetter(t *testing.T) { // make and configure a mocked ClusterRolesGetter mockedClusterRolesGetter := &ClusterRolesGetterMock{ ClusterRolesFunc: func(namespace string) v1a.ClusterRoleInterface { panic("mock out the ClusterRoles method") }, } // use mockedClusterRolesGetter in code that requires ClusterRolesGetter // and then make assertions. }
func (*ClusterRolesGetterMock) ClusterRoles ¶
func (mock *ClusterRolesGetterMock) ClusterRoles(namespace string) v1a.ClusterRoleInterface
ClusterRoles calls ClusterRolesFunc.
func (*ClusterRolesGetterMock) ClusterRolesCalls ¶
func (mock *ClusterRolesGetterMock) ClusterRolesCalls() []struct { Namespace string }
ClusterRolesCalls gets all the calls that were made to ClusterRoles. Check the length with:
len(mockedClusterRolesGetter.ClusterRolesCalls())
type RoleBindingControllerMock ¶
type RoleBindingControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.RoleBindingHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.RoleBindingHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.RoleBindingLister // 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 }
RoleBindingControllerMock is a mock implementation of RoleBindingController.
func TestSomethingThatUsesRoleBindingController(t *testing.T) { // make and configure a mocked RoleBindingController mockedRoleBindingController := &RoleBindingControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.RoleBindingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.RoleBindingHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.RoleBindingLister { 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 mockedRoleBindingController in code that requires RoleBindingController // and then make assertions. }
func (*RoleBindingControllerMock) AddClusterScopedHandler ¶
func (mock *RoleBindingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*RoleBindingControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *RoleBindingControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.RoleBindingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedRoleBindingController.AddClusterScopedHandlerCalls())
func (*RoleBindingControllerMock) AddHandler ¶
func (mock *RoleBindingControllerMock) AddHandler(ctx context.Context, name string, handler v1a.RoleBindingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*RoleBindingControllerMock) AddHandlerCalls ¶
func (mock *RoleBindingControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.RoleBindingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedRoleBindingController.AddHandlerCalls())
func (*RoleBindingControllerMock) Enqueue ¶
func (mock *RoleBindingControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*RoleBindingControllerMock) EnqueueCalls ¶
func (mock *RoleBindingControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedRoleBindingController.EnqueueCalls())
func (*RoleBindingControllerMock) Generic ¶
func (mock *RoleBindingControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*RoleBindingControllerMock) GenericCalls ¶
func (mock *RoleBindingControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedRoleBindingController.GenericCalls())
func (*RoleBindingControllerMock) Informer ¶
func (mock *RoleBindingControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*RoleBindingControllerMock) InformerCalls ¶
func (mock *RoleBindingControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedRoleBindingController.InformerCalls())
func (*RoleBindingControllerMock) Lister ¶
func (mock *RoleBindingControllerMock) Lister() v1a.RoleBindingLister
Lister calls ListerFunc.
func (*RoleBindingControllerMock) ListerCalls ¶
func (mock *RoleBindingControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedRoleBindingController.ListerCalls())
func (*RoleBindingControllerMock) Start ¶
func (mock *RoleBindingControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*RoleBindingControllerMock) StartCalls ¶
func (mock *RoleBindingControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedRoleBindingController.StartCalls())
func (*RoleBindingControllerMock) Sync ¶
func (mock *RoleBindingControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*RoleBindingControllerMock) SyncCalls ¶
func (mock *RoleBindingControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedRoleBindingController.SyncCalls())
type RoleBindingInterfaceMock ¶
type RoleBindingInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.RoleBindingHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.RoleBindingHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.RoleBindingLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.RoleBindingController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.RoleBinding) (*v1.RoleBinding, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.RoleBinding, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.RoleBinding, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.RoleBindingList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.RoleBinding) (*v1.RoleBinding, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
RoleBindingInterfaceMock is a mock implementation of RoleBindingInterface.
func TestSomethingThatUsesRoleBindingInterface(t *testing.T) { // make and configure a mocked RoleBindingInterface mockedRoleBindingInterface := &RoleBindingInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.RoleBindingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.RoleBindingHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.RoleBindingLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.RoleBindingController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.RoleBinding) (*v1.RoleBinding, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.RoleBinding, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.RoleBinding, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.RoleBindingList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.RoleBinding) (*v1.RoleBinding, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedRoleBindingInterface in code that requires RoleBindingInterface // and then make assertions. }
func (*RoleBindingInterfaceMock) AddClusterScopedHandler ¶
func (mock *RoleBindingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.RoleBindingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*RoleBindingInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *RoleBindingInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.RoleBindingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedRoleBindingInterface.AddClusterScopedHandlerCalls())
func (*RoleBindingInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *RoleBindingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*RoleBindingInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *RoleBindingInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.RoleBindingLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedRoleBindingInterface.AddClusterScopedLifecycleCalls())
func (*RoleBindingInterfaceMock) AddHandler ¶
func (mock *RoleBindingInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.RoleBindingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*RoleBindingInterfaceMock) AddHandlerCalls ¶
func (mock *RoleBindingInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.RoleBindingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedRoleBindingInterface.AddHandlerCalls())
func (*RoleBindingInterfaceMock) AddLifecycle ¶
func (mock *RoleBindingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.RoleBindingLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*RoleBindingInterfaceMock) AddLifecycleCalls ¶
func (mock *RoleBindingInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.RoleBindingLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedRoleBindingInterface.AddLifecycleCalls())
func (*RoleBindingInterfaceMock) Controller ¶
func (mock *RoleBindingInterfaceMock) Controller() v1a.RoleBindingController
Controller calls ControllerFunc.
func (*RoleBindingInterfaceMock) ControllerCalls ¶
func (mock *RoleBindingInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedRoleBindingInterface.ControllerCalls())
func (*RoleBindingInterfaceMock) Create ¶
func (mock *RoleBindingInterfaceMock) Create(in1 *v1.RoleBinding) (*v1.RoleBinding, error)
Create calls CreateFunc.
func (*RoleBindingInterfaceMock) CreateCalls ¶
func (mock *RoleBindingInterfaceMock) CreateCalls() []struct { In1 *v1.RoleBinding }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRoleBindingInterface.CreateCalls())
func (*RoleBindingInterfaceMock) Delete ¶
func (mock *RoleBindingInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RoleBindingInterfaceMock) DeleteCalls ¶
func (mock *RoleBindingInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRoleBindingInterface.DeleteCalls())
func (*RoleBindingInterfaceMock) DeleteCollection ¶
func (mock *RoleBindingInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*RoleBindingInterfaceMock) DeleteCollectionCalls ¶
func (mock *RoleBindingInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedRoleBindingInterface.DeleteCollectionCalls())
func (*RoleBindingInterfaceMock) DeleteNamespaced ¶
func (mock *RoleBindingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*RoleBindingInterfaceMock) DeleteNamespacedCalls ¶
func (mock *RoleBindingInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedRoleBindingInterface.DeleteNamespacedCalls())
func (*RoleBindingInterfaceMock) Get ¶
func (mock *RoleBindingInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.RoleBinding, error)
Get calls GetFunc.
func (*RoleBindingInterfaceMock) GetCalls ¶
func (mock *RoleBindingInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRoleBindingInterface.GetCalls())
func (*RoleBindingInterfaceMock) GetNamespaced ¶
func (mock *RoleBindingInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.RoleBinding, error)
GetNamespaced calls GetNamespacedFunc.
func (*RoleBindingInterfaceMock) GetNamespacedCalls ¶
func (mock *RoleBindingInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedRoleBindingInterface.GetNamespacedCalls())
func (*RoleBindingInterfaceMock) List ¶
func (mock *RoleBindingInterfaceMock) List(opts v1b.ListOptions) (*v1a.RoleBindingList, error)
List calls ListFunc.
func (*RoleBindingInterfaceMock) ListCalls ¶
func (mock *RoleBindingInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRoleBindingInterface.ListCalls())
func (*RoleBindingInterfaceMock) ObjectClient ¶
func (mock *RoleBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*RoleBindingInterfaceMock) ObjectClientCalls ¶
func (mock *RoleBindingInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedRoleBindingInterface.ObjectClientCalls())
func (*RoleBindingInterfaceMock) Update ¶
func (mock *RoleBindingInterfaceMock) Update(in1 *v1.RoleBinding) (*v1.RoleBinding, error)
Update calls UpdateFunc.
func (*RoleBindingInterfaceMock) UpdateCalls ¶
func (mock *RoleBindingInterfaceMock) UpdateCalls() []struct { In1 *v1.RoleBinding }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRoleBindingInterface.UpdateCalls())
func (*RoleBindingInterfaceMock) Watch ¶
func (mock *RoleBindingInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RoleBindingInterfaceMock) WatchCalls ¶
func (mock *RoleBindingInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRoleBindingInterface.WatchCalls())
type RoleBindingListerMock ¶
type RoleBindingListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.RoleBinding, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.RoleBinding, error) // contains filtered or unexported fields }
RoleBindingListerMock is a mock implementation of RoleBindingLister.
func TestSomethingThatUsesRoleBindingLister(t *testing.T) { // make and configure a mocked RoleBindingLister mockedRoleBindingLister := &RoleBindingListerMock{ GetFunc: func(namespace string, name string) (*v1.RoleBinding, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.RoleBinding, error) { panic("mock out the List method") }, } // use mockedRoleBindingLister in code that requires RoleBindingLister // and then make assertions. }
func (*RoleBindingListerMock) Get ¶
func (mock *RoleBindingListerMock) Get(namespace string, name string) (*v1.RoleBinding, error)
Get calls GetFunc.
func (*RoleBindingListerMock) GetCalls ¶
func (mock *RoleBindingListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRoleBindingLister.GetCalls())
func (*RoleBindingListerMock) List ¶
func (mock *RoleBindingListerMock) List(namespace string, selector labels.Selector) ([]*v1.RoleBinding, error)
List calls ListFunc.
type RoleBindingsGetterMock ¶
type RoleBindingsGetterMock struct { // RoleBindingsFunc mocks the RoleBindings method. RoleBindingsFunc func(namespace string) v1a.RoleBindingInterface // contains filtered or unexported fields }
RoleBindingsGetterMock is a mock implementation of RoleBindingsGetter.
func TestSomethingThatUsesRoleBindingsGetter(t *testing.T) { // make and configure a mocked RoleBindingsGetter mockedRoleBindingsGetter := &RoleBindingsGetterMock{ RoleBindingsFunc: func(namespace string) v1a.RoleBindingInterface { panic("mock out the RoleBindings method") }, } // use mockedRoleBindingsGetter in code that requires RoleBindingsGetter // and then make assertions. }
func (*RoleBindingsGetterMock) RoleBindings ¶
func (mock *RoleBindingsGetterMock) RoleBindings(namespace string) v1a.RoleBindingInterface
RoleBindings calls RoleBindingsFunc.
func (*RoleBindingsGetterMock) RoleBindingsCalls ¶
func (mock *RoleBindingsGetterMock) RoleBindingsCalls() []struct { Namespace string }
RoleBindingsCalls gets all the calls that were made to RoleBindings. Check the length with:
len(mockedRoleBindingsGetter.RoleBindingsCalls())
type RoleControllerMock ¶
type RoleControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.RoleHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.RoleHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1a.RoleLister // 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 }
RoleControllerMock is a mock implementation of RoleController.
func TestSomethingThatUsesRoleController(t *testing.T) { // make and configure a mocked RoleController mockedRoleController := &RoleControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.RoleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.RoleHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1a.RoleLister { 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 mockedRoleController in code that requires RoleController // and then make assertions. }
func (*RoleControllerMock) AddClusterScopedHandler ¶
func (mock *RoleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.RoleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*RoleControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *RoleControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.RoleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedRoleController.AddClusterScopedHandlerCalls())
func (*RoleControllerMock) AddHandler ¶
func (mock *RoleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.RoleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*RoleControllerMock) AddHandlerCalls ¶
func (mock *RoleControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.RoleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedRoleController.AddHandlerCalls())
func (*RoleControllerMock) Enqueue ¶
func (mock *RoleControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*RoleControllerMock) EnqueueCalls ¶
func (mock *RoleControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedRoleController.EnqueueCalls())
func (*RoleControllerMock) Generic ¶
func (mock *RoleControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*RoleControllerMock) GenericCalls ¶
func (mock *RoleControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedRoleController.GenericCalls())
func (*RoleControllerMock) Informer ¶
func (mock *RoleControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*RoleControllerMock) InformerCalls ¶
func (mock *RoleControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedRoleController.InformerCalls())
func (*RoleControllerMock) Lister ¶
func (mock *RoleControllerMock) Lister() v1a.RoleLister
Lister calls ListerFunc.
func (*RoleControllerMock) ListerCalls ¶
func (mock *RoleControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedRoleController.ListerCalls())
func (*RoleControllerMock) Start ¶
func (mock *RoleControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*RoleControllerMock) StartCalls ¶
func (mock *RoleControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedRoleController.StartCalls())
func (*RoleControllerMock) Sync ¶
func (mock *RoleControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*RoleControllerMock) SyncCalls ¶
func (mock *RoleControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedRoleController.SyncCalls())
type RoleInterfaceMock ¶
type RoleInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.RoleHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.RoleHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.RoleLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.RoleController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Role) (*v1.Role, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Role, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Role, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.RoleList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Role) (*v1.Role, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
RoleInterfaceMock is a mock implementation of RoleInterface.
func TestSomethingThatUsesRoleInterface(t *testing.T) { // make and configure a mocked RoleInterface mockedRoleInterface := &RoleInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.RoleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.RoleHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.RoleLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.RoleController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Role) (*v1.Role, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Role, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Role, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.RoleList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Role) (*v1.Role, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedRoleInterface in code that requires RoleInterface // and then make assertions. }
func (*RoleInterfaceMock) AddClusterScopedHandler ¶
func (mock *RoleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.RoleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*RoleInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *RoleInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.RoleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedRoleInterface.AddClusterScopedHandlerCalls())
func (*RoleInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *RoleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.RoleLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*RoleInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *RoleInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.RoleLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedRoleInterface.AddClusterScopedLifecycleCalls())
func (*RoleInterfaceMock) AddHandler ¶
func (mock *RoleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.RoleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*RoleInterfaceMock) AddHandlerCalls ¶
func (mock *RoleInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.RoleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedRoleInterface.AddHandlerCalls())
func (*RoleInterfaceMock) AddLifecycle ¶
func (mock *RoleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.RoleLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*RoleInterfaceMock) AddLifecycleCalls ¶
func (mock *RoleInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.RoleLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedRoleInterface.AddLifecycleCalls())
func (*RoleInterfaceMock) Controller ¶
func (mock *RoleInterfaceMock) Controller() v1a.RoleController
Controller calls ControllerFunc.
func (*RoleInterfaceMock) ControllerCalls ¶
func (mock *RoleInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedRoleInterface.ControllerCalls())
func (*RoleInterfaceMock) CreateCalls ¶
func (mock *RoleInterfaceMock) CreateCalls() []struct { In1 *v1.Role }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRoleInterface.CreateCalls())
func (*RoleInterfaceMock) Delete ¶
func (mock *RoleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RoleInterfaceMock) DeleteCalls ¶
func (mock *RoleInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRoleInterface.DeleteCalls())
func (*RoleInterfaceMock) DeleteCollection ¶
func (mock *RoleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*RoleInterfaceMock) DeleteCollectionCalls ¶
func (mock *RoleInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedRoleInterface.DeleteCollectionCalls())
func (*RoleInterfaceMock) DeleteNamespaced ¶
func (mock *RoleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*RoleInterfaceMock) DeleteNamespacedCalls ¶
func (mock *RoleInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedRoleInterface.DeleteNamespacedCalls())
func (*RoleInterfaceMock) Get ¶
func (mock *RoleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Role, error)
Get calls GetFunc.
func (*RoleInterfaceMock) GetCalls ¶
func (mock *RoleInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRoleInterface.GetCalls())
func (*RoleInterfaceMock) GetNamespaced ¶
func (mock *RoleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Role, error)
GetNamespaced calls GetNamespacedFunc.
func (*RoleInterfaceMock) GetNamespacedCalls ¶
func (mock *RoleInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedRoleInterface.GetNamespacedCalls())
func (*RoleInterfaceMock) List ¶
func (mock *RoleInterfaceMock) List(opts v1b.ListOptions) (*v1a.RoleList, error)
List calls ListFunc.
func (*RoleInterfaceMock) ListCalls ¶
func (mock *RoleInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRoleInterface.ListCalls())
func (*RoleInterfaceMock) ObjectClient ¶
func (mock *RoleInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*RoleInterfaceMock) ObjectClientCalls ¶
func (mock *RoleInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedRoleInterface.ObjectClientCalls())
func (*RoleInterfaceMock) UpdateCalls ¶
func (mock *RoleInterfaceMock) UpdateCalls() []struct { In1 *v1.Role }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRoleInterface.UpdateCalls())
func (*RoleInterfaceMock) Watch ¶
func (mock *RoleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RoleInterfaceMock) WatchCalls ¶
func (mock *RoleInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRoleInterface.WatchCalls())
type RoleListerMock ¶
type RoleListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Role, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Role, error) // contains filtered or unexported fields }
RoleListerMock is a mock implementation of RoleLister.
func TestSomethingThatUsesRoleLister(t *testing.T) { // make and configure a mocked RoleLister mockedRoleLister := &RoleListerMock{ GetFunc: func(namespace string, name string) (*v1.Role, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Role, error) { panic("mock out the List method") }, } // use mockedRoleLister in code that requires RoleLister // and then make assertions. }
func (*RoleListerMock) GetCalls ¶
func (mock *RoleListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRoleLister.GetCalls())
type RolesGetterMock ¶
type RolesGetterMock struct { // RolesFunc mocks the Roles method. RolesFunc func(namespace string) v1a.RoleInterface // contains filtered or unexported fields }
RolesGetterMock is a mock implementation of RolesGetter.
func TestSomethingThatUsesRolesGetter(t *testing.T) { // make and configure a mocked RolesGetter mockedRolesGetter := &RolesGetterMock{ RolesFunc: func(namespace string) v1a.RoleInterface { panic("mock out the Roles method") }, } // use mockedRolesGetter in code that requires RolesGetter // and then make assertions. }
func (*RolesGetterMock) Roles ¶
func (mock *RolesGetterMock) Roles(namespace string) v1a.RoleInterface
Roles calls RolesFunc.
func (*RolesGetterMock) RolesCalls ¶
func (mock *RolesGetterMock) RolesCalls() []struct { Namespace string }
RolesCalls gets all the calls that were made to Roles. Check the length with:
len(mockedRolesGetter.RolesCalls())