fakes

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 ConfigMapCacheMock

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

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

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

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

ConfigMapCacheMock is a mock implementation of ConfigMapCache.

    func TestSomethingThatUsesConfigMapCache(t *testing.T) {

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

        // use mockedConfigMapCache in code that requires ConfigMapCache
        // and then make assertions.

    }

func (*ConfigMapCacheMock) AddIndexer

func (mock *ConfigMapCacheMock) AddIndexer(indexName string, indexer v1.ConfigMapIndexer)

AddIndexer calls AddIndexerFunc.

func (*ConfigMapCacheMock) AddIndexerCalls

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

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

len(mockedConfigMapCache.AddIndexerCalls())

func (*ConfigMapCacheMock) Get

func (mock *ConfigMapCacheMock) Get(namespace string, name string) (*v1a.ConfigMap, error)

Get calls GetFunc.

func (*ConfigMapCacheMock) GetByIndex

func (mock *ConfigMapCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ConfigMap, error)

GetByIndex calls GetByIndexFunc.

func (*ConfigMapCacheMock) GetByIndexCalls

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

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

len(mockedConfigMapCache.GetByIndexCalls())

func (*ConfigMapCacheMock) GetCalls

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

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

len(mockedConfigMapCache.GetCalls())

func (*ConfigMapCacheMock) List

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

List calls ListFunc.

func (*ConfigMapCacheMock) ListCalls

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

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

len(mockedConfigMapCache.ListCalls())

type ConfigMapClientMock

type ConfigMapClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, error)

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

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

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

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

ConfigMapClientMock is a mock implementation of ConfigMapClient.

    func TestSomethingThatUsesConfigMapClient(t *testing.T) {

        // make and configure a mocked ConfigMapClient
        mockedConfigMapClient := &ConfigMapClientMock{
            CreateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedConfigMapClient in code that requires ConfigMapClient
        // and then make assertions.

    }

func (*ConfigMapClientMock) Create

func (mock *ConfigMapClientMock) Create(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)

Create calls CreateFunc.

func (*ConfigMapClientMock) CreateCalls

func (mock *ConfigMapClientMock) CreateCalls() []struct {
	In1 *v1a.ConfigMap
}

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

len(mockedConfigMapClient.CreateCalls())

func (*ConfigMapClientMock) Delete

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

Delete calls DeleteFunc.

func (*ConfigMapClientMock) DeleteCalls

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

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

len(mockedConfigMapClient.DeleteCalls())

func (*ConfigMapClientMock) Get

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

Get calls GetFunc.

func (*ConfigMapClientMock) GetCalls

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

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

len(mockedConfigMapClient.GetCalls())

func (*ConfigMapClientMock) List

func (mock *ConfigMapClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)

List calls ListFunc.

func (*ConfigMapClientMock) ListCalls

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

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

len(mockedConfigMapClient.ListCalls())

func (*ConfigMapClientMock) Patch

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

Patch calls PatchFunc.

func (*ConfigMapClientMock) PatchCalls

func (mock *ConfigMapClientMock) 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(mockedConfigMapClient.PatchCalls())

func (*ConfigMapClientMock) Update

func (mock *ConfigMapClientMock) Update(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)

Update calls UpdateFunc.

func (*ConfigMapClientMock) UpdateCalls

func (mock *ConfigMapClientMock) UpdateCalls() []struct {
	In1 *v1a.ConfigMap
}

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

len(mockedConfigMapClient.UpdateCalls())

func (*ConfigMapClientMock) Watch

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

Watch calls WatchFunc.

func (*ConfigMapClientMock) WatchCalls

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

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

len(mockedConfigMapClient.WatchCalls())

type ConfigMapControllerMock

type ConfigMapControllerMock 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.ConfigMapCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, 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.ConfigMapList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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
}

ConfigMapControllerMock is a mock implementation of ConfigMapController.

    func TestSomethingThatUsesConfigMapController(t *testing.T) {

        // make and configure a mocked ConfigMapController
        mockedConfigMapController := &ConfigMapControllerMock{
            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.ConfigMapCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, 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.ConfigMapList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ConfigMapHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ConfigMapHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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 mockedConfigMapController in code that requires ConfigMapController
        // and then make assertions.

    }

func (*ConfigMapControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ConfigMapControllerMock) AddGenericHandlerCalls

func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.AddGenericHandlerCalls())

func (*ConfigMapControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ConfigMapControllerMock) AddGenericRemoveHandlerCalls

func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.AddGenericRemoveHandlerCalls())

func (*ConfigMapControllerMock) Cache

Cache calls CacheFunc.

func (*ConfigMapControllerMock) CacheCalls

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

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

len(mockedConfigMapController.CacheCalls())

func (*ConfigMapControllerMock) Create

func (mock *ConfigMapControllerMock) Create(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)

Create calls CreateFunc.

func (*ConfigMapControllerMock) CreateCalls

func (mock *ConfigMapControllerMock) CreateCalls() []struct {
	In1 *v1a.ConfigMap
}

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

len(mockedConfigMapController.CreateCalls())

func (*ConfigMapControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ConfigMapControllerMock) DeleteCalls

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

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

len(mockedConfigMapController.DeleteCalls())

func (*ConfigMapControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ConfigMapControllerMock) EnqueueCalls

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

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

len(mockedConfigMapController.EnqueueCalls())

func (*ConfigMapControllerMock) Get

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

Get calls GetFunc.

func (*ConfigMapControllerMock) GetCalls

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

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

len(mockedConfigMapController.GetCalls())

func (*ConfigMapControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ConfigMapControllerMock) GroupVersionKindCalls

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

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

len(mockedConfigMapController.GroupVersionKindCalls())

func (*ConfigMapControllerMock) Informer

Informer calls InformerFunc.

func (*ConfigMapControllerMock) InformerCalls

func (mock *ConfigMapControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedConfigMapController.InformerCalls())

func (*ConfigMapControllerMock) List

func (mock *ConfigMapControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)

List calls ListFunc.

func (*ConfigMapControllerMock) ListCalls

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

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

len(mockedConfigMapController.ListCalls())

func (*ConfigMapControllerMock) OnChange

func (mock *ConfigMapControllerMock) OnChange(ctx context.Context, name string, sync v1.ConfigMapHandler)

OnChange calls OnChangeFunc.

func (*ConfigMapControllerMock) OnChangeCalls

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

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

len(mockedConfigMapController.OnChangeCalls())

func (*ConfigMapControllerMock) OnRemove

func (mock *ConfigMapControllerMock) OnRemove(ctx context.Context, name string, sync v1.ConfigMapHandler)

OnRemove calls OnRemoveFunc.

func (*ConfigMapControllerMock) OnRemoveCalls

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

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

len(mockedConfigMapController.OnRemoveCalls())

func (*ConfigMapControllerMock) Patch

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

Patch calls PatchFunc.

func (*ConfigMapControllerMock) PatchCalls

func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.PatchCalls())

func (*ConfigMapControllerMock) Update

func (mock *ConfigMapControllerMock) Update(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)

Update calls UpdateFunc.

func (*ConfigMapControllerMock) UpdateCalls

func (mock *ConfigMapControllerMock) UpdateCalls() []struct {
	In1 *v1a.ConfigMap
}

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

len(mockedConfigMapController.UpdateCalls())

func (*ConfigMapControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*ConfigMapControllerMock) UpdaterCalls

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

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

len(mockedConfigMapController.UpdaterCalls())

func (*ConfigMapControllerMock) Watch

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

Watch calls WatchFunc.

func (*ConfigMapControllerMock) WatchCalls

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

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

len(mockedConfigMapController.WatchCalls())

type EndpointsCacheMock

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

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

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

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

EndpointsCacheMock is a mock implementation of EndpointsCache.

    func TestSomethingThatUsesEndpointsCache(t *testing.T) {

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

        // use mockedEndpointsCache in code that requires EndpointsCache
        // and then make assertions.

    }

func (*EndpointsCacheMock) AddIndexer

func (mock *EndpointsCacheMock) AddIndexer(indexName string, indexer v1.EndpointsIndexer)

AddIndexer calls AddIndexerFunc.

func (*EndpointsCacheMock) AddIndexerCalls

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

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

len(mockedEndpointsCache.AddIndexerCalls())

func (*EndpointsCacheMock) Get

func (mock *EndpointsCacheMock) Get(namespace string, name string) (*v1a.Endpoints, error)

Get calls GetFunc.

func (*EndpointsCacheMock) GetByIndex

func (mock *EndpointsCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Endpoints, error)

GetByIndex calls GetByIndexFunc.

func (*EndpointsCacheMock) GetByIndexCalls

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

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

len(mockedEndpointsCache.GetByIndexCalls())

func (*EndpointsCacheMock) GetCalls

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

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

len(mockedEndpointsCache.GetCalls())

func (*EndpointsCacheMock) List

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

List calls ListFunc.

func (*EndpointsCacheMock) ListCalls

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

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

len(mockedEndpointsCache.ListCalls())

type EndpointsClientMock

type EndpointsClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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.Endpoints, error)

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

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

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

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

