fakes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDomainCacheMock

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

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

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

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

ClusterDomainCacheMock is a mock implementation of ClusterDomainCache.

    func TestSomethingThatUsesClusterDomainCache(t *testing.T) {

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

        // use mockedClusterDomainCache in code that requires ClusterDomainCache
        // and then make assertions.

    }

func (*ClusterDomainCacheMock) AddIndexer

func (mock *ClusterDomainCacheMock) AddIndexer(indexName string, indexer v1.ClusterDomainIndexer)

AddIndexer calls AddIndexerFunc.

func (*ClusterDomainCacheMock) AddIndexerCalls

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

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

len(mockedClusterDomainCache.AddIndexerCalls())

func (*ClusterDomainCacheMock) Get

func (mock *ClusterDomainCacheMock) Get(namespace string, name string) (*v1a.ClusterDomain, error)

Get calls GetFunc.

func (*ClusterDomainCacheMock) GetByIndex

func (mock *ClusterDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ClusterDomain, error)

GetByIndex calls GetByIndexFunc.

func (*ClusterDomainCacheMock) GetByIndexCalls

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

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

len(mockedClusterDomainCache.GetByIndexCalls())

func (*ClusterDomainCacheMock) GetCalls

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

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

len(mockedClusterDomainCache.GetCalls())

func (*ClusterDomainCacheMock) List

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

List calls ListFunc.

func (*ClusterDomainCacheMock) ListCalls

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

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

len(mockedClusterDomainCache.ListCalls())

type ClusterDomainClientMock

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

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

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

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

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

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

ClusterDomainClientMock is a mock implementation of ClusterDomainClient.

    func TestSomethingThatUsesClusterDomainClient(t *testing.T) {

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

        // use mockedClusterDomainClient in code that requires ClusterDomainClient
        // and then make assertions.

    }

func (*ClusterDomainClientMock) Create

Create calls CreateFunc.

func (*ClusterDomainClientMock) CreateCalls

func (mock *ClusterDomainClientMock) CreateCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainClient.CreateCalls())

func (*ClusterDomainClientMock) Delete

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

Delete calls DeleteFunc.

func (*ClusterDomainClientMock) DeleteCalls

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

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

len(mockedClusterDomainClient.DeleteCalls())

func (*ClusterDomainClientMock) Get

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

Get calls GetFunc.

func (*ClusterDomainClientMock) GetCalls

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

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

len(mockedClusterDomainClient.GetCalls())

func (*ClusterDomainClientMock) List

func (mock *ClusterDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error)

List calls ListFunc.

func (*ClusterDomainClientMock) ListCalls

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

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

len(mockedClusterDomainClient.ListCalls())

func (*ClusterDomainClientMock) Patch

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

Patch calls PatchFunc.

func (*ClusterDomainClientMock) PatchCalls

func (mock *ClusterDomainClientMock) 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(mockedClusterDomainClient.PatchCalls())

func (*ClusterDomainClientMock) Update

Update calls UpdateFunc.

func (*ClusterDomainClientMock) UpdateCalls

func (mock *ClusterDomainClientMock) UpdateCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainClient.UpdateCalls())

func (*ClusterDomainClientMock) UpdateStatus

func (mock *ClusterDomainClientMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)

UpdateStatus calls UpdateStatusFunc.

func (*ClusterDomainClientMock) UpdateStatusCalls

func (mock *ClusterDomainClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainClient.UpdateStatusCalls())

func (*ClusterDomainClientMock) Watch

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

Watch calls WatchFunc.

func (*ClusterDomainClientMock) WatchCalls

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

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

len(mockedClusterDomainClient.WatchCalls())

type ClusterDomainControllerMock

type ClusterDomainControllerMock 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.ClusterDomainCache

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

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

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

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

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

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

ClusterDomainControllerMock is a mock implementation of ClusterDomainController.

    func TestSomethingThatUsesClusterDomainController(t *testing.T) {

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

    }

func (*ClusterDomainControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ClusterDomainControllerMock) AddGenericHandlerCalls

func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.AddGenericHandlerCalls())

func (*ClusterDomainControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ClusterDomainControllerMock) AddGenericRemoveHandlerCalls

func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.AddGenericRemoveHandlerCalls())

func (*ClusterDomainControllerMock) Cache

Cache calls CacheFunc.

func (*ClusterDomainControllerMock) CacheCalls

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

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

