fakes

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleBindingControllerMock

type ClusterRoleBindingControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync 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)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1a.ClusterRoleBindingLister
	// 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleBindingHandlerFunc)  {
	               panic("mock out the AddFeatureHandler 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")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1a.ClusterRoleBindingLister {
	               panic("mock out the Lister method")
            },
        }

        // use mockedClusterRoleBindingController in code that requires ClusterRoleBindingController
        // and then make assertions.

    }

func (*ClusterRoleBindingControllerMock) AddClusterScopedFeatureHandler

func (mock *ClusterRoleBindingControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleBindingHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterRoleBindingControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterRoleBindingControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1a.ClusterRoleBindingHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterRoleBindingController.AddClusterScopedFeatureHandlerCalls())

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) AddFeatureHandler

func (mock *ClusterRoleBindingControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleBindingHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterRoleBindingControllerMock) AddFeatureHandlerCalls

func (mock *ClusterRoleBindingControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.ClusterRoleBindingHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterRoleBindingController.AddFeatureHandlerCalls())

func (*ClusterRoleBindingControllerMock) AddHandler

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) EnqueueAfter

func (mock *ClusterRoleBindingControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*ClusterRoleBindingControllerMock) EnqueueAfterCalls

func (mock *ClusterRoleBindingControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedClusterRoleBindingController.EnqueueAfterCalls())

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

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

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

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())

type ClusterRoleBindingInterfaceMock

type ClusterRoleBindingInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle)

	// 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)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleBindingHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name 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) (*v1.ClusterRoleBindingList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1.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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            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")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleBindingHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ClusterRoleBindingLifecycle)  {
	               panic("mock out the AddFeatureLifecycle 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) (*v1.ClusterRoleBindingList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1.ClusterRoleBindingList, error) {
	               panic("mock out the ListNamespaced 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) AddClusterScopedFeatureHandler

func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleBindingHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1a.ClusterRoleBindingHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterRoleBindingInterface.AddClusterScopedFeatureHandlerCalls())

func (*ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleBindingLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *ClusterRoleBindingInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1a.ClusterRoleBindingLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedClusterRoleBindingInterface.AddClusterScopedFeatureLifecycleCalls())

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) AddFeatureHandler

func (mock *ClusterRoleBindingInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleBindingHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterRoleBindingInterfaceMock) AddFeatureHandlerCalls

func (mock *ClusterRoleBindingInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.ClusterRoleBindingHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterRoleBindingInterface.AddFeatureHandlerCalls())

func (*ClusterRoleBindingInterfaceMock) AddFeatureLifecycle

func (mock *ClusterRoleBindingInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ClusterRoleBindingLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*ClusterRoleBindingInterfaceMock) AddFeatureLifecycleCalls

func (mock *ClusterRoleBindingInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1a.ClusterRoleBindingLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedClusterRoleBindingInterface.AddFeatureLifecycleCalls())

func (*ClusterRoleBindingInterfaceMock) AddHandler

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

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

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

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

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) ListNamespaced

func (mock *ClusterRoleBindingInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1.ClusterRoleBindingList, error)

ListNamespaced calls ListNamespacedFunc.

func (*ClusterRoleBindingInterfaceMock) ListNamespacedCalls

func (mock *ClusterRoleBindingInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1b.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedClusterRoleBindingInterface.ListNamespacedCalls())

func (*ClusterRoleBindingInterfaceMock) 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

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

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.

func (*ClusterRoleBindingListerMock) ListCalls

func (mock *ClusterRoleBindingListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterRoleBindingLister.ListCalls())

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 {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync 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)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1a.ClusterRoleLister
	// 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler 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")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1a.ClusterRoleLister {
	               panic("mock out the Lister method")
            },
        }

        // use mockedClusterRoleController in code that requires ClusterRoleController
        // and then make assertions.

    }

func (*ClusterRoleControllerMock) AddClusterScopedFeatureHandler

func (mock *ClusterRoleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ClusterRoleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterRoleControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterRoleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1a.ClusterRoleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterRoleController.AddClusterScopedFeatureHandlerCalls())

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) AddFeatureHandler

func (mock *ClusterRoleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterRoleControllerMock) AddFeatureHandlerCalls

