fakes

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 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 ClusterRoleBindingCacheMock

type ClusterRoleBindingCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.ClusterRoleBindingIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(name string) (*v1a.ClusterRoleBinding, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.ClusterRoleBinding, error)

	// ListFunc mocks the List method.
	ListFunc func(selector labels.Selector) ([]*v1a.ClusterRoleBinding, error)
	// contains filtered or unexported fields
}

ClusterRoleBindingCacheMock is a mock implementation of ClusterRoleBindingCache.

    func TestSomethingThatUsesClusterRoleBindingCache(t *testing.T) {

        // make and configure a mocked ClusterRoleBindingCache
        mockedClusterRoleBindingCache := &ClusterRoleBindingCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.ClusterRoleBindingIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(name string) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.ClusterRoleBinding, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(selector labels.Selector) ([]*v1a.ClusterRoleBinding, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedClusterRoleBindingCache in code that requires ClusterRoleBindingCache
        // and then make assertions.

    }

func (*ClusterRoleBindingCacheMock) AddIndexer

func (mock *ClusterRoleBindingCacheMock) AddIndexer(indexName string, indexer v1.ClusterRoleBindingIndexer)

AddIndexer calls AddIndexerFunc.

func (*ClusterRoleBindingCacheMock) AddIndexerCalls

func (mock *ClusterRoleBindingCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.ClusterRoleBindingIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedClusterRoleBindingCache.AddIndexerCalls())

func (*ClusterRoleBindingCacheMock) Get

Get calls GetFunc.

func (*ClusterRoleBindingCacheMock) GetByIndex

func (mock *ClusterRoleBindingCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ClusterRoleBinding, error)

GetByIndex calls GetByIndexFunc.

func (*ClusterRoleBindingCacheMock) GetByIndexCalls

func (mock *ClusterRoleBindingCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedClusterRoleBindingCache.GetByIndexCalls())

func (*ClusterRoleBindingCacheMock) GetCalls

func (mock *ClusterRoleBindingCacheMock) GetCalls() []struct {
	Name string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleBindingCache.GetCalls())

func (*ClusterRoleBindingCacheMock) List

List calls ListFunc.

func (*ClusterRoleBindingCacheMock) ListCalls

func (mock *ClusterRoleBindingCacheMock) ListCalls() []struct {
	Selector labels.Selector
}

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

len(mockedClusterRoleBindingCache.ListCalls())

type ClusterRoleBindingClientMock

type ClusterRoleBindingClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1b.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(name string, options v1b.GetOptions) (*v1a.ClusterRoleBinding, error)

	// ListFunc mocks the List method.
	ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error)

	// PatchFunc mocks the Patch method.
	PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterRoleBindingClientMock is a mock implementation of ClusterRoleBindingClient.

    func TestSomethingThatUsesClusterRoleBindingClient(t *testing.T) {

        // make and configure a mocked ClusterRoleBindingClient
        mockedClusterRoleBindingClient := &ClusterRoleBindingClientMock{
            CreateFunc: func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(name string, options v1b.GetOptions) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedClusterRoleBindingClient in code that requires ClusterRoleBindingClient
        // and then make assertions.

    }

func (*ClusterRoleBindingClientMock) Create

Create calls CreateFunc.

func (*ClusterRoleBindingClientMock) CreateCalls

func (mock *ClusterRoleBindingClientMock) CreateCalls() []struct {
	In1 *v1a.ClusterRoleBinding
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterRoleBindingClient.CreateCalls())

func (*ClusterRoleBindingClientMock) Delete

func (mock *ClusterRoleBindingClientMock) Delete(name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterRoleBindingClientMock) DeleteCalls

func (mock *ClusterRoleBindingClientMock) DeleteCalls() []struct {
	Name    string
	Options *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterRoleBindingClient.DeleteCalls())

func (*ClusterRoleBindingClientMock) Get

Get calls GetFunc.

func (*ClusterRoleBindingClientMock) GetCalls

func (mock *ClusterRoleBindingClientMock) GetCalls() []struct {
	Name    string
	Options v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleBindingClient.GetCalls())

func (*ClusterRoleBindingClientMock) List

List calls ListFunc.

func (*ClusterRoleBindingClientMock) ListCalls

func (mock *ClusterRoleBindingClientMock) ListCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedClusterRoleBindingClient.ListCalls())

func (*ClusterRoleBindingClientMock) Patch

func (mock *ClusterRoleBindingClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error)

Patch calls PatchFunc.

func (*ClusterRoleBindingClientMock) PatchCalls

func (mock *ClusterRoleBindingClientMock) PatchCalls() []struct {
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedClusterRoleBindingClient.PatchCalls())

func (*ClusterRoleBindingClientMock) Update

Update calls UpdateFunc.

func (*ClusterRoleBindingClientMock) UpdateCalls