EndpointsClientMock is a mock implementation of EndpointsClient.

    func TestSomethingThatUsesEndpointsClient(t *testing.T) {

        // make and configure a mocked EndpointsClient
        mockedEndpointsClient := &EndpointsClientMock{
            CreateFunc: func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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.Endpoints, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Endpoints, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Endpoints) (*v1a.Endpoints, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedEndpointsClient in code that requires EndpointsClient
        // and then make assertions.

    }

func (*EndpointsClientMock) Create

func (mock *EndpointsClientMock) Create(in1 *v1a.Endpoints) (*v1a.Endpoints, error)

Create calls CreateFunc.

func (*EndpointsClientMock) CreateCalls

func (mock *EndpointsClientMock) CreateCalls() []struct {
	In1 *v1a.Endpoints
}

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

len(mockedEndpointsClient.CreateCalls())

func (*EndpointsClientMock) Delete

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

Delete calls DeleteFunc.

func (*EndpointsClientMock) DeleteCalls

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

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

len(mockedEndpointsClient.DeleteCalls())

func (*EndpointsClientMock) Get

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

Get calls GetFunc.

func (*EndpointsClientMock) GetCalls

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

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

len(mockedEndpointsClient.GetCalls())

func (*EndpointsClientMock) List

func (mock *EndpointsClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error)

List calls ListFunc.

func (*EndpointsClientMock) ListCalls

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

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

len(mockedEndpointsClient.ListCalls())

func (*EndpointsClientMock) Patch

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

Patch calls PatchFunc.

func (*EndpointsClientMock) PatchCalls

func (mock *EndpointsClientMock) 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(mockedEndpointsClient.PatchCalls())

func (*EndpointsClientMock) Update

func (mock *EndpointsClientMock) Update(in1 *v1a.Endpoints) (*v1a.Endpoints, error)

Update calls UpdateFunc.

func (*EndpointsClientMock) UpdateCalls

func (mock *EndpointsClientMock) UpdateCalls() []struct {
	In1 *v1a.Endpoints
}

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

len(mockedEndpointsClient.UpdateCalls())

func (*EndpointsClientMock) Watch

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

Watch calls WatchFunc.

func (*EndpointsClientMock) WatchCalls

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

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

len(mockedEndpointsClient.WatchCalls())

type EndpointsControllerMock

type EndpointsControllerMock 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.EndpointsCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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.Endpoints, 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.EndpointsList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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
}

EndpointsControllerMock is a mock implementation of EndpointsController.

    func TestSomethingThatUsesEndpointsController(t *testing.T) {

        // make and configure a mocked EndpointsController
        mockedEndpointsController := &EndpointsControllerMock{
            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.EndpointsCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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.Endpoints, 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.EndpointsList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.EndpointsHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.EndpointsHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Endpoints, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Endpoints) (*v1a.Endpoints, 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 mockedEndpointsController in code that requires EndpointsController
        // and then make assertions.

    }

func (*EndpointsControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*EndpointsControllerMock) AddGenericHandlerCalls

func (mock *EndpointsControllerMock) 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(mockedEndpointsController.AddGenericHandlerCalls())

func (*EndpointsControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*EndpointsControllerMock) AddGenericRemoveHandlerCalls

func (mock *EndpointsControllerMock) 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(mockedEndpointsController.AddGenericRemoveHandlerCalls())

func (*EndpointsControllerMock) Cache

Cache calls CacheFunc.

func (*EndpointsControllerMock) CacheCalls

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

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

len(mockedEndpointsController.CacheCalls())

func (*EndpointsControllerMock) Create

func (mock *EndpointsControllerMock) Create(in1 *v1a.Endpoints) (*v1a.Endpoints, error)

Create calls CreateFunc.

func (*EndpointsControllerMock) CreateCalls

func (mock *EndpointsControllerMock) CreateCalls() []struct {
	In1 *v1a.Endpoints
}

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

len(mockedEndpointsController.CreateCalls())

func (*EndpointsControllerMock) Delete

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

Delete calls DeleteFunc.

func (*EndpointsControllerMock) DeleteCalls

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

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

len(mockedEndpointsController.DeleteCalls())

func (*EndpointsControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*EndpointsControllerMock) EnqueueCalls

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

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

len(mockedEndpointsController.EnqueueCalls())

func (*EndpointsControllerMock) Get

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

Get calls GetFunc.

func (*EndpointsControllerMock) GetCalls

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

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

len(mockedEndpointsController.GetCalls())

func (*EndpointsControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*EndpointsControllerMock) GroupVersionKindCalls

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

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

len(mockedEndpointsController.GroupVersionKindCalls())

func (*EndpointsControllerMock) Informer

Informer calls InformerFunc.

func (*EndpointsControllerMock) InformerCalls

func (mock *EndpointsControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedEndpointsController.InformerCalls())

func (*EndpointsControllerMock) List

func (mock *EndpointsControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.EndpointsList, error)

List calls ListFunc.

func (*EndpointsControllerMock) ListCalls

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

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

len(mockedEndpointsController.ListCalls())

func (*EndpointsControllerMock) OnChange

func (mock *EndpointsControllerMock) OnChange(ctx context.Context, name string, sync v1.EndpointsHandler)

OnChange calls OnChangeFunc.

func (*EndpointsControllerMock) OnChangeCalls

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

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

len(mockedEndpointsController.OnChangeCalls())

func (*EndpointsControllerMock) OnRemove

func (mock *EndpointsControllerMock) OnRemove(ctx context.Context, name string, sync v1.EndpointsHandler)

OnRemove calls OnRemoveFunc.

func (*EndpointsControllerMock) OnRemoveCalls

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

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

len(mockedEndpointsController.OnRemoveCalls())

func (*EndpointsControllerMock) Patch

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

Patch calls PatchFunc.

func (*EndpointsControllerMock) PatchCalls

func (mock *EndpointsControllerMock) 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(mockedEndpointsController.PatchCalls())

func (*EndpointsControllerMock) Update

func (mock *EndpointsControllerMock) Update(in1 *v1a.Endpoints) (*v1a.Endpoints, error)

Update calls UpdateFunc.

func (*EndpointsControllerMock) UpdateCalls

func (mock *EndpointsControllerMock) UpdateCalls() []struct {
	In1 *v1a.Endpoints
}

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

len(mockedEndpointsController.UpdateCalls())

func (*EndpointsControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*EndpointsControllerMock) UpdaterCalls

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

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

len(mockedEndpointsController.UpdaterCalls())

func (*EndpointsControllerMock) Watch

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

Watch calls WatchFunc.

func (*EndpointsControllerMock) WatchCalls

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

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

len(mockedEndpointsController.WatchCalls())

type NamespaceCacheMock

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

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

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

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

NamespaceCacheMock is a mock implementation of NamespaceCache.

    func TestSomethingThatUsesNamespaceCache(t *testing.T) {

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

        // use mockedNamespaceCache in code that requires NamespaceCache
        // and then make assertions.

    }

func (*NamespaceCacheMock) AddIndexer

func (mock *NamespaceCacheMock) AddIndexer(indexName string, indexer v1.NamespaceIndexer)

AddIndexer calls AddIndexerFunc.

func (*NamespaceCacheMock) AddIndexerCalls

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

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

len(mockedNamespaceCache.AddIndexerCalls())

func (*NamespaceCacheMock) Get

func (mock *NamespaceCacheMock) Get(name string) (*v1a.Namespace, error)

Get calls GetFunc.

func (*NamespaceCacheMock) GetByIndex

func (mock *NamespaceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Namespace, error)

GetByIndex calls GetByIndexFunc.

func (*NamespaceCacheMock) GetByIndexCalls

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

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

len(mockedNamespaceCache.GetByIndexCalls())

func (*NamespaceCacheMock) GetCalls

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

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

len(mockedNamespaceCache.GetCalls())

func (*NamespaceCacheMock) List

func (mock *NamespaceCacheMock) List(selector labels.Selector) ([]*v1a.Namespace, error)

List calls ListFunc.

func (*NamespaceCacheMock) ListCalls

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

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

len(mockedNamespaceCache.ListCalls())

type NamespaceClientMock

type NamespaceClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Namespace) (*v1a.Namespace, 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.Namespace, error)

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Namespace) (*v1a.Namespace, error)

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