len(mockedClusterDomainController.CacheCalls())

func (*ClusterDomainControllerMock) Create

Create calls CreateFunc.

func (*ClusterDomainControllerMock) CreateCalls

func (mock *ClusterDomainControllerMock) CreateCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainController.CreateCalls())

func (*ClusterDomainControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ClusterDomainControllerMock) DeleteCalls

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

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

len(mockedClusterDomainController.DeleteCalls())

func (*ClusterDomainControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ClusterDomainControllerMock) EnqueueCalls

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

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

len(mockedClusterDomainController.EnqueueCalls())

func (*ClusterDomainControllerMock) Get

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

Get calls GetFunc.

func (*ClusterDomainControllerMock) GetCalls

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

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

len(mockedClusterDomainController.GetCalls())

func (*ClusterDomainControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ClusterDomainControllerMock) GroupVersionKindCalls

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

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

len(mockedClusterDomainController.GroupVersionKindCalls())

func (*ClusterDomainControllerMock) Informer

Informer calls InformerFunc.

func (*ClusterDomainControllerMock) InformerCalls

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

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

len(mockedClusterDomainController.InformerCalls())

func (*ClusterDomainControllerMock) List

List calls ListFunc.

func (*ClusterDomainControllerMock) ListCalls

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

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

len(mockedClusterDomainController.ListCalls())

func (*ClusterDomainControllerMock) OnChange

func (mock *ClusterDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.ClusterDomainHandler)

OnChange calls OnChangeFunc.

func (*ClusterDomainControllerMock) OnChangeCalls

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

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

len(mockedClusterDomainController.OnChangeCalls())

func (*ClusterDomainControllerMock) OnRemove

func (mock *ClusterDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.ClusterDomainHandler)

OnRemove calls OnRemoveFunc.

func (*ClusterDomainControllerMock) OnRemoveCalls

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

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

len(mockedClusterDomainController.OnRemoveCalls())

func (*ClusterDomainControllerMock) Patch

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

Patch calls PatchFunc.

func (*ClusterDomainControllerMock) PatchCalls

func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.PatchCalls())

func (*ClusterDomainControllerMock) Update

Update calls UpdateFunc.

func (*ClusterDomainControllerMock) UpdateCalls

func (mock *ClusterDomainControllerMock) UpdateCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainController.UpdateCalls())

func (*ClusterDomainControllerMock) UpdateStatus

func (mock *ClusterDomainControllerMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)

UpdateStatus calls UpdateStatusFunc.

func (*ClusterDomainControllerMock) UpdateStatusCalls

func (mock *ClusterDomainControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.ClusterDomain
}

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

len(mockedClusterDomainController.UpdateStatusCalls())

func (*ClusterDomainControllerMock) Updater

Updater calls UpdaterFunc.

func (*ClusterDomainControllerMock) UpdaterCalls

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

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

len(mockedClusterDomainController.UpdaterCalls())

func (*ClusterDomainControllerMock) Watch

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

Watch calls WatchFunc.

func (*ClusterDomainControllerMock) WatchCalls

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

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

len(mockedClusterDomainController.WatchCalls())

type FeatureCacheMock

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

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

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

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

FeatureCacheMock is a mock implementation of FeatureCache.

    func TestSomethingThatUsesFeatureCache(t *testing.T) {

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

        // use mockedFeatureCache in code that requires FeatureCache
        // and then make assertions.

    }

func (*FeatureCacheMock) AddIndexer

func (mock *FeatureCacheMock) AddIndexer(indexName string, indexer v1.FeatureIndexer)

AddIndexer calls AddIndexerFunc.

func (*FeatureCacheMock) AddIndexerCalls

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

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

len(mockedFeatureCache.AddIndexerCalls())

func (*FeatureCacheMock) Get

func (mock *FeatureCacheMock) Get(namespace string, name string) (*v1a.Feature, error)

Get calls GetFunc.

func (*FeatureCacheMock) GetByIndex

func (mock *FeatureCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Feature, error)

GetByIndex calls GetByIndexFunc.

func (*FeatureCacheMock) GetByIndexCalls

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

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

len(mockedFeatureCache.GetByIndexCalls())

func (*FeatureCacheMock) GetCalls

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

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

len(mockedFeatureCache.GetCalls())

func (*FeatureCacheMock) List

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

List calls ListFunc.

func (*FeatureCacheMock) ListCalls

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

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