func (mock *ClusterRoleBindingClientMock) UpdateCalls() []struct {
	In1 *v1a.ClusterRoleBinding
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterRoleBindingClient.UpdateCalls())

func (*ClusterRoleBindingClientMock) Watch

Watch calls WatchFunc.

func (*ClusterRoleBindingClientMock) WatchCalls

func (mock *ClusterRoleBindingClientMock) WatchCalls() []struct {
	Opts v1b.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterRoleBindingClient.WatchCalls())

type ClusterRoleBindingControllerMock

type ClusterRoleBindingControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.ClusterRoleBindingCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1b.DeleteOptions) error

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(name string)

	// GetFunc mocks the Get method.
	GetFunc func(name string, options v1b.GetOptions) (*v1a.ClusterRoleBinding, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

	// ListFunc mocks the List method.
	ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error)

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.ClusterRoleBindingHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.ClusterRoleBindingHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterRoleBindingControllerMock is a mock implementation of ClusterRoleBindingController.

    func TestSomethingThatUsesClusterRoleBindingController(t *testing.T) {

        // make and configure a mocked ClusterRoleBindingController
        mockedClusterRoleBindingController := &ClusterRoleBindingControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.ClusterRoleBindingCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(name string, options v1b.GetOptions) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleBindingList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ClusterRoleBindingHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ClusterRoleBindingHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ClusterRoleBinding) (*v1a.ClusterRoleBinding, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

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

    }

func (*ClusterRoleBindingControllerMock) AddGenericHandler

func (mock *ClusterRoleBindingControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*ClusterRoleBindingControllerMock) AddGenericHandlerCalls

func (mock *ClusterRoleBindingControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedClusterRoleBindingController.AddGenericHandlerCalls())

func (*ClusterRoleBindingControllerMock) AddGenericRemoveHandler

func (mock *ClusterRoleBindingControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ClusterRoleBindingControllerMock) AddGenericRemoveHandlerCalls

func (mock *ClusterRoleBindingControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedClusterRoleBindingController.AddGenericRemoveHandlerCalls())

func (*ClusterRoleBindingControllerMock) Cache

Cache calls CacheFunc.

func (*ClusterRoleBindingControllerMock) CacheCalls

func (mock *ClusterRoleBindingControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedClusterRoleBindingController.CacheCalls())

func (*ClusterRoleBindingControllerMock) Create

Create calls CreateFunc.

func (*ClusterRoleBindingControllerMock) CreateCalls

func (mock *ClusterRoleBindingControllerMock) CreateCalls() []struct {
	In1 *v1a.ClusterRoleBinding
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterRoleBindingController.CreateCalls())

func (*ClusterRoleBindingControllerMock) Delete

func (mock *ClusterRoleBindingControllerMock) Delete(name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterRoleBindingControllerMock) DeleteCalls

func (mock *ClusterRoleBindingControllerMock) DeleteCalls() []struct {
	Name    string
	Options *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterRoleBindingController.DeleteCalls())

func (*ClusterRoleBindingControllerMock) Enqueue

func (mock *ClusterRoleBindingControllerMock) Enqueue(name string)

Enqueue calls EnqueueFunc.

func (*ClusterRoleBindingControllerMock) EnqueueCalls

func (mock *ClusterRoleBindingControllerMock) EnqueueCalls() []struct {
	Name string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedClusterRoleBindingController.EnqueueCalls())

func (*ClusterRoleBindingControllerMock) Get

Get calls GetFunc.

func (*ClusterRoleBindingControllerMock) GetCalls

func (mock *ClusterRoleBindingControllerMock) GetCalls() []struct {
	Name    string
	Options v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleBindingController.GetCalls())

func (*ClusterRoleBindingControllerMock) GroupVersionKind

func (mock *ClusterRoleBindingControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*ClusterRoleBindingControllerMock) GroupVersionKindCalls

func (mock *ClusterRoleBindingControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedClusterRoleBindingController.GroupVersionKindCalls())

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

List calls ListFunc.

func (*ClusterRoleBindingControllerMock) ListCalls

func (mock *ClusterRoleBindingControllerMock) ListCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedClusterRoleBindingController.ListCalls())

func (*ClusterRoleBindingControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*ClusterRoleBindingControllerMock) OnChangeCalls

func (mock *ClusterRoleBindingControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ClusterRoleBindingHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedClusterRoleBindingController.OnChangeCalls())

func (*ClusterRoleBindingControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*ClusterRoleBindingControllerMock) OnRemoveCalls

func (mock *ClusterRoleBindingControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ClusterRoleBindingHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedClusterRoleBindingController.OnRemoveCalls())

func (*ClusterRoleBindingControllerMock) Patch

func (mock *ClusterRoleBindingControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRoleBinding, error)

Patch calls PatchFunc.

func (*ClusterRoleBindingControllerMock) PatchCalls