NamespaceClientMock is a mock implementation of NamespaceClient.

    func TestSomethingThatUsesNamespaceClient(t *testing.T) {

        // make and configure a mocked NamespaceClient
        mockedNamespaceClient := &NamespaceClientMock{
            CreateFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, 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.Namespace, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.NamespaceList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Namespace, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedNamespaceClient in code that requires NamespaceClient
        // and then make assertions.

    }

func (*NamespaceClientMock) Create

func (mock *NamespaceClientMock) Create(in1 *v1a.Namespace) (*v1a.Namespace, error)

Create calls CreateFunc.

func (*NamespaceClientMock) CreateCalls

func (mock *NamespaceClientMock) CreateCalls() []struct {
	In1 *v1a.Namespace
}

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

len(mockedNamespaceClient.CreateCalls())

func (*NamespaceClientMock) Delete

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

Delete calls DeleteFunc.

func (*NamespaceClientMock) DeleteCalls

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

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

len(mockedNamespaceClient.DeleteCalls())

func (*NamespaceClientMock) Get

func (mock *NamespaceClientMock) Get(name string, options v1b.GetOptions) (*v1a.Namespace, error)

Get calls GetFunc.

func (*NamespaceClientMock) GetCalls

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

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

len(mockedNamespaceClient.GetCalls())

func (*NamespaceClientMock) List

List calls ListFunc.

func (*NamespaceClientMock) ListCalls

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

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

len(mockedNamespaceClient.ListCalls())

func (*NamespaceClientMock) Patch

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

Patch calls PatchFunc.

func (*NamespaceClientMock) PatchCalls

func (mock *NamespaceClientMock) 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(mockedNamespaceClient.PatchCalls())

func (*NamespaceClientMock) Update

func (mock *NamespaceClientMock) Update(in1 *v1a.Namespace) (*v1a.Namespace, error)

Update calls UpdateFunc.

func (*NamespaceClientMock) UpdateCalls

func (mock *NamespaceClientMock) UpdateCalls() []struct {
	In1 *v1a.Namespace
}

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

len(mockedNamespaceClient.UpdateCalls())

func (*NamespaceClientMock) UpdateStatus

func (mock *NamespaceClientMock) UpdateStatus(in1 *v1a.Namespace) (*v1a.Namespace, error)

UpdateStatus calls UpdateStatusFunc.

func (*NamespaceClientMock) UpdateStatusCalls

func (mock *NamespaceClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Namespace
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedNamespaceClient.UpdateStatusCalls())

func (*NamespaceClientMock) Watch

func (mock *NamespaceClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*NamespaceClientMock) WatchCalls

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

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

len(mockedNamespaceClient.WatchCalls())

type NamespaceControllerMock

type NamespaceControllerMock 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.NamespaceCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Namespace) (*v1a.Namespace, 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.Namespace, 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.NamespaceList, error)

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

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Namespace) (*v1a.Namespace, 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
}

NamespaceControllerMock is a mock implementation of NamespaceController.

    func TestSomethingThatUsesNamespaceController(t *testing.T) {

        // make and configure a mocked NamespaceController
        mockedNamespaceController := &NamespaceControllerMock{
            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.NamespaceCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, 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.Namespace, 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.NamespaceList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.NamespaceHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.NamespaceHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Namespace, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Namespace) (*v1a.Namespace, error) {
	               panic("mock out the UpdateStatus 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 mockedNamespaceController in code that requires NamespaceController
        // and then make assertions.

    }

func (*NamespaceControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*NamespaceControllerMock) AddGenericHandlerCalls

func (mock *NamespaceControllerMock) 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(mockedNamespaceController.AddGenericHandlerCalls())

func (*NamespaceControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*NamespaceControllerMock) AddGenericRemoveHandlerCalls

func (mock *NamespaceControllerMock) 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(mockedNamespaceController.AddGenericRemoveHandlerCalls())

func (*NamespaceControllerMock) Cache

Cache calls CacheFunc.

func (*NamespaceControllerMock) CacheCalls

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

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

len(mockedNamespaceController.CacheCalls())

func (*NamespaceControllerMock) Create

func (mock *NamespaceControllerMock) Create(in1 *v1a.Namespace) (*v1a.Namespace, error)

Create calls CreateFunc.

func (*NamespaceControllerMock) CreateCalls

func (mock *NamespaceControllerMock) CreateCalls() []struct {
	In1 *v1a.Namespace
}

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

len(mockedNamespaceController.CreateCalls())

func (*NamespaceControllerMock) Delete

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

Delete calls DeleteFunc.

func (*NamespaceControllerMock) DeleteCalls

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

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

len(mockedNamespaceController.DeleteCalls())

func (*NamespaceControllerMock) Enqueue

func (mock *NamespaceControllerMock) Enqueue(name string)

Enqueue calls EnqueueFunc.

func (*NamespaceControllerMock) EnqueueCalls

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

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

len(mockedNamespaceController.EnqueueCalls())

func (*NamespaceControllerMock) Get

func (mock *NamespaceControllerMock) Get(name string, options v1b.GetOptions) (*v1a.Namespace, error)

Get calls GetFunc.

func (*NamespaceControllerMock) GetCalls

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

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

len(mockedNamespaceController.GetCalls())

func (*NamespaceControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*NamespaceControllerMock) GroupVersionKindCalls

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

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

len(mockedNamespaceController.GroupVersionKindCalls())

func (*NamespaceControllerMock) Informer

Informer calls InformerFunc.

func (*NamespaceControllerMock) InformerCalls

func (mock *NamespaceControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedNamespaceController.InformerCalls())

func (*NamespaceControllerMock) List

List calls ListFunc.

func (*NamespaceControllerMock) ListCalls

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

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

len(mockedNamespaceController.ListCalls())

func (*NamespaceControllerMock) OnChange

func (mock *NamespaceControllerMock) OnChange(ctx context.Context, name string, sync v1.NamespaceHandler)

OnChange calls OnChangeFunc.

func (*NamespaceControllerMock) OnChangeCalls

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

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

len(mockedNamespaceController.OnChangeCalls())

func (*NamespaceControllerMock) OnRemove

func (mock *NamespaceControllerMock) OnRemove(ctx context.Context, name string, sync v1.NamespaceHandler)

OnRemove calls OnRemoveFunc.

func (*NamespaceControllerMock) OnRemoveCalls

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

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

len(mockedNamespaceController.OnRemoveCalls())

func (*NamespaceControllerMock) Patch

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

Patch calls PatchFunc.

func (*NamespaceControllerMock) PatchCalls

func (mock *NamespaceControllerMock) 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(mockedNamespaceController.PatchCalls())

func (*NamespaceControllerMock) Update

func (mock *NamespaceControllerMock) Update(in1 *v1a.Namespace) (*v1a.Namespace, error)

Update calls UpdateFunc.

func (*NamespaceControllerMock) UpdateCalls

func (mock *NamespaceControllerMock) UpdateCalls() []struct {
	In1 *v1a.Namespace
}

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

len(mockedNamespaceController.UpdateCalls())

func (*NamespaceControllerMock) UpdateStatus

func (mock *NamespaceControllerMock) UpdateStatus(in1 *v1a.Namespace) (*v1a.Namespace, error)

UpdateStatus calls UpdateStatusFunc.

func (*NamespaceControllerMock) UpdateStatusCalls

func (mock *NamespaceControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Namespace
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedNamespaceController.UpdateStatusCalls())

func (*NamespaceControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*NamespaceControllerMock) UpdaterCalls

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

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

len(mockedNamespaceController.UpdaterCalls())

func (*NamespaceControllerMock) Watch

Watch calls WatchFunc.

func (*NamespaceControllerMock) WatchCalls

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

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

len(mockedNamespaceController.WatchCalls())

type NodeCacheMock

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

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

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

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

NodeCacheMock is a mock implementation of NodeCache.

    func TestSomethingThatUsesNodeCache(t *testing.T) {

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

        // use mockedNodeCache in code that requires NodeCache
        // and then make assertions.

    }

func (*NodeCacheMock) AddIndexer

func (mock *NodeCacheMock) AddIndexer(indexName string, indexer v1.NodeIndexer)

AddIndexer calls AddIndexerFunc.

func (*NodeCacheMock) AddIndexerCalls

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

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

len(mockedNodeCache.AddIndexerCalls())

func (*NodeCacheMock) Get

func (mock *NodeCacheMock) Get(name string) (*v1a.Node, error)

Get calls GetFunc.

func (*NodeCacheMock) GetByIndex

func (mock *NodeCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Node, error)

GetByIndex calls GetByIndexFunc.

func (*NodeCacheMock) GetByIndexCalls

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

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

len(mockedNodeCache.GetByIndexCalls())

func (*NodeCacheMock) GetCalls

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

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

len(mockedNodeCache.GetCalls())

func (*NodeCacheMock) List

func (mock *NodeCacheMock) List(selector labels.Selector) ([]*v1a.Node, error)

List calls ListFunc.

func (*NodeCacheMock) ListCalls

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

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

len(mockedNodeCache.ListCalls())

type NodeClientMock

type NodeClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Node) (*v1a.Node, 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.Node, error)

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Node) (*v1a.Node, error)

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