func (mock *ClusterRoleControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.ClusterRoleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterRoleController.AddFeatureHandlerCalls())

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) EnqueueAfter

func (mock *ClusterRoleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*ClusterRoleControllerMock) EnqueueAfterCalls

func (mock *ClusterRoleControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedClusterRoleController.EnqueueAfterCalls())

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

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

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

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())

type ClusterRoleInterfaceMock

type ClusterRoleInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle)

	// 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)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name 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) (*v1.ClusterRoleList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1.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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            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")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ClusterRoleLifecycle)  {
	               panic("mock out the AddFeatureLifecycle 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) (*v1.ClusterRoleList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1.ClusterRoleList, error) {
	               panic("mock out the ListNamespaced 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) AddClusterScopedFeatureHandler

func (mock *ClusterRoleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ClusterRoleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterRoleInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterRoleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1a.ClusterRoleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterRoleInterface.AddClusterScopedFeatureHandlerCalls())

func (*ClusterRoleInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *ClusterRoleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ClusterRoleLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*ClusterRoleInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *ClusterRoleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1a.ClusterRoleLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedClusterRoleInterface.AddClusterScopedFeatureLifecycleCalls())

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) AddFeatureHandler

func (mock *ClusterRoleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ClusterRoleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterRoleInterfaceMock) AddFeatureHandlerCalls

func (mock *ClusterRoleInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.ClusterRoleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterRoleInterface.AddFeatureHandlerCalls())

func (*ClusterRoleInterfaceMock) AddFeatureLifecycle

func (mock *ClusterRoleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ClusterRoleLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*ClusterRoleInterfaceMock) AddFeatureLifecycleCalls

func (mock *ClusterRoleInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1a.ClusterRoleLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedClusterRoleInterface.AddFeatureLifecycleCalls())

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

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

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) ListNamespaced

func (mock *ClusterRoleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1.ClusterRoleList, error)

ListNamespaced calls ListNamespacedFunc.

func (*ClusterRoleInterfaceMock) ListNamespacedCalls

func (mock *ClusterRoleInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1b.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedClusterRoleInterface.ListNamespacedCalls())

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

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.

func (*ClusterRoleListerMock) ListCalls

func (mock *ClusterRoleListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterRoleLister.ListCalls())

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 {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync 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)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1a.RoleBindingLister
	// 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleBindingHandlerFunc)  {
	               panic("mock out the AddFeatureHandler 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")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1a.RoleBindingLister {
	               panic("mock out the Lister method")
            },
        }

        // use mockedRoleBindingController in code that requires RoleBindingController
        // and then make assertions.

    }

func (*RoleBindingControllerMock) AddClusterScopedFeatureHandler

func (mock *RoleBindingControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleBindingHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*RoleBindingControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *RoleBindingControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1a.RoleBindingHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedRoleBindingController.AddClusterScopedFeatureHandlerCalls())

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) AddFeatureHandler

func (mock *RoleBindingControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.RoleBindingHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*RoleBindingControllerMock) AddFeatureHandlerCalls

func (mock *RoleBindingControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.RoleBindingHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedRoleBindingController.AddFeatureHandlerCalls())

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) EnqueueAfter

func (mock *RoleBindingControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*RoleBindingControllerMock) EnqueueAfterCalls

func (mock *RoleBindingControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedRoleBindingController.EnqueueAfterCalls())

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

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

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

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())

type RoleBindingInterfaceMock

type RoleBindingInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleBindingHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle)

	// 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)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleBindingHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name 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) (*v1.RoleBindingList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1.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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleBindingHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            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")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleBindingHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.RoleBindingLifecycle)  {
	               panic("mock out the AddFeatureLifecycle 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) (*v1.RoleBindingList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1.RoleBindingList, error) {
	               panic("mock out the ListNamespaced 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) AddClusterScopedFeatureHandler

func (mock *RoleBindingInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleBindingHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*RoleBindingInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *RoleBindingInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1a.RoleBindingHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedRoleBindingInterface.AddClusterScopedFeatureHandlerCalls())

func (*RoleBindingInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *RoleBindingInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleBindingLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*RoleBindingInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *RoleBindingInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1a.RoleBindingLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedRoleBindingInterface.AddClusterScopedFeatureLifecycleCalls())

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) AddFeatureHandler

func (mock *RoleBindingInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.RoleBindingHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*RoleBindingInterfaceMock) AddFeatureHandlerCalls

func (mock *RoleBindingInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.RoleBindingHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedRoleBindingInterface.AddFeatureHandlerCalls())

func (*RoleBindingInterfaceMock) AddFeatureLifecycle

func (mock *RoleBindingInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.RoleBindingLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*RoleBindingInterfaceMock) AddFeatureLifecycleCalls

func (mock *RoleBindingInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1a.RoleBindingLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedRoleBindingInterface.AddFeatureLifecycleCalls())

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

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

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) ListNamespaced