len(mockedFeatureCache.ListCalls())

type FeatureClientMock

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

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

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

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

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

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

FeatureClientMock is a mock implementation of FeatureClient.

    func TestSomethingThatUsesFeatureClient(t *testing.T) {

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

        // use mockedFeatureClient in code that requires FeatureClient
        // and then make assertions.

    }

func (*FeatureClientMock) Create

func (mock *FeatureClientMock) Create(in1 *v1a.Feature) (*v1a.Feature, error)

Create calls CreateFunc.

func (*FeatureClientMock) CreateCalls

func (mock *FeatureClientMock) CreateCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureClient.CreateCalls())

func (*FeatureClientMock) Delete

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

Delete calls DeleteFunc.

func (*FeatureClientMock) DeleteCalls

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

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

len(mockedFeatureClient.DeleteCalls())

func (*FeatureClientMock) Get

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

Get calls GetFunc.

func (*FeatureClientMock) GetCalls

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

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

len(mockedFeatureClient.GetCalls())

func (*FeatureClientMock) List

func (mock *FeatureClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)

List calls ListFunc.

func (*FeatureClientMock) ListCalls

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

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

len(mockedFeatureClient.ListCalls())

func (*FeatureClientMock) Patch

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

Patch calls PatchFunc.

func (*FeatureClientMock) PatchCalls

func (mock *FeatureClientMock) 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(mockedFeatureClient.PatchCalls())

func (*FeatureClientMock) Update

func (mock *FeatureClientMock) Update(in1 *v1a.Feature) (*v1a.Feature, error)

Update calls UpdateFunc.

func (*FeatureClientMock) UpdateCalls

func (mock *FeatureClientMock) UpdateCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureClient.UpdateCalls())

func (*FeatureClientMock) UpdateStatus

func (mock *FeatureClientMock) UpdateStatus(in1 *v1a.Feature) (*v1a.Feature, error)

UpdateStatus calls UpdateStatusFunc.

func (*FeatureClientMock) UpdateStatusCalls

func (mock *FeatureClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureClient.UpdateStatusCalls())

func (*FeatureClientMock) Watch

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

Watch calls WatchFunc.

func (*FeatureClientMock) WatchCalls

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

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

len(mockedFeatureClient.WatchCalls())

type FeatureControllerMock

type FeatureControllerMock 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.FeatureCache

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

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

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

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

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

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

FeatureControllerMock is a mock implementation of FeatureController.

    func TestSomethingThatUsesFeatureController(t *testing.T) {

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

    }

func (*FeatureControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*FeatureControllerMock) AddGenericHandlerCalls

func (mock *FeatureControllerMock) 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(mockedFeatureController.AddGenericHandlerCalls())

func (*FeatureControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*FeatureControllerMock) AddGenericRemoveHandlerCalls

func (mock *FeatureControllerMock) 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(mockedFeatureController.AddGenericRemoveHandlerCalls())

func (*FeatureControllerMock) Cache

func (mock *FeatureControllerMock) Cache() v1.FeatureCache

Cache calls CacheFunc.

func (*FeatureControllerMock) CacheCalls

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

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

len(mockedFeatureController.CacheCalls())

func (*FeatureControllerMock) Create

func (mock *FeatureControllerMock) Create(in1 *v1a.Feature) (*v1a.Feature, error)

Create calls CreateFunc.

func (*FeatureControllerMock) CreateCalls

func (mock *FeatureControllerMock) CreateCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureController.CreateCalls())

func (*FeatureControllerMock) Delete

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

Delete calls DeleteFunc.

func (*FeatureControllerMock) DeleteCalls

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

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

len(mockedFeatureController.DeleteCalls())

func (*FeatureControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*FeatureControllerMock) EnqueueCalls

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

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

len(mockedFeatureController.EnqueueCalls())

func (*FeatureControllerMock) Get

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

Get calls GetFunc.

func (*FeatureControllerMock) GetCalls

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

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

len(mockedFeatureController.GetCalls())

func (*FeatureControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*FeatureControllerMock) GroupVersionKindCalls

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

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

len(mockedFeatureController.GroupVersionKindCalls())

func (*FeatureControllerMock) Informer

Informer calls InformerFunc.

func (*FeatureControllerMock) InformerCalls

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

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

len(mockedFeatureController.InformerCalls())

func (*FeatureControllerMock) List

func (mock *FeatureControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)