NodeClientMock is a mock implementation of NodeClient.

    func TestSomethingThatUsesNodeClient(t *testing.T) {

        // make and configure a mocked NodeClient
        mockedNodeClient := &NodeClientMock{
            CreateFunc: func(in1 *v1a.Node) (*v1a.Node, 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.Node, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(opts v1b.ListOptions) (*v1a.NodeList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Node) (*v1a.Node, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Node) (*v1a.Node, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedNodeClient in code that requires NodeClient
        // and then make assertions.

    }

func (*NodeClientMock) Create

func (mock *NodeClientMock) Create(in1 *v1a.Node) (*v1a.Node, error)

Create calls CreateFunc.

func (*NodeClientMock) CreateCalls

func (mock *NodeClientMock) CreateCalls() []struct {
	In1 *v1a.Node
}

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

len(mockedNodeClient.CreateCalls())

func (*NodeClientMock) Delete

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

Delete calls DeleteFunc.

func (*NodeClientMock) DeleteCalls

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

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

len(mockedNodeClient.DeleteCalls())

func (*NodeClientMock) Get

func (mock *NodeClientMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)

Get calls GetFunc.

func (*NodeClientMock) GetCalls

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

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

len(mockedNodeClient.GetCalls())

func (*NodeClientMock) List

func (mock *NodeClientMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)

List calls ListFunc.

func (*NodeClientMock) ListCalls

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

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

len(mockedNodeClient.ListCalls())

func (*NodeClientMock) Patch

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

Patch calls PatchFunc.

func (*NodeClientMock) PatchCalls

func (mock *NodeClientMock) 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(mockedNodeClient.PatchCalls())

func (*NodeClientMock) Update

func (mock *NodeClientMock) Update(in1 *v1a.Node) (*v1a.Node, error)

Update calls UpdateFunc.

func (*NodeClientMock) UpdateCalls

func (mock *NodeClientMock) UpdateCalls() []struct {
	In1 *v1a.Node
}

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

len(mockedNodeClient.UpdateCalls())

func (*NodeClientMock) UpdateStatus

func (mock *NodeClientMock) UpdateStatus(in1 *v1a.Node) (*v1a.Node, error)

UpdateStatus calls UpdateStatusFunc.

func (*NodeClientMock) UpdateStatusCalls

func (mock *NodeClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Node
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedNodeClient.UpdateStatusCalls())

func (*NodeClientMock) Watch

func (mock *NodeClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*NodeClientMock) WatchCalls

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

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

len(mockedNodeClient.WatchCalls())

type NodeControllerMock

type NodeControllerMock 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.NodeCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Node) (*v1a.Node, 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.Node, 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.NodeList, error)

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

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Node) (*v1a.Node, 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
}

NodeControllerMock is a mock implementation of NodeController.

    func TestSomethingThatUsesNodeController(t *testing.T) {

        // make and configure a mocked NodeController
        mockedNodeController := &NodeControllerMock{
            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.NodeCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Node) (*v1a.Node, 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.Node, 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.NodeList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.NodeHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.NodeHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Node) (*v1a.Node, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Node) (*v1a.Node, error) {
	               panic("mock out the UpdateStatus 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 mockedNodeController in code that requires NodeController
        // and then make assertions.

    }

func (*NodeControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*NodeControllerMock) AddGenericHandlerCalls

func (mock *NodeControllerMock) 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(mockedNodeController.AddGenericHandlerCalls())

func (*NodeControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*NodeControllerMock) AddGenericRemoveHandlerCalls

func (mock *NodeControllerMock) 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(mockedNodeController.AddGenericRemoveHandlerCalls())

func (*NodeControllerMock) Cache

func (mock *NodeControllerMock) Cache() v1.NodeCache

Cache calls CacheFunc.

func (*NodeControllerMock) CacheCalls

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

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

len(mockedNodeController.CacheCalls())

func (*NodeControllerMock) Create

func (mock *NodeControllerMock) Create(in1 *v1a.Node) (*v1a.Node, error)

Create calls CreateFunc.

func (*NodeControllerMock) CreateCalls

func (mock *NodeControllerMock) CreateCalls() []struct {
	In1 *v1a.Node
}

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

len(mockedNodeController.CreateCalls())

func (*NodeControllerMock) Delete

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

Delete calls DeleteFunc.

func (*NodeControllerMock) DeleteCalls

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

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

len(mockedNodeController.DeleteCalls())

func (*NodeControllerMock) Enqueue

func (mock *NodeControllerMock) Enqueue(name string)

Enqueue calls EnqueueFunc.

func (*NodeControllerMock) EnqueueCalls

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

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

len(mockedNodeController.EnqueueCalls())

func (*NodeControllerMock) Get

func (mock *NodeControllerMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)

Get calls GetFunc.

func (*NodeControllerMock) GetCalls

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

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

len(mockedNodeController.GetCalls())

func (*NodeControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*NodeControllerMock) GroupVersionKindCalls

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

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

len(mockedNodeController.GroupVersionKindCalls())

func (*NodeControllerMock) Informer

func (mock *NodeControllerMock) Informer() cache.SharedIndexInformer

Informer calls InformerFunc.

func (*NodeControllerMock) InformerCalls

func (mock *NodeControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedNodeController.InformerCalls())

func (*NodeControllerMock) List

func (mock *NodeControllerMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)

List calls ListFunc.

func (*NodeControllerMock) ListCalls

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

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

len(mockedNodeController.ListCalls())

func (*NodeControllerMock) OnChange

func (mock *NodeControllerMock) OnChange(ctx context.Context, name string, sync v1.NodeHandler)

OnChange calls OnChangeFunc.

func (*NodeControllerMock) OnChangeCalls

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

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

len(mockedNodeController.OnChangeCalls())

func (*NodeControllerMock) OnRemove

func (mock *NodeControllerMock) OnRemove(ctx context.Context, name string, sync v1.NodeHandler)

OnRemove calls OnRemoveFunc.

func (*NodeControllerMock) OnRemoveCalls

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

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

len(mockedNodeController.OnRemoveCalls())

func (*NodeControllerMock) Patch

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

Patch calls PatchFunc.

func (*NodeControllerMock) PatchCalls

func (mock *NodeControllerMock) 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(mockedNodeController.PatchCalls())

func (*NodeControllerMock) Update

func (mock *NodeControllerMock) Update(in1 *v1a.Node) (*v1a.Node, error)

Update calls UpdateFunc.

func (*NodeControllerMock) UpdateCalls

func (mock *NodeControllerMock) UpdateCalls() []struct {
	In1 *v1a.Node
}

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

len(mockedNodeController.UpdateCalls())

func (*NodeControllerMock) UpdateStatus

func (mock *NodeControllerMock) UpdateStatus(in1 *v1a.Node) (*v1a.Node, error)

UpdateStatus calls UpdateStatusFunc.

func (*NodeControllerMock) UpdateStatusCalls

func (mock *NodeControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Node
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedNodeController.UpdateStatusCalls())

func (*NodeControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*NodeControllerMock) UpdaterCalls

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

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

len(mockedNodeController.UpdaterCalls())

func (*NodeControllerMock) Watch

func (mock *NodeControllerMock) Watch(opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*NodeControllerMock) WatchCalls

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

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

len(mockedNodeController.WatchCalls())

type PersistentVolumeClaimCacheMock

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

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

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

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

PersistentVolumeClaimCacheMock is a mock implementation of PersistentVolumeClaimCache.

    func TestSomethingThatUsesPersistentVolumeClaimCache(t *testing.T) {

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

        // use mockedPersistentVolumeClaimCache in code that requires PersistentVolumeClaimCache
        // and then make assertions.

    }

func (*PersistentVolumeClaimCacheMock) AddIndexer

func (mock *PersistentVolumeClaimCacheMock) AddIndexer(indexName string, indexer v1.PersistentVolumeClaimIndexer)

AddIndexer calls AddIndexerFunc.

func (*PersistentVolumeClaimCacheMock) AddIndexerCalls

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

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

len(mockedPersistentVolumeClaimCache.AddIndexerCalls())

func (*PersistentVolumeClaimCacheMock) Get

Get calls GetFunc.

func (*PersistentVolumeClaimCacheMock) GetByIndex

func (mock *PersistentVolumeClaimCacheMock) GetByIndex(indexName string, key string) ([]*v1a.PersistentVolumeClaim, error)

GetByIndex calls GetByIndexFunc.

func (*PersistentVolumeClaimCacheMock) GetByIndexCalls

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

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

len(mockedPersistentVolumeClaimCache.GetByIndexCalls())

func (*PersistentVolumeClaimCacheMock) GetCalls

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

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

len(mockedPersistentVolumeClaimCache.GetCalls())

func (*PersistentVolumeClaimCacheMock) List

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

List calls ListFunc.

func (*PersistentVolumeClaimCacheMock) ListCalls

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

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

len(mockedPersistentVolumeClaimCache.ListCalls())

type PersistentVolumeClaimClientMock

type PersistentVolumeClaimClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, 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.PersistentVolumeClaim, error)

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, error)

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

PersistentVolumeClaimClientMock is a mock implementation of PersistentVolumeClaimClient.

    func TestSomethingThatUsesPersistentVolumeClaimClient(t *testing.T) {

        // make and configure a mocked PersistentVolumeClaimClient
        mockedPersistentVolumeClaimClient := &PersistentVolumeClaimClientMock{
            CreateFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, 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.PersistentVolumeClaim, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PersistentVolumeClaimList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedPersistentVolumeClaimClient in code that requires PersistentVolumeClaimClient
        // and then make assertions.

    }

func (*PersistentVolumeClaimClientMock) Create

Create calls CreateFunc.

func (*PersistentVolumeClaimClientMock) CreateCalls

func (mock *PersistentVolumeClaimClientMock) CreateCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

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

len(mockedPersistentVolumeClaimClient.CreateCalls())

func (*PersistentVolumeClaimClientMock) Delete

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

Delete calls DeleteFunc.

func (*PersistentVolumeClaimClientMock) DeleteCalls

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

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

len(mockedPersistentVolumeClaimClient.DeleteCalls())

func (*PersistentVolumeClaimClientMock) Get

Get calls GetFunc.

func (*PersistentVolumeClaimClientMock) GetCalls

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

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

len(mockedPersistentVolumeClaimClient.GetCalls())

func (*PersistentVolumeClaimClientMock) List

List calls ListFunc.

func (*PersistentVolumeClaimClientMock) ListCalls

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

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

len(mockedPersistentVolumeClaimClient.ListCalls())

func (*PersistentVolumeClaimClientMock) Patch

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

Patch calls PatchFunc.

func (*PersistentVolumeClaimClientMock) PatchCalls

func (mock *PersistentVolumeClaimClientMock) 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(mockedPersistentVolumeClaimClient.PatchCalls())

func (*PersistentVolumeClaimClientMock) Update

Update calls UpdateFunc.

func (*PersistentVolumeClaimClientMock) UpdateCalls

func (mock *PersistentVolumeClaimClientMock) UpdateCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

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

len(mockedPersistentVolumeClaimClient.UpdateCalls())

func (*PersistentVolumeClaimClientMock) UpdateStatus

UpdateStatus calls UpdateStatusFunc.

func (*PersistentVolumeClaimClientMock) UpdateStatusCalls

func (mock *PersistentVolumeClaimClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedPersistentVolumeClaimClient.UpdateStatusCalls())

func (*PersistentVolumeClaimClientMock) Watch

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

Watch calls WatchFunc.

func (*PersistentVolumeClaimClientMock) WatchCalls

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

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

len(mockedPersistentVolumeClaimClient.WatchCalls())

type PersistentVolumeClaimControllerMock

type PersistentVolumeClaimControllerMock 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.PersistentVolumeClaimCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, 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.PersistentVolumeClaim, 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.PersistentVolumeClaimList, error)

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

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, 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
}