func (mock *RoleBindingInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1.RoleBindingList, error)

ListNamespaced calls ListNamespacedFunc.

func (*RoleBindingInterfaceMock) ListNamespacedCalls

func (mock *RoleBindingInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1b.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedRoleBindingInterface.ListNamespacedCalls())

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

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.

func (*RoleBindingListerMock) ListCalls

func (mock *RoleBindingListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedRoleBindingLister.ListCalls())

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 {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.RoleHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync 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)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1a.RoleLister
	// 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.RoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler 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")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1a.RoleLister {
	               panic("mock out the Lister method")
            },
        }

        // use mockedRoleController in code that requires RoleController
        // and then make assertions.

    }

func (*RoleControllerMock) AddClusterScopedFeatureHandler

func (mock *RoleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.RoleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*RoleControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *RoleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1a.RoleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedRoleController.AddClusterScopedFeatureHandlerCalls())

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) AddFeatureHandler

func (mock *RoleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.RoleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*RoleControllerMock) AddFeatureHandlerCalls

func (mock *RoleControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.RoleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedRoleController.AddFeatureHandlerCalls())

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) EnqueueAfter

func (mock *RoleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*RoleControllerMock) EnqueueAfterCalls

func (mock *RoleControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedRoleController.EnqueueAfterCalls())

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

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())

type RoleInterfaceMock

type RoleInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleLifecycle)

	// 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)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name 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) (*v1.RoleList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1.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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            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")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.RoleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.RoleLifecycle)  {
	               panic("mock out the AddFeatureLifecycle 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) (*v1.RoleList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1.RoleList, error) {
	               panic("mock out the ListNamespaced 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) AddClusterScopedFeatureHandler

func (mock *RoleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.RoleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*RoleInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *RoleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1a.RoleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedRoleInterface.AddClusterScopedFeatureHandlerCalls())

func (*RoleInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *RoleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.RoleLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*RoleInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *RoleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1a.RoleLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedRoleInterface.AddClusterScopedFeatureLifecycleCalls())

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) AddFeatureHandler

func (mock *RoleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.RoleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*RoleInterfaceMock) AddFeatureHandlerCalls

func (mock *RoleInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.RoleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedRoleInterface.AddFeatureHandlerCalls())

func (*RoleInterfaceMock) AddFeatureLifecycle

func (mock *RoleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.RoleLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*RoleInterfaceMock) AddFeatureLifecycleCalls

func (mock *RoleInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1a.RoleLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedRoleInterface.AddFeatureLifecycleCalls())

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) Create

func (mock *RoleInterfaceMock) Create(in1 *v1.Role) (*v1.Role, error)

Create calls CreateFunc.

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) (*v1.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) ListNamespaced

func (mock *RoleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1.RoleList, error)

ListNamespaced calls ListNamespacedFunc.

func (*RoleInterfaceMock) ListNamespacedCalls

func (mock *RoleInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1b.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedRoleInterface.ListNamespacedCalls())

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) Update

func (mock *RoleInterfaceMock) Update(in1 *v1.Role) (*v1.Role, error)

Update calls UpdateFunc.

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) Get

func (mock *RoleListerMock) Get(namespace string, name string) (*v1.Role, error)

Get calls GetFunc.

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())

func (*RoleListerMock) List

func (mock *RoleListerMock) List(namespace string, selector labels.Selector) ([]*v1.Role, error)

List calls ListFunc.

func (*RoleListerMock) ListCalls

func (mock *RoleListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedRoleLister.ListCalls())

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())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL