fakes

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 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())

Jump to

Keyboard shortcuts

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