PersistentVolumeClaimControllerMock is a mock implementation of PersistentVolumeClaimController.

    func TestSomethingThatUsesPersistentVolumeClaimController(t *testing.T) {

        // make and configure a mocked PersistentVolumeClaimController
        mockedPersistentVolumeClaimController := &PersistentVolumeClaimControllerMock{
            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.PersistentVolumeClaimCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, 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.PersistentVolumeClaim, 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.PersistentVolumeClaimList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.PersistentVolumeClaimHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.PersistentVolumeClaimHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.PersistentVolumeClaim) (*v1a.PersistentVolumeClaim, error) {
	               panic("mock out the UpdateStatus 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 mockedPersistentVolumeClaimController in code that requires PersistentVolumeClaimController
        // and then make assertions.

    }

func (*PersistentVolumeClaimControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*PersistentVolumeClaimControllerMock) AddGenericHandlerCalls

func (mock *PersistentVolumeClaimControllerMock) 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(mockedPersistentVolumeClaimController.AddGenericHandlerCalls())

func (*PersistentVolumeClaimControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*PersistentVolumeClaimControllerMock) AddGenericRemoveHandlerCalls

func (mock *PersistentVolumeClaimControllerMock) 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(mockedPersistentVolumeClaimController.AddGenericRemoveHandlerCalls())

func (*PersistentVolumeClaimControllerMock) Cache

Cache calls CacheFunc.

func (*PersistentVolumeClaimControllerMock) CacheCalls

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

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

len(mockedPersistentVolumeClaimController.CacheCalls())

func (*PersistentVolumeClaimControllerMock) Create

Create calls CreateFunc.

func (*PersistentVolumeClaimControllerMock) CreateCalls

func (mock *PersistentVolumeClaimControllerMock) CreateCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

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

len(mockedPersistentVolumeClaimController.CreateCalls())

func (*PersistentVolumeClaimControllerMock) Delete

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

Delete calls DeleteFunc.

func (*PersistentVolumeClaimControllerMock) DeleteCalls

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

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

len(mockedPersistentVolumeClaimController.DeleteCalls())

func (*PersistentVolumeClaimControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*PersistentVolumeClaimControllerMock) EnqueueCalls

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

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

len(mockedPersistentVolumeClaimController.EnqueueCalls())

func (*PersistentVolumeClaimControllerMock) Get

Get calls GetFunc.

func (*PersistentVolumeClaimControllerMock) GetCalls

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

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

len(mockedPersistentVolumeClaimController.GetCalls())

func (*PersistentVolumeClaimControllerMock) GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*PersistentVolumeClaimControllerMock) GroupVersionKindCalls

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

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

len(mockedPersistentVolumeClaimController.GroupVersionKindCalls())

func (*PersistentVolumeClaimControllerMock) Informer

Informer calls InformerFunc.

func (*PersistentVolumeClaimControllerMock) InformerCalls

func (mock *PersistentVolumeClaimControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedPersistentVolumeClaimController.InformerCalls())

func (*PersistentVolumeClaimControllerMock) List

List calls ListFunc.

func (*PersistentVolumeClaimControllerMock) ListCalls

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

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

len(mockedPersistentVolumeClaimController.ListCalls())

func (*PersistentVolumeClaimControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*PersistentVolumeClaimControllerMock) OnChangeCalls

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

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

len(mockedPersistentVolumeClaimController.OnChangeCalls())

func (*PersistentVolumeClaimControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*PersistentVolumeClaimControllerMock) OnRemoveCalls

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

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

len(mockedPersistentVolumeClaimController.OnRemoveCalls())

func (*PersistentVolumeClaimControllerMock) Patch

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

Patch calls PatchFunc.

func (*PersistentVolumeClaimControllerMock) PatchCalls

func (mock *PersistentVolumeClaimControllerMock) 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(mockedPersistentVolumeClaimController.PatchCalls())

func (*PersistentVolumeClaimControllerMock) Update

Update calls UpdateFunc.

func (*PersistentVolumeClaimControllerMock) UpdateCalls

func (mock *PersistentVolumeClaimControllerMock) UpdateCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

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

len(mockedPersistentVolumeClaimController.UpdateCalls())

func (*PersistentVolumeClaimControllerMock) UpdateStatus

UpdateStatus calls UpdateStatusFunc.

func (*PersistentVolumeClaimControllerMock) UpdateStatusCalls

func (mock *PersistentVolumeClaimControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.PersistentVolumeClaim
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedPersistentVolumeClaimController.UpdateStatusCalls())

func (*PersistentVolumeClaimControllerMock) Updater

Updater calls UpdaterFunc.

func (*PersistentVolumeClaimControllerMock) UpdaterCalls

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

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

len(mockedPersistentVolumeClaimController.UpdaterCalls())

func (*PersistentVolumeClaimControllerMock) Watch

Watch calls WatchFunc.

func (*PersistentVolumeClaimControllerMock) WatchCalls

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

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

len(mockedPersistentVolumeClaimController.WatchCalls())

type PodCacheMock

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

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

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

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

PodCacheMock is a mock implementation of PodCache.

    func TestSomethingThatUsesPodCache(t *testing.T) {

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

        // use mockedPodCache in code that requires PodCache
        // and then make assertions.

    }

func (*PodCacheMock) AddIndexer

func (mock *PodCacheMock) AddIndexer(indexName string, indexer v1.PodIndexer)

AddIndexer calls AddIndexerFunc.

func (*PodCacheMock) AddIndexerCalls

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

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

len(mockedPodCache.AddIndexerCalls())

func (*PodCacheMock) Get

func (mock *PodCacheMock) Get(namespace string, name string) (*v1a.Pod, error)

Get calls GetFunc.

func (*PodCacheMock) GetByIndex

func (mock *PodCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Pod, error)

GetByIndex calls GetByIndexFunc.

func (*PodCacheMock) GetByIndexCalls

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

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

len(mockedPodCache.GetByIndexCalls())

func (*PodCacheMock) GetCalls

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

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

len(mockedPodCache.GetCalls())

func (*PodCacheMock) List

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

List calls ListFunc.

func (*PodCacheMock) ListCalls

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

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

len(mockedPodCache.ListCalls())

type PodClientMock

type PodClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Pod) (*v1a.Pod, 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.Pod, error)

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Pod) (*v1a.Pod, error)

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

PodClientMock is a mock implementation of PodClient.

    func TestSomethingThatUsesPodClient(t *testing.T) {

        // make and configure a mocked PodClient
        mockedPodClient := &PodClientMock{
            CreateFunc: func(in1 *v1a.Pod) (*v1a.Pod, 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.Pod, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedPodClient in code that requires PodClient
        // and then make assertions.

    }

func (*PodClientMock) Create

func (mock *PodClientMock) Create(in1 *v1a.Pod) (*v1a.Pod, error)

Create calls CreateFunc.

func (*PodClientMock) CreateCalls

func (mock *PodClientMock) CreateCalls() []struct {
	In1 *v1a.Pod
}

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

len(mockedPodClient.CreateCalls())

func (*PodClientMock) Delete

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

Delete calls DeleteFunc.

func (*PodClientMock) DeleteCalls

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

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

len(mockedPodClient.DeleteCalls())

func (*PodClientMock) Get

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

Get calls GetFunc.

func (*PodClientMock) GetCalls

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

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

len(mockedPodClient.GetCalls())

func (*PodClientMock) List

func (mock *PodClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)

List calls ListFunc.

func (*PodClientMock) ListCalls

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

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

len(mockedPodClient.ListCalls())

func (*PodClientMock) Patch

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

Patch calls PatchFunc.

func (*PodClientMock) PatchCalls

func (mock *PodClientMock) 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(mockedPodClient.PatchCalls())

func (*PodClientMock) Update

func (mock *PodClientMock) Update(in1 *v1a.Pod) (*v1a.Pod, error)

Update calls UpdateFunc.

func (*PodClientMock) UpdateCalls

func (mock *PodClientMock) UpdateCalls() []struct {
	In1 *v1a.Pod
}

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

len(mockedPodClient.UpdateCalls())

func (*PodClientMock) UpdateStatus

func (mock *PodClientMock) UpdateStatus(in1 *v1a.Pod) (*v1a.Pod, error)

UpdateStatus calls UpdateStatusFunc.

func (*PodClientMock) UpdateStatusCalls

func (mock *PodClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Pod
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedPodClient.UpdateStatusCalls())

func (*PodClientMock) Watch

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

Watch calls WatchFunc.

func (*PodClientMock) WatchCalls

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

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

len(mockedPodClient.WatchCalls())

type PodControllerMock

type PodControllerMock 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.PodCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Pod) (*v1a.Pod, 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.Pod, 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.PodList, error)

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

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Pod) (*v1a.Pod, 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
}

PodControllerMock is a mock implementation of PodController.

    func TestSomethingThatUsesPodController(t *testing.T) {

        // make and configure a mocked PodController
        mockedPodController := &PodControllerMock{
            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.PodCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Pod) (*v1a.Pod, 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.Pod, 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.PodList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.PodHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.PodHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) {
	               panic("mock out the UpdateStatus 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 mockedPodController in code that requires PodController
        // and then make assertions.

    }

func (*PodControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*PodControllerMock) AddGenericHandlerCalls

func (mock *PodControllerMock) 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(mockedPodController.AddGenericHandlerCalls())

func (*PodControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*PodControllerMock) AddGenericRemoveHandlerCalls

func (mock *PodControllerMock) 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(mockedPodController.AddGenericRemoveHandlerCalls())

func (*PodControllerMock) Cache

func (mock *PodControllerMock) Cache() v1.PodCache

Cache calls CacheFunc.

func (*PodControllerMock) CacheCalls

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

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

len(mockedPodController.CacheCalls())

func (*PodControllerMock) Create

func (mock *PodControllerMock) Create(in1 *v1a.Pod) (*v1a.Pod, error)

Create calls CreateFunc.

func (*PodControllerMock) CreateCalls

func (mock *PodControllerMock) CreateCalls() []struct {
	In1 *v1a.Pod
}

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

len(mockedPodController.CreateCalls())

func (*PodControllerMock) Delete

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

Delete calls DeleteFunc.

func (*PodControllerMock) DeleteCalls

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

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

len(mockedPodController.DeleteCalls())

func (*PodControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*PodControllerMock) EnqueueCalls

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

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

len(mockedPodController.EnqueueCalls())

func (*PodControllerMock) Get

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

Get calls GetFunc.

func (*PodControllerMock) GetCalls

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

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

len(mockedPodController.GetCalls())

func (*PodControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*PodControllerMock) GroupVersionKindCalls

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

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

len(mockedPodController.GroupVersionKindCalls())

func (*PodControllerMock) Informer

func (mock *PodControllerMock) Informer() cache.SharedIndexInformer

Informer calls InformerFunc.

func (*PodControllerMock) InformerCalls

func (mock *PodControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedPodController.InformerCalls())

func (*PodControllerMock) List

func (mock *PodControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)

List calls ListFunc.

func (*PodControllerMock) ListCalls

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

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

len(mockedPodController.ListCalls())

func (*PodControllerMock) OnChange

func (mock *PodControllerMock) OnChange(ctx context.Context, name string, sync v1.PodHandler)

OnChange calls OnChangeFunc.

func (*PodControllerMock) OnChangeCalls

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

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

len(mockedPodController.OnChangeCalls())

func (*PodControllerMock) OnRemove

func (mock *PodControllerMock) OnRemove(ctx context.Context, name string, sync v1.PodHandler)

OnRemove calls OnRemoveFunc.

func (*PodControllerMock) OnRemoveCalls

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

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

len(mockedPodController.OnRemoveCalls())

func (*PodControllerMock) Patch

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

Patch calls PatchFunc.

func (*PodControllerMock) PatchCalls

func (mock *PodControllerMock) 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(mockedPodController.PatchCalls())

func (*PodControllerMock) Update

func (mock *PodControllerMock) Update(in1 *v1a.Pod) (*v1a.Pod, error)

Update calls UpdateFunc.

func (*PodControllerMock) UpdateCalls

func (mock *PodControllerMock) UpdateCalls() []struct {
	In1 *v1a.Pod
}

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

len(mockedPodController.UpdateCalls())

func (*PodControllerMock) UpdateStatus

func (mock *PodControllerMock) UpdateStatus(in1 *v1a.Pod) (*v1a.Pod, error)

UpdateStatus calls UpdateStatusFunc.

func (*PodControllerMock) UpdateStatusCalls

func (mock *PodControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Pod
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedPodController.UpdateStatusCalls())

func (*PodControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*PodControllerMock) UpdaterCalls

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

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

len(mockedPodController.UpdaterCalls())

func (*PodControllerMock) Watch

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

Watch calls WatchFunc.

func (*PodControllerMock) WatchCalls

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

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

len(mockedPodController.WatchCalls())

type SecretCacheMock

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

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

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

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

SecretCacheMock is a mock implementation of SecretCache.

    func TestSomethingThatUsesSecretCache(t *testing.T) {

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

        // use mockedSecretCache in code that requires SecretCache
        // and then make assertions.

    }

func (*SecretCacheMock) AddIndexer

func (mock *SecretCacheMock) AddIndexer(indexName string, indexer v1.SecretIndexer)

AddIndexer calls AddIndexerFunc.

func (*SecretCacheMock) AddIndexerCalls

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

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

len(mockedSecretCache.AddIndexerCalls())

func (*SecretCacheMock) Get

func (mock *SecretCacheMock) Get(namespace string, name string) (*v1a.Secret, error)

Get calls GetFunc.

func (*SecretCacheMock) GetByIndex

func (mock *SecretCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Secret, error)

GetByIndex calls GetByIndexFunc.

func (*SecretCacheMock) GetByIndexCalls

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

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

len(mockedSecretCache.GetByIndexCalls())

func (*SecretCacheMock) GetCalls

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

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

len(mockedSecretCache.GetCalls())

func (*SecretCacheMock) List

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

List calls ListFunc.

func (*SecretCacheMock) ListCalls

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

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

len(mockedSecretCache.ListCalls())

type SecretClientMock

type SecretClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, error)

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

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

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

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

SecretClientMock is a mock implementation of SecretClient.

    func TestSomethingThatUsesSecretClient(t *testing.T) {

        // make and configure a mocked SecretClient
        mockedSecretClient := &SecretClientMock{
            CreateFunc: func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Secret) (*v1a.Secret, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedSecretClient in code that requires SecretClient
        // and then make assertions.

    }

func (*SecretClientMock) Create

func (mock *SecretClientMock) Create(in1 *v1a.Secret) (*v1a.Secret, error)

Create calls CreateFunc.

func (*SecretClientMock) CreateCalls

func (mock *SecretClientMock) CreateCalls() []struct {
	In1 *v1a.Secret
}

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

len(mockedSecretClient.CreateCalls())

func (*SecretClientMock) Delete

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

Delete calls DeleteFunc.

func (*SecretClientMock) DeleteCalls

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

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

len(mockedSecretClient.DeleteCalls())

func (*SecretClientMock) Get

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

Get calls GetFunc.

func (*SecretClientMock) GetCalls

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

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

len(mockedSecretClient.GetCalls())

func (*SecretClientMock) List

func (mock *SecretClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)

List calls ListFunc.

func (*SecretClientMock) ListCalls

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

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

len(mockedSecretClient.ListCalls())

func (*SecretClientMock) Patch

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

Patch calls PatchFunc.

func (*SecretClientMock) PatchCalls

func (mock *SecretClientMock) 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(mockedSecretClient.PatchCalls())

func (*SecretClientMock) Update

func (mock *SecretClientMock) Update(in1 *v1a.Secret) (*v1a.Secret, error)

Update calls UpdateFunc.

func (*SecretClientMock) UpdateCalls

func (mock *SecretClientMock) UpdateCalls() []struct {
	In1 *v1a.Secret
}

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

len(mockedSecretClient.UpdateCalls())

func (*SecretClientMock) Watch

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

Watch calls WatchFunc.

func (*SecretClientMock) WatchCalls

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

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

len(mockedSecretClient.WatchCalls())

type SecretControllerMock

type SecretControllerMock 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.SecretCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, 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.SecretList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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
}

SecretControllerMock is a mock implementation of SecretController.

    func TestSomethingThatUsesSecretController(t *testing.T) {

        // make and configure a mocked SecretController
        mockedSecretController := &SecretControllerMock{
            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.SecretCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, 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.SecretList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.SecretHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.SecretHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Secret) (*v1a.Secret, 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 mockedSecretController in code that requires SecretController
        // and then make assertions.

    }

func (*SecretControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*SecretControllerMock) AddGenericHandlerCalls

func (mock *SecretControllerMock) 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(mockedSecretController.AddGenericHandlerCalls())

func (*SecretControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*SecretControllerMock) AddGenericRemoveHandlerCalls

func (mock *SecretControllerMock) 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(mockedSecretController.AddGenericRemoveHandlerCalls())

func (*SecretControllerMock) Cache

func (mock *SecretControllerMock) Cache() v1.SecretCache

Cache calls CacheFunc.

func (*SecretControllerMock) CacheCalls

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

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

len(mockedSecretController.CacheCalls())

func (*SecretControllerMock) Create

func (mock *SecretControllerMock) Create(in1 *v1a.Secret) (*v1a.Secret, error)

Create calls CreateFunc.

func (*SecretControllerMock) CreateCalls

func (mock *SecretControllerMock) CreateCalls() []struct {
	In1 *v1a.Secret
}

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

len(mockedSecretController.CreateCalls())

func (*SecretControllerMock) Delete

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

Delete calls DeleteFunc.

func (*SecretControllerMock) DeleteCalls

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

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

len(mockedSecretController.DeleteCalls())

func (*SecretControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*SecretControllerMock) EnqueueCalls

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

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

len(mockedSecretController.EnqueueCalls())

func (*SecretControllerMock) Get

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

Get calls GetFunc.

func (*SecretControllerMock) GetCalls

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

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

len(mockedSecretController.GetCalls())

func (*SecretControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*SecretControllerMock) GroupVersionKindCalls

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

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

len(mockedSecretController.GroupVersionKindCalls())

func (*SecretControllerMock) Informer

Informer calls InformerFunc.

func (*SecretControllerMock) InformerCalls

func (mock *SecretControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedSecretController.InformerCalls())

func (*SecretControllerMock) List

func (mock *SecretControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)

List calls ListFunc.

func (*SecretControllerMock) ListCalls

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

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

len(mockedSecretController.ListCalls())

func (*SecretControllerMock) OnChange

func (mock *SecretControllerMock) OnChange(ctx context.Context, name string, sync v1.SecretHandler)

OnChange calls OnChangeFunc.

func (*SecretControllerMock) OnChangeCalls

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

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

len(mockedSecretController.OnChangeCalls())

func (*SecretControllerMock) OnRemove

func (mock *SecretControllerMock) OnRemove(ctx context.Context, name string, sync v1.SecretHandler)

OnRemove calls OnRemoveFunc.

func (*SecretControllerMock) OnRemoveCalls

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

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

len(mockedSecretController.OnRemoveCalls())

func (*SecretControllerMock) Patch

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

Patch calls PatchFunc.

func (*SecretControllerMock) PatchCalls

func (mock *SecretControllerMock) 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(mockedSecretController.PatchCalls())

func (*SecretControllerMock) Update

func (mock *SecretControllerMock) Update(in1 *v1a.Secret) (*v1a.Secret, error)

Update calls UpdateFunc.

func (*SecretControllerMock) UpdateCalls

func (mock *SecretControllerMock) UpdateCalls() []struct {
	In1 *v1a.Secret
}

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

len(mockedSecretController.UpdateCalls())

func (*SecretControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*SecretControllerMock) UpdaterCalls

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

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

len(mockedSecretController.UpdaterCalls())

func (*SecretControllerMock) Watch

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

Watch calls WatchFunc.

func (*SecretControllerMock) WatchCalls

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

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

len(mockedSecretController.WatchCalls())

type ServiceAccountCacheMock

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

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

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

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

ServiceAccountCacheMock is a mock implementation of ServiceAccountCache.

    func TestSomethingThatUsesServiceAccountCache(t *testing.T) {

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

        // use mockedServiceAccountCache in code that requires ServiceAccountCache
        // and then make assertions.

    }

func (*ServiceAccountCacheMock) AddIndexer

func (mock *ServiceAccountCacheMock) AddIndexer(indexName string, indexer v1.ServiceAccountIndexer)

AddIndexer calls AddIndexerFunc.

func (*ServiceAccountCacheMock) AddIndexerCalls

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

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

len(mockedServiceAccountCache.AddIndexerCalls())

func (*ServiceAccountCacheMock) Get

func (mock *ServiceAccountCacheMock) Get(namespace string, name string) (*v1a.ServiceAccount, error)

Get calls GetFunc.

func (*ServiceAccountCacheMock) GetByIndex

func (mock *ServiceAccountCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ServiceAccount, error)

GetByIndex calls GetByIndexFunc.

func (*ServiceAccountCacheMock) GetByIndexCalls

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

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

len(mockedServiceAccountCache.GetByIndexCalls())

func (*ServiceAccountCacheMock) GetCalls

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

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

len(mockedServiceAccountCache.GetCalls())

func (*ServiceAccountCacheMock) List

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

List calls ListFunc.

func (*ServiceAccountCacheMock) ListCalls

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

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

len(mockedServiceAccountCache.ListCalls())

type ServiceAccountClientMock

type ServiceAccountClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, error)

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

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

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

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

ServiceAccountClientMock is a mock implementation of ServiceAccountClient.

    func TestSomethingThatUsesServiceAccountClient(t *testing.T) {

        // make and configure a mocked ServiceAccountClient
        mockedServiceAccountClient := &ServiceAccountClientMock{
            CreateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedServiceAccountClient in code that requires ServiceAccountClient
        // and then make assertions.

    }

func (*ServiceAccountClientMock) Create

Create calls CreateFunc.

func (*ServiceAccountClientMock) CreateCalls

func (mock *ServiceAccountClientMock) CreateCalls() []struct {
	In1 *v1a.ServiceAccount
}

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

len(mockedServiceAccountClient.CreateCalls())

func (*ServiceAccountClientMock) Delete

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

Delete calls DeleteFunc.

func (*ServiceAccountClientMock) DeleteCalls

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

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

len(mockedServiceAccountClient.DeleteCalls())

func (*ServiceAccountClientMock) Get

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

Get calls GetFunc.

func (*ServiceAccountClientMock) GetCalls

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

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

len(mockedServiceAccountClient.GetCalls())

func (*ServiceAccountClientMock) List

func (mock *ServiceAccountClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)

List calls ListFunc.

func (*ServiceAccountClientMock) ListCalls

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

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

len(mockedServiceAccountClient.ListCalls())

func (*ServiceAccountClientMock) Patch

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

Patch calls PatchFunc.

func (*ServiceAccountClientMock) PatchCalls

func (mock *ServiceAccountClientMock) 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(mockedServiceAccountClient.PatchCalls())

func (*ServiceAccountClientMock) Update

Update calls UpdateFunc.

func (*ServiceAccountClientMock) UpdateCalls

func (mock *ServiceAccountClientMock) UpdateCalls() []struct {
	In1 *v1a.ServiceAccount
}

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

len(mockedServiceAccountClient.UpdateCalls())

func (*ServiceAccountClientMock) Watch

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

Watch calls WatchFunc.

func (*ServiceAccountClientMock) WatchCalls

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

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

len(mockedServiceAccountClient.WatchCalls())

type ServiceAccountControllerMock

type ServiceAccountControllerMock 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.ServiceAccountCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, 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.ServiceAccountList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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
}

ServiceAccountControllerMock is a mock implementation of ServiceAccountController.

    func TestSomethingThatUsesServiceAccountController(t *testing.T) {

        // make and configure a mocked ServiceAccountController
        mockedServiceAccountController := &ServiceAccountControllerMock{
            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.ServiceAccountCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, 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.ServiceAccountList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ServiceAccountHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ServiceAccountHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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 mockedServiceAccountController in code that requires ServiceAccountController
        // and then make assertions.

    }

func (*ServiceAccountControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ServiceAccountControllerMock) AddGenericHandlerCalls

func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.AddGenericHandlerCalls())

func (*ServiceAccountControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ServiceAccountControllerMock) AddGenericRemoveHandlerCalls

func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.AddGenericRemoveHandlerCalls())

func (*ServiceAccountControllerMock) Cache

Cache calls CacheFunc.

func (*ServiceAccountControllerMock) CacheCalls

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

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

len(mockedServiceAccountController.CacheCalls())

func (*ServiceAccountControllerMock) Create

Create calls CreateFunc.

func (*ServiceAccountControllerMock) CreateCalls

func (mock *ServiceAccountControllerMock) CreateCalls() []struct {
	In1 *v1a.ServiceAccount
}

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

len(mockedServiceAccountController.CreateCalls())

func (*ServiceAccountControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ServiceAccountControllerMock) DeleteCalls

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

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

len(mockedServiceAccountController.DeleteCalls())

func (*ServiceAccountControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ServiceAccountControllerMock) EnqueueCalls

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

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

len(mockedServiceAccountController.EnqueueCalls())

func (*ServiceAccountControllerMock) Get

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

Get calls GetFunc.

func (*ServiceAccountControllerMock) GetCalls

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

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

len(mockedServiceAccountController.GetCalls())

func (*ServiceAccountControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ServiceAccountControllerMock) GroupVersionKindCalls

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

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

len(mockedServiceAccountController.GroupVersionKindCalls())

func (*ServiceAccountControllerMock) Informer

Informer calls InformerFunc.

func (*ServiceAccountControllerMock) InformerCalls

func (mock *ServiceAccountControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedServiceAccountController.InformerCalls())

func (*ServiceAccountControllerMock) List

List calls ListFunc.

func (*ServiceAccountControllerMock) ListCalls

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

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

len(mockedServiceAccountController.ListCalls())

func (*ServiceAccountControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*ServiceAccountControllerMock) OnChangeCalls

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

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

len(mockedServiceAccountController.OnChangeCalls())

func (*ServiceAccountControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*ServiceAccountControllerMock) OnRemoveCalls

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

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