List calls ListFunc.

func (*FeatureControllerMock) ListCalls

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

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

len(mockedFeatureController.ListCalls())

func (*FeatureControllerMock) OnChange

func (mock *FeatureControllerMock) OnChange(ctx context.Context, name string, sync v1.FeatureHandler)

OnChange calls OnChangeFunc.

func (*FeatureControllerMock) OnChangeCalls

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

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

len(mockedFeatureController.OnChangeCalls())

func (*FeatureControllerMock) OnRemove

func (mock *FeatureControllerMock) OnRemove(ctx context.Context, name string, sync v1.FeatureHandler)

OnRemove calls OnRemoveFunc.

func (*FeatureControllerMock) OnRemoveCalls

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

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

len(mockedFeatureController.OnRemoveCalls())

func (*FeatureControllerMock) Patch

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

Patch calls PatchFunc.

func (*FeatureControllerMock) PatchCalls

func (mock *FeatureControllerMock) 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(mockedFeatureController.PatchCalls())

func (*FeatureControllerMock) Update

func (mock *FeatureControllerMock) Update(in1 *v1a.Feature) (*v1a.Feature, error)

Update calls UpdateFunc.

func (*FeatureControllerMock) UpdateCalls

func (mock *FeatureControllerMock) UpdateCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureController.UpdateCalls())

func (*FeatureControllerMock) UpdateStatus

func (mock *FeatureControllerMock) UpdateStatus(in1 *v1a.Feature) (*v1a.Feature, error)

UpdateStatus calls UpdateStatusFunc.

func (*FeatureControllerMock) UpdateStatusCalls

func (mock *FeatureControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Feature
}

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

len(mockedFeatureController.UpdateStatusCalls())

func (*FeatureControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*FeatureControllerMock) UpdaterCalls

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

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

len(mockedFeatureController.UpdaterCalls())

func (*FeatureControllerMock) Watch

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

Watch calls WatchFunc.

func (*FeatureControllerMock) WatchCalls

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

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

len(mockedFeatureController.WatchCalls())

type PublicDomainCacheMock

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

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

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

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

PublicDomainCacheMock is a mock implementation of PublicDomainCache.

    func TestSomethingThatUsesPublicDomainCache(t *testing.T) {

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

        // use mockedPublicDomainCache in code that requires PublicDomainCache
        // and then make assertions.

    }

func (*PublicDomainCacheMock) AddIndexer

func (mock *PublicDomainCacheMock) AddIndexer(indexName string, indexer v1.PublicDomainIndexer)

AddIndexer calls AddIndexerFunc.

func (*PublicDomainCacheMock) AddIndexerCalls

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

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

len(mockedPublicDomainCache.AddIndexerCalls())

func (*PublicDomainCacheMock) Get

func (mock *PublicDomainCacheMock) Get(namespace string, name string) (*v1a.PublicDomain, error)

Get calls GetFunc.

func (*PublicDomainCacheMock) GetByIndex

func (mock *PublicDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.PublicDomain, error)

GetByIndex calls GetByIndexFunc.

func (*PublicDomainCacheMock) GetByIndexCalls

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

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

len(mockedPublicDomainCache.GetByIndexCalls())

func (*PublicDomainCacheMock) GetCalls

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

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

len(mockedPublicDomainCache.GetCalls())

func (*PublicDomainCacheMock) List

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

List calls ListFunc.

func (*PublicDomainCacheMock) ListCalls

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

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

len(mockedPublicDomainCache.ListCalls())

type PublicDomainClientMock

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

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

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

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

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

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

PublicDomainClientMock is a mock implementation of PublicDomainClient.

    func TestSomethingThatUsesPublicDomainClient(t *testing.T) {

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

        // use mockedPublicDomainClient in code that requires PublicDomainClient
        // and then make assertions.

    }

func (*PublicDomainClientMock) Create

Create calls CreateFunc.

func (*PublicDomainClientMock) CreateCalls

func (mock *PublicDomainClientMock) CreateCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainClient.CreateCalls())

func (*PublicDomainClientMock) Delete

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

Delete calls DeleteFunc.

func (*PublicDomainClientMock) DeleteCalls

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

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

len(mockedPublicDomainClient.DeleteCalls())

func (*PublicDomainClientMock) Get

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

Get calls GetFunc.

func (*PublicDomainClientMock) GetCalls

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

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

len(mockedPublicDomainClient.GetCalls())

func (*PublicDomainClientMock) List

func (mock *PublicDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)

List calls ListFunc.

func (*PublicDomainClientMock) ListCalls

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

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

len(mockedPublicDomainClient.ListCalls())

func (*PublicDomainClientMock) Patch

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

Patch calls PatchFunc.

func (*PublicDomainClientMock) PatchCalls

func (mock *PublicDomainClientMock) 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(mockedPublicDomainClient.PatchCalls())

func (*PublicDomainClientMock) Update

Update calls UpdateFunc.

func (*PublicDomainClientMock) UpdateCalls

func (mock *PublicDomainClientMock) UpdateCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainClient.UpdateCalls())

func (*PublicDomainClientMock) UpdateStatus

func (mock *PublicDomainClientMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)

UpdateStatus calls UpdateStatusFunc.

func (*PublicDomainClientMock) UpdateStatusCalls

func (mock *PublicDomainClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainClient.UpdateStatusCalls())

func (*PublicDomainClientMock) Watch

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

Watch calls WatchFunc.

func (*PublicDomainClientMock) WatchCalls

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

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

len(mockedPublicDomainClient.WatchCalls())

type PublicDomainControllerMock

type PublicDomainControllerMock 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.PublicDomainCache

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

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

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

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

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

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

PublicDomainControllerMock is a mock implementation of PublicDomainController.

    func TestSomethingThatUsesPublicDomainController(t *testing.T) {

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

    }

func (*PublicDomainControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*PublicDomainControllerMock) AddGenericHandlerCalls

func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.AddGenericHandlerCalls())

func (*PublicDomainControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*PublicDomainControllerMock) AddGenericRemoveHandlerCalls

func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.AddGenericRemoveHandlerCalls())

func (*PublicDomainControllerMock) Cache

Cache calls CacheFunc.

func (*PublicDomainControllerMock) CacheCalls

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

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

len(mockedPublicDomainController.CacheCalls())

func (*PublicDomainControllerMock) Create

Create calls CreateFunc.

func (*PublicDomainControllerMock) CreateCalls

func (mock *PublicDomainControllerMock) CreateCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainController.CreateCalls())

func (*PublicDomainControllerMock) Delete

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

Delete calls DeleteFunc.

func (*PublicDomainControllerMock) DeleteCalls

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

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

len(mockedPublicDomainController.DeleteCalls())

func (*PublicDomainControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*PublicDomainControllerMock) EnqueueCalls

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

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

len(mockedPublicDomainController.EnqueueCalls())

func (*PublicDomainControllerMock) Get

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

Get calls GetFunc.

func (*PublicDomainControllerMock) GetCalls

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

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

len(mockedPublicDomainController.GetCalls())

func (*PublicDomainControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*PublicDomainControllerMock) GroupVersionKindCalls

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

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

len(mockedPublicDomainController.GroupVersionKindCalls())

func (*PublicDomainControllerMock) Informer

Informer calls InformerFunc.

func (*PublicDomainControllerMock) InformerCalls

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

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

len(mockedPublicDomainController.InformerCalls())

func (*PublicDomainControllerMock) List

func (mock *PublicDomainControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)

List calls ListFunc.

func (*PublicDomainControllerMock) ListCalls

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

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

len(mockedPublicDomainController.ListCalls())

func (*PublicDomainControllerMock) OnChange

func (mock *PublicDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.PublicDomainHandler)

OnChange calls OnChangeFunc.

func (*PublicDomainControllerMock) OnChangeCalls

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

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

len(mockedPublicDomainController.OnChangeCalls())

func (*PublicDomainControllerMock) OnRemove

func (mock *PublicDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.PublicDomainHandler)

OnRemove calls OnRemoveFunc.

func (*PublicDomainControllerMock) OnRemoveCalls

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

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

len(mockedPublicDomainController.OnRemoveCalls())

func (*PublicDomainControllerMock) Patch

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

Patch calls PatchFunc.

func (*PublicDomainControllerMock) PatchCalls

func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.PatchCalls())

func (*PublicDomainControllerMock) Update

Update calls UpdateFunc.

func (*PublicDomainControllerMock) UpdateCalls

func (mock *PublicDomainControllerMock) UpdateCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainController.UpdateCalls())

func (*PublicDomainControllerMock) UpdateStatus

func (mock *PublicDomainControllerMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)

UpdateStatus calls UpdateStatusFunc.

func (*PublicDomainControllerMock) UpdateStatusCalls

func (mock *PublicDomainControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.PublicDomain
}

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

len(mockedPublicDomainController.UpdateStatusCalls())

func (*PublicDomainControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*PublicDomainControllerMock) UpdaterCalls

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

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

len(mockedPublicDomainController.UpdaterCalls())

func (*PublicDomainControllerMock) Watch

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

Watch calls WatchFunc.

func (*PublicDomainControllerMock) WatchCalls

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

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

len(mockedPublicDomainController.WatchCalls())

type RioInfoCacheMock

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

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

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

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

RioInfoCacheMock is a mock implementation of RioInfoCache.

    func TestSomethingThatUsesRioInfoCache(t *testing.T) {

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

        // use mockedRioInfoCache in code that requires RioInfoCache
        // and then make assertions.

    }

func (*RioInfoCacheMock) AddIndexer

func (mock *RioInfoCacheMock) AddIndexer(indexName string, indexer v1.RioInfoIndexer)

AddIndexer calls AddIndexerFunc.

func (*RioInfoCacheMock) AddIndexerCalls

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

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

len(mockedRioInfoCache.AddIndexerCalls())

func (*RioInfoCacheMock) Get

func (mock *RioInfoCacheMock) Get(name string) (*v1a.RioInfo, error)

Get calls GetFunc.

func (*RioInfoCacheMock) GetByIndex

func (mock *RioInfoCacheMock) GetByIndex(indexName string, key string) ([]*v1a.RioInfo, error)

GetByIndex calls GetByIndexFunc.

func (*RioInfoCacheMock) GetByIndexCalls

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

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

len(mockedRioInfoCache.GetByIndexCalls())

func (*RioInfoCacheMock) GetCalls

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

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

len(mockedRioInfoCache.GetCalls())

func (*RioInfoCacheMock) List

func (mock *RioInfoCacheMock) List(selector labels.Selector) ([]*v1a.RioInfo, error)

List calls ListFunc.

func (*RioInfoCacheMock) ListCalls

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

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

len(mockedRioInfoCache.ListCalls())

type RioInfoClientMock

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

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

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

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

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

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

RioInfoClientMock is a mock implementation of RioInfoClient.

    func TestSomethingThatUsesRioInfoClient(t *testing.T) {

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

        // use mockedRioInfoClient in code that requires RioInfoClient
        // and then make assertions.

    }

func (*RioInfoClientMock) Create

func (mock *RioInfoClientMock) Create(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

Create calls CreateFunc.

func (*RioInfoClientMock) CreateCalls

func (mock *RioInfoClientMock) CreateCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoClient.CreateCalls())

func (*RioInfoClientMock) Delete

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

Delete calls DeleteFunc.

func (*RioInfoClientMock) DeleteCalls

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

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

len(mockedRioInfoClient.DeleteCalls())

func (*RioInfoClientMock) Get

func (mock *RioInfoClientMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)

Get calls GetFunc.

func (*RioInfoClientMock) GetCalls

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

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

len(mockedRioInfoClient.GetCalls())

func (*RioInfoClientMock) List

func (mock *RioInfoClientMock) List(opts v1b.ListOptions) (*v1a.RioInfoList, error)

List calls ListFunc.

func (*RioInfoClientMock) ListCalls

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

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

len(mockedRioInfoClient.ListCalls())

func (*RioInfoClientMock) Patch

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

Patch calls PatchFunc.

func (*RioInfoClientMock) PatchCalls

func (mock *RioInfoClientMock) 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(mockedRioInfoClient.PatchCalls())

func (*RioInfoClientMock) Update

func (mock *RioInfoClientMock) Update(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

Update calls UpdateFunc.

func (*RioInfoClientMock) UpdateCalls

func (mock *RioInfoClientMock) UpdateCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoClient.UpdateCalls())

func (*RioInfoClientMock) UpdateStatus

func (mock *RioInfoClientMock) UpdateStatus(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

UpdateStatus calls UpdateStatusFunc.

func (*RioInfoClientMock) UpdateStatusCalls

func (mock *RioInfoClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoClient.UpdateStatusCalls())

func (*RioInfoClientMock) Watch

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

Watch calls WatchFunc.

func (*RioInfoClientMock) WatchCalls

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

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

len(mockedRioInfoClient.WatchCalls())

type RioInfoControllerMock

type RioInfoControllerMock 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.RioInfoCache

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

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

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

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

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

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

RioInfoControllerMock is a mock implementation of RioInfoController.

    func TestSomethingThatUsesRioInfoController(t *testing.T) {

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

    }

func (*RioInfoControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*RioInfoControllerMock) AddGenericHandlerCalls

func (mock *RioInfoControllerMock) 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(mockedRioInfoController.AddGenericHandlerCalls())

func (*RioInfoControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*RioInfoControllerMock) AddGenericRemoveHandlerCalls

func (mock *RioInfoControllerMock) 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(mockedRioInfoController.AddGenericRemoveHandlerCalls())

func (*RioInfoControllerMock) Cache

func (mock *RioInfoControllerMock) Cache() v1.RioInfoCache

Cache calls CacheFunc.

func (*RioInfoControllerMock) CacheCalls

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

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

len(mockedRioInfoController.CacheCalls())

func (*RioInfoControllerMock) Create

func (mock *RioInfoControllerMock) Create(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

Create calls CreateFunc.

func (*RioInfoControllerMock) CreateCalls

func (mock *RioInfoControllerMock) CreateCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoController.CreateCalls())

func (*RioInfoControllerMock) Delete

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

Delete calls DeleteFunc.

func (*RioInfoControllerMock) DeleteCalls

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

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

len(mockedRioInfoController.DeleteCalls())

func (*RioInfoControllerMock) Enqueue

func (mock *RioInfoControllerMock) Enqueue(name string)

Enqueue calls EnqueueFunc.

func (*RioInfoControllerMock) EnqueueCalls

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

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

len(mockedRioInfoController.EnqueueCalls())

func (*RioInfoControllerMock) Get

func (mock *RioInfoControllerMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)

Get calls GetFunc.

func (*RioInfoControllerMock) GetCalls

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

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

len(mockedRioInfoController.GetCalls())

func (*RioInfoControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*RioInfoControllerMock) GroupVersionKindCalls

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

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

len(mockedRioInfoController.GroupVersionKindCalls())

func (*RioInfoControllerMock) Informer

Informer calls InformerFunc.

func (*RioInfoControllerMock) InformerCalls

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

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

len(mockedRioInfoController.InformerCalls())

func (*RioInfoControllerMock) List

List calls ListFunc.

func (*RioInfoControllerMock) ListCalls

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

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

len(mockedRioInfoController.ListCalls())

func (*RioInfoControllerMock) OnChange

func (mock *RioInfoControllerMock) OnChange(ctx context.Context, name string, sync v1.RioInfoHandler)

OnChange calls OnChangeFunc.

func (*RioInfoControllerMock) OnChangeCalls

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

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

len(mockedRioInfoController.OnChangeCalls())

func (*RioInfoControllerMock) OnRemove

func (mock *RioInfoControllerMock) OnRemove(ctx context.Context, name string, sync v1.RioInfoHandler)

OnRemove calls OnRemoveFunc.

func (*RioInfoControllerMock) OnRemoveCalls

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

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

len(mockedRioInfoController.OnRemoveCalls())

func (*RioInfoControllerMock) Patch

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

Patch calls PatchFunc.

func (*RioInfoControllerMock) PatchCalls

func (mock *RioInfoControllerMock) 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(mockedRioInfoController.PatchCalls())

func (*RioInfoControllerMock) Update

func (mock *RioInfoControllerMock) Update(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

Update calls UpdateFunc.

func (*RioInfoControllerMock) UpdateCalls

func (mock *RioInfoControllerMock) UpdateCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoController.UpdateCalls())

func (*RioInfoControllerMock) UpdateStatus

func (mock *RioInfoControllerMock) UpdateStatus(in1 *v1a.RioInfo) (*v1a.RioInfo, error)

UpdateStatus calls UpdateStatusFunc.

func (*RioInfoControllerMock) UpdateStatusCalls

func (mock *RioInfoControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.RioInfo
}

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

len(mockedRioInfoController.UpdateStatusCalls())

func (*RioInfoControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*RioInfoControllerMock) UpdaterCalls

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

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

len(mockedRioInfoController.UpdaterCalls())

func (*RioInfoControllerMock) Watch

Watch calls WatchFunc.

func (*RioInfoControllerMock) WatchCalls

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

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

len(mockedRioInfoController.WatchCalls())

Jump to

Keyboard shortcuts

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