func (mock *ClusterRoleBindingControllerMock) PatchCalls() []struct {
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedClusterRoleBindingController.PatchCalls())

func (*ClusterRoleBindingControllerMock) Update

Update calls UpdateFunc.

func (*ClusterRoleBindingControllerMock) UpdateCalls

func (mock *ClusterRoleBindingControllerMock) UpdateCalls() []struct {
	In1 *v1a.ClusterRoleBinding
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterRoleBindingController.UpdateCalls())

func (*ClusterRoleBindingControllerMock) Updater

Updater calls UpdaterFunc.

func (*ClusterRoleBindingControllerMock) UpdaterCalls

func (mock *ClusterRoleBindingControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedClusterRoleBindingController.UpdaterCalls())

func (*ClusterRoleBindingControllerMock) Watch

Watch calls WatchFunc.

func (*ClusterRoleBindingControllerMock) WatchCalls

func (mock *ClusterRoleBindingControllerMock) WatchCalls() []struct {
	Opts v1b.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterRoleBindingController.WatchCalls())

type ClusterRoleCacheMock

type ClusterRoleCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.ClusterRoleIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(name string) (*v1a.ClusterRole, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.ClusterRole, error)

	// ListFunc mocks the List method.
	ListFunc func(selector labels.Selector) ([]*v1a.ClusterRole, error)
	// contains filtered or unexported fields
}

ClusterRoleCacheMock is a mock implementation of ClusterRoleCache.

    func TestSomethingThatUsesClusterRoleCache(t *testing.T) {

        // make and configure a mocked ClusterRoleCache
        mockedClusterRoleCache := &ClusterRoleCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.ClusterRoleIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(name string) (*v1a.ClusterRole, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.ClusterRole, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(selector labels.Selector) ([]*v1a.ClusterRole, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedClusterRoleCache in code that requires ClusterRoleCache
        // and then make assertions.

    }

func (*ClusterRoleCacheMock) AddIndexer

func (mock *ClusterRoleCacheMock) AddIndexer(indexName string, indexer v1.ClusterRoleIndexer)

AddIndexer calls AddIndexerFunc.

func (*ClusterRoleCacheMock) AddIndexerCalls

func (mock *ClusterRoleCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.ClusterRoleIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedClusterRoleCache.AddIndexerCalls())

func (*ClusterRoleCacheMock) Get

func (mock *ClusterRoleCacheMock) Get(name string) (*v1a.ClusterRole, error)

Get calls GetFunc.

func (*ClusterRoleCacheMock) GetByIndex

func (mock *ClusterRoleCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ClusterRole, error)

GetByIndex calls GetByIndexFunc.

func (*ClusterRoleCacheMock) GetByIndexCalls

func (mock *ClusterRoleCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedClusterRoleCache.GetByIndexCalls())

func (*ClusterRoleCacheMock) GetCalls

func (mock *ClusterRoleCacheMock) GetCalls() []struct {
	Name string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleCache.GetCalls())

func (*ClusterRoleCacheMock) List

func (mock *ClusterRoleCacheMock) List(selector labels.Selector) ([]*v1a.ClusterRole, error)

List calls ListFunc.

func (*ClusterRoleCacheMock) ListCalls

func (mock *ClusterRoleCacheMock) ListCalls() []struct {
	Selector labels.Selector
}

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

len(mockedClusterRoleCache.ListCalls())

type ClusterRoleClientMock

type ClusterRoleClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1b.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(name string, options v1b.GetOptions) (*v1a.ClusterRole, error)

	// ListFunc mocks the List method.
	ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error)

	// PatchFunc mocks the Patch method.
	PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterRoleClientMock is a mock implementation of ClusterRoleClient.

    func TestSomethingThatUsesClusterRoleClient(t *testing.T) {

        // make and configure a mocked ClusterRoleClient
        mockedClusterRoleClient := &ClusterRoleClientMock{
            CreateFunc: func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(name string, options v1b.GetOptions) (*v1a.ClusterRole, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedClusterRoleClient in code that requires ClusterRoleClient
        // and then make assertions.

    }

func (*ClusterRoleClientMock) Create

func (mock *ClusterRoleClientMock) Create(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

Create calls CreateFunc.

func (*ClusterRoleClientMock) CreateCalls

func (mock *ClusterRoleClientMock) CreateCalls() []struct {
	In1 *v1a.ClusterRole
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterRoleClient.CreateCalls())

func (*ClusterRoleClientMock) Delete

func (mock *ClusterRoleClientMock) Delete(name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterRoleClientMock) DeleteCalls

func (mock *ClusterRoleClientMock) DeleteCalls() []struct {
	Name    string
	Options *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterRoleClient.DeleteCalls())

func (*ClusterRoleClientMock) Get

func (mock *ClusterRoleClientMock) Get(name string, options v1b.GetOptions) (*v1a.ClusterRole, error)

Get calls GetFunc.

func (*ClusterRoleClientMock) GetCalls

func (mock *ClusterRoleClientMock) GetCalls() []struct {
	Name    string
	Options v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleClient.GetCalls())

func (*ClusterRoleClientMock) List

List calls ListFunc.

func (*ClusterRoleClientMock) ListCalls

func (mock *ClusterRoleClientMock) ListCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedClusterRoleClient.ListCalls())

func (*ClusterRoleClientMock) Patch

func (mock *ClusterRoleClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error)

Patch calls PatchFunc.

func (*ClusterRoleClientMock) PatchCalls

func (mock *ClusterRoleClientMock) PatchCalls() []struct {
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedClusterRoleClient.PatchCalls())

func (*ClusterRoleClientMock) Update

func (mock *ClusterRoleClientMock) Update(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

Update calls UpdateFunc.

func (*ClusterRoleClientMock) UpdateCalls

func (mock *ClusterRoleClientMock) UpdateCalls() []struct {
	In1 *v1a.ClusterRole
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterRoleClient.UpdateCalls())

func (*ClusterRoleClientMock) Watch

Watch calls WatchFunc.

func (*ClusterRoleClientMock) WatchCalls

func (mock *ClusterRoleClientMock) WatchCalls() []struct {
	Opts v1b.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterRoleClient.WatchCalls())

type ClusterRoleControllerMock

type ClusterRoleControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.ClusterRoleCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1b.DeleteOptions) error

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(name string)

	// GetFunc mocks the Get method.
	GetFunc func(name string, options v1b.GetOptions) (*v1a.ClusterRole, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

	// ListFunc mocks the List method.
	ListFunc func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error)

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.ClusterRoleHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.ClusterRoleHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterRoleControllerMock is a mock implementation of ClusterRoleController.

    func TestSomethingThatUsesClusterRoleController(t *testing.T) {

        // make and configure a mocked ClusterRoleController
        mockedClusterRoleController := &ClusterRoleControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.ClusterRoleCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(name string, options v1b.GetOptions) (*v1a.ClusterRole, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.ClusterRoleList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ClusterRoleHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ClusterRoleHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ClusterRole) (*v1a.ClusterRole, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

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

    }

func (*ClusterRoleControllerMock) AddGenericHandler

func (mock *ClusterRoleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*ClusterRoleControllerMock) AddGenericHandlerCalls

func (mock *ClusterRoleControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedClusterRoleController.AddGenericHandlerCalls())

func (*ClusterRoleControllerMock) AddGenericRemoveHandler

func (mock *ClusterRoleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ClusterRoleControllerMock) AddGenericRemoveHandlerCalls

func (mock *ClusterRoleControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedClusterRoleController.AddGenericRemoveHandlerCalls())

func (*ClusterRoleControllerMock) Cache

Cache calls CacheFunc.

func (*ClusterRoleControllerMock) CacheCalls

func (mock *ClusterRoleControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedClusterRoleController.CacheCalls())

func (*ClusterRoleControllerMock) Create

Create calls CreateFunc.

func (*ClusterRoleControllerMock) CreateCalls

func (mock *ClusterRoleControllerMock) CreateCalls() []struct {
	In1 *v1a.ClusterRole
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterRoleController.CreateCalls())

func (*ClusterRoleControllerMock) Delete

func (mock *ClusterRoleControllerMock) Delete(name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterRoleControllerMock) DeleteCalls

func (mock *ClusterRoleControllerMock) DeleteCalls() []struct {
	Name    string
	Options *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterRoleController.DeleteCalls())

func (*ClusterRoleControllerMock) Enqueue

func (mock *ClusterRoleControllerMock) Enqueue(name string)

Enqueue calls EnqueueFunc.

func (*ClusterRoleControllerMock) EnqueueCalls

func (mock *ClusterRoleControllerMock) EnqueueCalls() []struct {
	Name string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedClusterRoleController.EnqueueCalls())

func (*ClusterRoleControllerMock) Get

func (mock *ClusterRoleControllerMock) Get(name string, options v1b.GetOptions) (*v1a.ClusterRole, error)

Get calls GetFunc.

func (*ClusterRoleControllerMock) GetCalls

func (mock *ClusterRoleControllerMock) GetCalls() []struct {
	Name    string
	Options v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterRoleController.GetCalls())

func (*ClusterRoleControllerMock) GroupVersionKind

func (mock *ClusterRoleControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*ClusterRoleControllerMock) GroupVersionKindCalls

func (mock *ClusterRoleControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedClusterRoleController.GroupVersionKindCalls())

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

List calls ListFunc.

func (*ClusterRoleControllerMock) ListCalls

func (mock *ClusterRoleControllerMock) ListCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedClusterRoleController.ListCalls())

func (*ClusterRoleControllerMock) OnChange

func (mock *ClusterRoleControllerMock) OnChange(ctx context.Context, name string, sync v1.ClusterRoleHandler)

OnChange calls OnChangeFunc.

func (*ClusterRoleControllerMock) OnChangeCalls

func (mock *ClusterRoleControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ClusterRoleHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedClusterRoleController.OnChangeCalls())

func (*ClusterRoleControllerMock) OnRemove

func (mock *ClusterRoleControllerMock) OnRemove(ctx context.Context, name string, sync v1.ClusterRoleHandler)

OnRemove calls OnRemoveFunc.

func (*ClusterRoleControllerMock) OnRemoveCalls

func (mock *ClusterRoleControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ClusterRoleHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedClusterRoleController.OnRemoveCalls())

func (*ClusterRoleControllerMock) Patch

func (mock *ClusterRoleControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterRole, error)

Patch calls PatchFunc.

func (*ClusterRoleControllerMock) PatchCalls

func (mock *ClusterRoleControllerMock) PatchCalls() []struct {
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedClusterRoleController.PatchCalls())

func (*ClusterRoleControllerMock) Update

Update calls UpdateFunc.

func (*ClusterRoleControllerMock) UpdateCalls

func (mock *ClusterRoleControllerMock) UpdateCalls() []struct {
	In1 *v1a.ClusterRole
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterRoleController.UpdateCalls())

func (*ClusterRoleControllerMock) Updater

func (mock *ClusterRoleControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*ClusterRoleControllerMock) UpdaterCalls

func (mock *ClusterRoleControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedClusterRoleController.UpdaterCalls())

func (*ClusterRoleControllerMock) Watch

Watch calls WatchFunc.

func (*ClusterRoleControllerMock) WatchCalls

func (mock *ClusterRoleControllerMock) WatchCalls() []struct {
	Opts v1b.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterRoleController.WatchCalls())

type RoleBindingCacheMock

type RoleBindingCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.RoleBindingIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1a.RoleBinding, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.RoleBinding, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, selector labels.Selector) ([]*v1a.RoleBinding, error)
	// contains filtered or unexported fields
}

RoleBindingCacheMock is a mock implementation of RoleBindingCache.

    func TestSomethingThatUsesRoleBindingCache(t *testing.T) {

        // make and configure a mocked RoleBindingCache
        mockedRoleBindingCache := &RoleBindingCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.RoleBindingIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1a.RoleBinding, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.RoleBinding, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.RoleBinding, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedRoleBindingCache in code that requires RoleBindingCache
        // and then make assertions.

    }

func (*RoleBindingCacheMock) AddIndexer

func (mock *RoleBindingCacheMock) AddIndexer(indexName string, indexer v1.RoleBindingIndexer)

AddIndexer calls AddIndexerFunc.

func (*RoleBindingCacheMock) AddIndexerCalls

func (mock *RoleBindingCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.RoleBindingIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedRoleBindingCache.AddIndexerCalls())

func (*RoleBindingCacheMock) Get

func (mock *RoleBindingCacheMock) Get(namespace string, name string) (*v1a.RoleBinding, error)

Get calls GetFunc.

func (*RoleBindingCacheMock) GetByIndex

func (mock *RoleBindingCacheMock) GetByIndex(indexName string, key string) ([]*v1a.RoleBinding, error)

GetByIndex calls GetByIndexFunc.

func (*RoleBindingCacheMock) GetByIndexCalls

func (mock *RoleBindingCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedRoleBindingCache.GetByIndexCalls())

func (*RoleBindingCacheMock) GetCalls

func (mock *RoleBindingCacheMock) GetCalls() []struct {
	Namespace string
	Name      string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleBindingCache.GetCalls())

func (*RoleBindingCacheMock) List

func (mock *RoleBindingCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.RoleBinding, error)

List calls ListFunc.

func (*RoleBindingCacheMock) ListCalls

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

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

len(mockedRoleBindingCache.ListCalls())

type RoleBindingClientMock

type RoleBindingClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

RoleBindingClientMock is a mock implementation of RoleBindingClient.

    func TestSomethingThatUsesRoleBindingClient(t *testing.T) {

        // make and configure a mocked RoleBindingClient
        mockedRoleBindingClient := &RoleBindingClientMock{
            CreateFunc: func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedRoleBindingClient in code that requires RoleBindingClient
        // and then make assertions.

    }

func (*RoleBindingClientMock) Create

func (mock *RoleBindingClientMock) Create(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

Create calls CreateFunc.

func (*RoleBindingClientMock) CreateCalls

func (mock *RoleBindingClientMock) CreateCalls() []struct {
	In1 *v1a.RoleBinding
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedRoleBindingClient.CreateCalls())

func (*RoleBindingClientMock) Delete

func (mock *RoleBindingClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*RoleBindingClientMock) DeleteCalls

func (mock *RoleBindingClientMock) DeleteCalls() []struct {
	Namespace string
	Name      string
	Options   *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedRoleBindingClient.DeleteCalls())

func (*RoleBindingClientMock) Get

func (mock *RoleBindingClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error)

Get calls GetFunc.

func (*RoleBindingClientMock) GetCalls

func (mock *RoleBindingClientMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleBindingClient.GetCalls())

func (*RoleBindingClientMock) List

func (mock *RoleBindingClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error)

List calls ListFunc.

func (*RoleBindingClientMock) ListCalls

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

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

len(mockedRoleBindingClient.ListCalls())

func (*RoleBindingClientMock) Patch

func (mock *RoleBindingClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error)

Patch calls PatchFunc.

func (*RoleBindingClientMock) PatchCalls

func (mock *RoleBindingClientMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedRoleBindingClient.PatchCalls())

func (*RoleBindingClientMock) Update

func (mock *RoleBindingClientMock) Update(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

Update calls UpdateFunc.

func (*RoleBindingClientMock) UpdateCalls

func (mock *RoleBindingClientMock) UpdateCalls() []struct {
	In1 *v1a.RoleBinding
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedRoleBindingClient.UpdateCalls())

func (*RoleBindingClientMock) Watch

func (mock *RoleBindingClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*RoleBindingClientMock) WatchCalls

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

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedRoleBindingClient.WatchCalls())

type RoleBindingControllerMock

type RoleBindingControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.RoleBindingCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error)

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.RoleBindingHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.RoleBindingHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

	// WatchFunc mocks the Watch method.
	WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

RoleBindingControllerMock is a mock implementation of RoleBindingController.

    func TestSomethingThatUsesRoleBindingController(t *testing.T) {

        // make and configure a mocked RoleBindingController
        mockedRoleBindingController := &RoleBindingControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.RoleBindingCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.RoleBindingHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.RoleBindingHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.RoleBinding) (*v1a.RoleBinding, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

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

    }

func (*RoleBindingControllerMock) AddGenericHandler

func (mock *RoleBindingControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*RoleBindingControllerMock) AddGenericHandlerCalls

func (mock *RoleBindingControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedRoleBindingController.AddGenericHandlerCalls())

func (*RoleBindingControllerMock) AddGenericRemoveHandler

func (mock *RoleBindingControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*RoleBindingControllerMock) AddGenericRemoveHandlerCalls

func (mock *RoleBindingControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedRoleBindingController.AddGenericRemoveHandlerCalls())

func (*RoleBindingControllerMock) Cache

Cache calls CacheFunc.

func (*RoleBindingControllerMock) CacheCalls

func (mock *RoleBindingControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedRoleBindingController.CacheCalls())

func (*RoleBindingControllerMock) Create

Create calls CreateFunc.

func (*RoleBindingControllerMock) CreateCalls

func (mock *RoleBindingControllerMock) CreateCalls() []struct {
	In1 *v1a.RoleBinding
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedRoleBindingController.CreateCalls())

func (*RoleBindingControllerMock) Delete

func (mock *RoleBindingControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*RoleBindingControllerMock) DeleteCalls

func (mock *RoleBindingControllerMock) DeleteCalls() []struct {
	Namespace string
	Name      string
	Options   *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedRoleBindingController.DeleteCalls())

func (*RoleBindingControllerMock) Enqueue

func (mock *RoleBindingControllerMock) Enqueue(namespace string, name string)

Enqueue calls EnqueueFunc.

func (*RoleBindingControllerMock) EnqueueCalls

func (mock *RoleBindingControllerMock) EnqueueCalls() []struct {
	Namespace string
	Name      string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedRoleBindingController.EnqueueCalls())

func (*RoleBindingControllerMock) Get

func (mock *RoleBindingControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.RoleBinding, error)

Get calls GetFunc.

func (*RoleBindingControllerMock) GetCalls

func (mock *RoleBindingControllerMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleBindingController.GetCalls())

func (*RoleBindingControllerMock) GroupVersionKind

func (mock *RoleBindingControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*RoleBindingControllerMock) GroupVersionKindCalls

func (mock *RoleBindingControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedRoleBindingController.GroupVersionKindCalls())

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

func (mock *RoleBindingControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.RoleBindingList, error)

List calls ListFunc.

func (*RoleBindingControllerMock) ListCalls

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

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

len(mockedRoleBindingController.ListCalls())

func (*RoleBindingControllerMock) OnChange

func (mock *RoleBindingControllerMock) OnChange(ctx context.Context, name string, sync v1.RoleBindingHandler)

OnChange calls OnChangeFunc.

func (*RoleBindingControllerMock) OnChangeCalls

func (mock *RoleBindingControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.RoleBindingHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedRoleBindingController.OnChangeCalls())

func (*RoleBindingControllerMock) OnRemove

func (mock *RoleBindingControllerMock) OnRemove(ctx context.Context, name string, sync v1.RoleBindingHandler)

OnRemove calls OnRemoveFunc.

func (*RoleBindingControllerMock) OnRemoveCalls

func (mock *RoleBindingControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.RoleBindingHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedRoleBindingController.OnRemoveCalls())

func (*RoleBindingControllerMock) Patch

func (mock *RoleBindingControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RoleBinding, error)

Patch calls PatchFunc.

func (*RoleBindingControllerMock) PatchCalls

func (mock *RoleBindingControllerMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedRoleBindingController.PatchCalls())

func (*RoleBindingControllerMock) Update

Update calls UpdateFunc.

func (*RoleBindingControllerMock) UpdateCalls

func (mock *RoleBindingControllerMock) UpdateCalls() []struct {
	In1 *v1a.RoleBinding
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedRoleBindingController.UpdateCalls())

func (*RoleBindingControllerMock) Updater

func (mock *RoleBindingControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*RoleBindingControllerMock) UpdaterCalls

func (mock *RoleBindingControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedRoleBindingController.UpdaterCalls())

func (*RoleBindingControllerMock) Watch

func (mock *RoleBindingControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*RoleBindingControllerMock) WatchCalls

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

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedRoleBindingController.WatchCalls())

type RoleCacheMock

type RoleCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.RoleIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1a.Role, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.Role, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Role, error)
	// contains filtered or unexported fields
}