len(mockedServiceAccountController.OnRemoveCalls())

func (*ServiceAccountControllerMock) Patch

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

Patch calls PatchFunc.

func (*ServiceAccountControllerMock) PatchCalls

func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.PatchCalls())

func (*ServiceAccountControllerMock) Update

Update calls UpdateFunc.

func (*ServiceAccountControllerMock) UpdateCalls

func (mock *ServiceAccountControllerMock) UpdateCalls() []struct {
	In1 *v1a.ServiceAccount
}

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

len(mockedServiceAccountController.UpdateCalls())

func (*ServiceAccountControllerMock) Updater

Updater calls UpdaterFunc.

func (*ServiceAccountControllerMock) UpdaterCalls

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

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

len(mockedServiceAccountController.UpdaterCalls())

func (*ServiceAccountControllerMock) Watch

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

Watch calls WatchFunc.

func (*ServiceAccountControllerMock) WatchCalls

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

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

len(mockedServiceAccountController.WatchCalls())

type ServiceCacheMock

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

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

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

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

ServiceCacheMock is a mock implementation of ServiceCache.

    func TestSomethingThatUsesServiceCache(t *testing.T) {

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

        // use mockedServiceCache in code that requires ServiceCache
        // and then make assertions.

    }

func (*ServiceCacheMock) AddIndexer

func (mock *ServiceCacheMock) AddIndexer(indexName string, indexer v1.ServiceIndexer)

AddIndexer calls AddIndexerFunc.

func (*ServiceCacheMock) AddIndexerCalls

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

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

len(mockedServiceCache.AddIndexerCalls())

func (*ServiceCacheMock) Get

func (mock *ServiceCacheMock) Get(namespace string, name string) (*v1a.Service, error)

Get calls GetFunc.

func (*ServiceCacheMock) GetByIndex

func (mock *ServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Service, error)

GetByIndex calls GetByIndexFunc.

func (*ServiceCacheMock) GetByIndexCalls

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

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

len(mockedServiceCache.GetByIndexCalls())

func (*ServiceCacheMock) GetCalls

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

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

len(mockedServiceCache.GetCalls())

func (*ServiceCacheMock) List

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

List calls ListFunc.

func (*ServiceCacheMock) ListCalls

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

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

len(mockedServiceCache.ListCalls())

type ServiceClientMock

type ServiceClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Service) (*v1a.Service, 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.Service, error)

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Service) (*v1a.Service, error)

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

ServiceClientMock is a mock implementation of ServiceClient.

    func TestSomethingThatUsesServiceClient(t *testing.T) {

        // make and configure a mocked ServiceClient
        mockedServiceClient := &ServiceClientMock{
            CreateFunc: func(in1 *v1a.Service) (*v1a.Service, 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.Service, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedServiceClient in code that requires ServiceClient
        // and then make assertions.

    }

func (*ServiceClientMock) Create

func (mock *ServiceClientMock) Create(in1 *v1a.Service) (*v1a.Service, error)

Create calls CreateFunc.

func (*ServiceClientMock) CreateCalls

func (mock *ServiceClientMock) CreateCalls() []struct {
	In1 *v1a.Service
}

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

len(mockedServiceClient.CreateCalls())

func (*ServiceClientMock) Delete

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

Delete calls DeleteFunc.

func (*ServiceClientMock) DeleteCalls

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

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

len(mockedServiceClient.DeleteCalls())

func (*ServiceClientMock) Get

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

Get calls GetFunc.

func (*ServiceClientMock) GetCalls

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

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

len(mockedServiceClient.GetCalls())

func (*ServiceClientMock) List

func (mock *ServiceClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)

List calls ListFunc.

func (*ServiceClientMock) ListCalls

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

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

len(mockedServiceClient.ListCalls())

func (*ServiceClientMock) Patch

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

Patch calls PatchFunc.

func (*ServiceClientMock) PatchCalls

func (mock *ServiceClientMock) 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(mockedServiceClient.PatchCalls())

func (*ServiceClientMock) Update

func (mock *ServiceClientMock) Update(in1 *v1a.Service) (*v1a.Service, error)

Update calls UpdateFunc.

func (*ServiceClientMock) UpdateCalls

func (mock *ServiceClientMock) UpdateCalls() []struct {
	In1 *v1a.Service
}

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

len(mockedServiceClient.UpdateCalls())

func (*ServiceClientMock) UpdateStatus

func (mock *ServiceClientMock) UpdateStatus(in1 *v1a.Service) (*v1a.Service, error)

UpdateStatus calls UpdateStatusFunc.

func (*ServiceClientMock) UpdateStatusCalls

func (mock *ServiceClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Service
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedServiceClient.UpdateStatusCalls())

func (*ServiceClientMock) Watch

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

Watch calls WatchFunc.

func (*ServiceClientMock) WatchCalls

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

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

len(mockedServiceClient.WatchCalls())

type ServiceControllerMock

type ServiceControllerMock 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.ServiceCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Service) (*v1a.Service, 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.Service, 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.ServiceList, error)

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

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

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

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

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Service) (*v1a.Service, 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
}

ServiceControllerMock is a mock implementation of ServiceController.

    func TestSomethingThatUsesServiceController(t *testing.T) {

        // make and configure a mocked ServiceController
        mockedServiceController := &ServiceControllerMock{
            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.ServiceCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Service) (*v1a.Service, 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.Service, 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.ServiceList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ServiceHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ServiceHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
	               panic("mock out the UpdateStatus 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 mockedServiceController in code that requires ServiceController
        // and then make assertions.

    }

func (*ServiceControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ServiceControllerMock) AddGenericHandlerCalls

func (mock *ServiceControllerMock) 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(mockedServiceController.AddGenericHandlerCalls())

func (*ServiceControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ServiceControllerMock) AddGenericRemoveHandlerCalls

func (mock *ServiceControllerMock) 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(mockedServiceController.AddGenericRemoveHandlerCalls())

func (*ServiceControllerMock) Cache

func (mock *ServiceControllerMock) Cache() v1.ServiceCache

Cache calls CacheFunc.

func (*ServiceControllerMock) CacheCalls

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

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

len(mockedServiceController.CacheCalls())

func (*ServiceControllerMock) Create

func (mock *ServiceControllerMock) Create(in1 *v1a.Service) (*v1a.Service, error)

Create calls CreateFunc.

func (*ServiceControllerMock) CreateCalls

func (mock *ServiceControllerMock) CreateCalls() []struct {
	In1 *v1a.Service
}

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

len(mockedServiceController.CreateCalls())

func (*ServiceControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ServiceControllerMock) DeleteCalls

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

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

len(mockedServiceController.DeleteCalls())

func (*ServiceControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ServiceControllerMock) EnqueueCalls

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

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

len(mockedServiceController.EnqueueCalls())

func (*ServiceControllerMock) Get

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

Get calls GetFunc.

func (*ServiceControllerMock) GetCalls

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

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

len(mockedServiceController.GetCalls())

func (*ServiceControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ServiceControllerMock) GroupVersionKindCalls

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

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

len(mockedServiceController.GroupVersionKindCalls())

func (*ServiceControllerMock) Informer

Informer calls InformerFunc.

func (*ServiceControllerMock) InformerCalls

func (mock *ServiceControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedServiceController.InformerCalls())

func (*ServiceControllerMock) List

func (mock *ServiceControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)

List calls ListFunc.

func (*ServiceControllerMock) ListCalls

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

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

len(mockedServiceController.ListCalls())

func (*ServiceControllerMock) OnChange

func (mock *ServiceControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceHandler)

OnChange calls OnChangeFunc.

func (*ServiceControllerMock) OnChangeCalls

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

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

len(mockedServiceController.OnChangeCalls())

func (*ServiceControllerMock) OnRemove

func (mock *ServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceHandler)

OnRemove calls OnRemoveFunc.

func (*ServiceControllerMock) OnRemoveCalls

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

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

len(mockedServiceController.OnRemoveCalls())

func (*ServiceControllerMock) Patch

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

Patch calls PatchFunc.

func (*ServiceControllerMock) PatchCalls

func (mock *ServiceControllerMock) 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(mockedServiceController.PatchCalls())

func (*ServiceControllerMock) Update

func (mock *ServiceControllerMock) Update(in1 *v1a.Service) (*v1a.Service, error)

Update calls UpdateFunc.

func (*ServiceControllerMock) UpdateCalls

func (mock *ServiceControllerMock) UpdateCalls() []struct {
	In1 *v1a.Service
}

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

len(mockedServiceController.UpdateCalls())

func (*ServiceControllerMock) UpdateStatus

func (mock *ServiceControllerMock) UpdateStatus(in1 *v1a.Service) (*v1a.Service, error)

UpdateStatus calls UpdateStatusFunc.

func (*ServiceControllerMock) UpdateStatusCalls

func (mock *ServiceControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Service
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedServiceController.UpdateStatusCalls())

func (*ServiceControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*ServiceControllerMock) UpdaterCalls

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

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

len(mockedServiceController.UpdaterCalls())

func (*ServiceControllerMock) Watch

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

Watch calls WatchFunc.

func (*ServiceControllerMock) WatchCalls

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

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

len(mockedServiceController.WatchCalls())

Jump to

Keyboard shortcuts

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