RoleCacheMock is a mock implementation of RoleCache.

    func TestSomethingThatUsesRoleCache(t *testing.T) {

        // make and configure a mocked RoleCache
        mockedRoleCache := &RoleCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.RoleIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1a.Role, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.Role, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Role, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedRoleCache in code that requires RoleCache
        // and then make assertions.

    }

func (*RoleCacheMock) AddIndexer

func (mock *RoleCacheMock) AddIndexer(indexName string, indexer v1.RoleIndexer)

AddIndexer calls AddIndexerFunc.

func (*RoleCacheMock) AddIndexerCalls

func (mock *RoleCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.RoleIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedRoleCache.AddIndexerCalls())

func (*RoleCacheMock) Get

func (mock *RoleCacheMock) Get(namespace string, name string) (*v1a.Role, error)

Get calls GetFunc.

func (*RoleCacheMock) GetByIndex

func (mock *RoleCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Role, error)

GetByIndex calls GetByIndexFunc.

func (*RoleCacheMock) GetByIndexCalls

func (mock *RoleCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedRoleCache.GetByIndexCalls())

func (*RoleCacheMock) GetCalls

func (mock *RoleCacheMock) GetCalls() []struct {
	Namespace string
	Name      string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleCache.GetCalls())

func (*RoleCacheMock) List

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

List calls ListFunc.

func (*RoleCacheMock) ListCalls

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

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

len(mockedRoleCache.ListCalls())

type RoleClientMock

type RoleClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Role) (*v1a.Role, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Role) (*v1a.Role, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

RoleClientMock is a mock implementation of RoleClient.

    func TestSomethingThatUsesRoleClient(t *testing.T) {

        // make and configure a mocked RoleClient
        mockedRoleClient := &RoleClientMock{
            CreateFunc: func(in1 *v1a.Role) (*v1a.Role, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Role) (*v1a.Role, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedRoleClient in code that requires RoleClient
        // and then make assertions.

    }

func (*RoleClientMock) Create

func (mock *RoleClientMock) Create(in1 *v1a.Role) (*v1a.Role, error)

Create calls CreateFunc.

func (*RoleClientMock) CreateCalls

func (mock *RoleClientMock) CreateCalls() []struct {
	In1 *v1a.Role
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedRoleClient.CreateCalls())

func (*RoleClientMock) Delete

func (mock *RoleClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*RoleClientMock) DeleteCalls

func (mock *RoleClientMock) DeleteCalls() []struct {
	Namespace string
	Name      string
	Options   *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedRoleClient.DeleteCalls())

func (*RoleClientMock) Get

func (mock *RoleClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error)

Get calls GetFunc.

func (*RoleClientMock) GetCalls

func (mock *RoleClientMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleClient.GetCalls())

func (*RoleClientMock) List

func (mock *RoleClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error)

List calls ListFunc.

func (*RoleClientMock) ListCalls

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

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

len(mockedRoleClient.ListCalls())

func (*RoleClientMock) Patch

func (mock *RoleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error)

Patch calls PatchFunc.

func (*RoleClientMock) PatchCalls

func (mock *RoleClientMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedRoleClient.PatchCalls())

func (*RoleClientMock) Update

func (mock *RoleClientMock) Update(in1 *v1a.Role) (*v1a.Role, error)

Update calls UpdateFunc.

func (*RoleClientMock) UpdateCalls

func (mock *RoleClientMock) UpdateCalls() []struct {
	In1 *v1a.Role
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedRoleClient.UpdateCalls())

func (*RoleClientMock) Watch

func (mock *RoleClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*RoleClientMock) WatchCalls

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

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedRoleClient.WatchCalls())

type RoleControllerMock

type RoleControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.RoleCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Role) (*v1a.Role, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error)

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.RoleHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.RoleHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Role) (*v1a.Role, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

	// WatchFunc mocks the Watch method.
	WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

RoleControllerMock is a mock implementation of RoleController.

    func TestSomethingThatUsesRoleController(t *testing.T) {

        // make and configure a mocked RoleController
        mockedRoleController := &RoleControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.RoleCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Role) (*v1a.Role, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.RoleHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.RoleHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Role) (*v1a.Role, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

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

    }

func (*RoleControllerMock) AddGenericHandler

func (mock *RoleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*RoleControllerMock) AddGenericHandlerCalls

func (mock *RoleControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedRoleController.AddGenericHandlerCalls())

func (*RoleControllerMock) AddGenericRemoveHandler

func (mock *RoleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*RoleControllerMock) AddGenericRemoveHandlerCalls

func (mock *RoleControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedRoleController.AddGenericRemoveHandlerCalls())

func (*RoleControllerMock) Cache

func (mock *RoleControllerMock) Cache() v1.RoleCache

Cache calls CacheFunc.

func (*RoleControllerMock) CacheCalls

func (mock *RoleControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedRoleController.CacheCalls())

func (*RoleControllerMock) Create

func (mock *RoleControllerMock) Create(in1 *v1a.Role) (*v1a.Role, error)

Create calls CreateFunc.

func (*RoleControllerMock) CreateCalls

func (mock *RoleControllerMock) CreateCalls() []struct {
	In1 *v1a.Role
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedRoleController.CreateCalls())

func (*RoleControllerMock) Delete

func (mock *RoleControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*RoleControllerMock) DeleteCalls

func (mock *RoleControllerMock) DeleteCalls() []struct {
	Namespace string
	Name      string
	Options   *v1b.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedRoleController.DeleteCalls())

func (*RoleControllerMock) Enqueue

func (mock *RoleControllerMock) Enqueue(namespace string, name string)

Enqueue calls EnqueueFunc.

func (*RoleControllerMock) EnqueueCalls

func (mock *RoleControllerMock) EnqueueCalls() []struct {
	Namespace string
	Name      string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedRoleController.EnqueueCalls())

func (*RoleControllerMock) Get

func (mock *RoleControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Role, error)

Get calls GetFunc.

func (*RoleControllerMock) GetCalls

func (mock *RoleControllerMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedRoleController.GetCalls())

func (*RoleControllerMock) GroupVersionKind

func (mock *RoleControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*RoleControllerMock) GroupVersionKindCalls

func (mock *RoleControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedRoleController.GroupVersionKindCalls())

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

func (mock *RoleControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.RoleList, error)

List calls ListFunc.

func (*RoleControllerMock) ListCalls

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

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

len(mockedRoleController.ListCalls())

func (*RoleControllerMock) OnChange

func (mock *RoleControllerMock) OnChange(ctx context.Context, name string, sync v1.RoleHandler)

OnChange calls OnChangeFunc.

func (*RoleControllerMock) OnChangeCalls

func (mock *RoleControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.RoleHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedRoleController.OnChangeCalls())

func (*RoleControllerMock) OnRemove

func (mock *RoleControllerMock) OnRemove(ctx context.Context, name string, sync v1.RoleHandler)

OnRemove calls OnRemoveFunc.

func (*RoleControllerMock) OnRemoveCalls

func (mock *RoleControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.RoleHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedRoleController.OnRemoveCalls())

func (*RoleControllerMock) Patch

func (mock *RoleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Role, error)

Patch calls PatchFunc.

func (*RoleControllerMock) PatchCalls

func (mock *RoleControllerMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedRoleController.PatchCalls())

func (*RoleControllerMock) Update

func (mock *RoleControllerMock) Update(in1 *v1a.Role) (*v1a.Role, error)

Update calls UpdateFunc.

func (*RoleControllerMock) UpdateCalls

func (mock *RoleControllerMock) UpdateCalls() []struct {
	In1 *v1a.Role
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedRoleController.UpdateCalls())

func (*RoleControllerMock) Updater

func (mock *RoleControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*RoleControllerMock) UpdaterCalls

func (mock *RoleControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedRoleController.UpdaterCalls())

func (*RoleControllerMock) Watch

func (mock *RoleControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*RoleControllerMock) WatchCalls

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

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedRoleController.WatchCalls())

Jump to

Keyboard shortcuts

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