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 AppCacheMock

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

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

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

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

AppCacheMock is a mock implementation of AppCache.

    func TestSomethingThatUsesAppCache(t *testing.T) {

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

        // use mockedAppCache in code that requires AppCache
        // and then make assertions.

    }

func (*AppCacheMock) AddIndexer

func (mock *AppCacheMock) AddIndexer(indexName string, indexer v1.AppIndexer)

AddIndexer calls AddIndexerFunc.

func (*AppCacheMock) AddIndexerCalls

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

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

len(mockedAppCache.AddIndexerCalls())

func (*AppCacheMock) Get

func (mock *AppCacheMock) Get(namespace string, name string) (*v1a.App, error)

Get calls GetFunc.

func (*AppCacheMock) GetByIndex

func (mock *AppCacheMock) GetByIndex(indexName string, key string) ([]*v1a.App, error)

GetByIndex calls GetByIndexFunc.

func (*AppCacheMock) GetByIndexCalls

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

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

len(mockedAppCache.GetByIndexCalls())

func (*AppCacheMock) GetCalls

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

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

len(mockedAppCache.GetCalls())

func (*AppCacheMock) List

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

List calls ListFunc.

func (*AppCacheMock) ListCalls

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

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

len(mockedAppCache.ListCalls())

type AppClientMock

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

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

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

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

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

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

AppClientMock is a mock implementation of AppClient.

    func TestSomethingThatUsesAppClient(t *testing.T) {

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

        // use mockedAppClient in code that requires AppClient
        // and then make assertions.

    }

func (*AppClientMock) Create

func (mock *AppClientMock) Create(in1 *v1a.App) (*v1a.App, error)

Create calls CreateFunc.

func (*AppClientMock) CreateCalls

func (mock *AppClientMock) CreateCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppClient.CreateCalls())

func (*AppClientMock) Delete

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

Delete calls DeleteFunc.

func (*AppClientMock) DeleteCalls

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

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

len(mockedAppClient.DeleteCalls())

func (*AppClientMock) Get

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

Get calls GetFunc.

func (*AppClientMock) GetCalls

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

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

len(mockedAppClient.GetCalls())

func (*AppClientMock) List

func (mock *AppClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)

List calls ListFunc.

func (*AppClientMock) ListCalls

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

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

len(mockedAppClient.ListCalls())

func (*AppClientMock) Patch

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

Patch calls PatchFunc.

func (*AppClientMock) PatchCalls

func (mock *AppClientMock) 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(mockedAppClient.PatchCalls())

func (*AppClientMock) Update

func (mock *AppClientMock) Update(in1 *v1a.App) (*v1a.App, error)

Update calls UpdateFunc.

func (*AppClientMock) UpdateCalls

func (mock *AppClientMock) UpdateCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppClient.UpdateCalls())

func (*AppClientMock) UpdateStatus

func (mock *AppClientMock) UpdateStatus(in1 *v1a.App) (*v1a.App, error)

UpdateStatus calls UpdateStatusFunc.

func (*AppClientMock) UpdateStatusCalls

func (mock *AppClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppClient.UpdateStatusCalls())

func (*AppClientMock) Watch

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

Watch calls WatchFunc.

func (*AppClientMock) WatchCalls

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

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

len(mockedAppClient.WatchCalls())

type AppControllerMock

type AppControllerMock 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.AppCache

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

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

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

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

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

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

AppControllerMock is a mock implementation of AppController.

    func TestSomethingThatUsesAppController(t *testing.T) {

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

    }

func (*AppControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*AppControllerMock) AddGenericHandlerCalls

func (mock *AppControllerMock) 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(mockedAppController.AddGenericHandlerCalls())

func (*AppControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*AppControllerMock) AddGenericRemoveHandlerCalls

func (mock *AppControllerMock) 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(mockedAppController.AddGenericRemoveHandlerCalls())

func (*AppControllerMock) Cache

func (mock *AppControllerMock) Cache() v1.AppCache

Cache calls CacheFunc.

func (*AppControllerMock) CacheCalls

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

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

len(mockedAppController.CacheCalls())

func (*AppControllerMock) Create

func (mock *AppControllerMock) Create(in1 *v1a.App) (*v1a.App, error)

Create calls CreateFunc.

func (*AppControllerMock) CreateCalls

func (mock *AppControllerMock) CreateCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppController.CreateCalls())

func (*AppControllerMock) Delete

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

Delete calls DeleteFunc.

func (*AppControllerMock) DeleteCalls

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

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

len(mockedAppController.DeleteCalls())

func (*AppControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*AppControllerMock) EnqueueCalls

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

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

len(mockedAppController.EnqueueCalls())

func (*AppControllerMock) Get

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

Get calls GetFunc.

func (*AppControllerMock) GetCalls

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

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

len(mockedAppController.GetCalls())

func (*AppControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*AppControllerMock) GroupVersionKindCalls

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

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

len(mockedAppController.GroupVersionKindCalls())

func (*AppControllerMock) Informer

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

Informer calls InformerFunc.

func (*AppControllerMock) InformerCalls

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

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

len(mockedAppController.InformerCalls())

func (*AppControllerMock) List

func (mock *AppControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)

List calls ListFunc.

func (*AppControllerMock) ListCalls

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

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

len(mockedAppController.ListCalls())

func (*AppControllerMock) OnChange

func (mock *AppControllerMock) OnChange(ctx context.Context, name string, sync v1.AppHandler)

OnChange calls OnChangeFunc.

func (*AppControllerMock) OnChangeCalls

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

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

len(mockedAppController.OnChangeCalls())

func (*AppControllerMock) OnRemove

func (mock *AppControllerMock) OnRemove(ctx context.Context, name string, sync v1.AppHandler)

OnRemove calls OnRemoveFunc.

func (*AppControllerMock) OnRemoveCalls

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

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

len(mockedAppController.OnRemoveCalls())

func (*AppControllerMock) Patch

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

Patch calls PatchFunc.

func (*AppControllerMock) PatchCalls

func (mock *AppControllerMock) 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(mockedAppController.PatchCalls())

func (*AppControllerMock) Update

func (mock *AppControllerMock) Update(in1 *v1a.App) (*v1a.App, error)

Update calls UpdateFunc.

func (*AppControllerMock) UpdateCalls

func (mock *AppControllerMock) UpdateCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppController.UpdateCalls())

func (*AppControllerMock) UpdateStatus

func (mock *AppControllerMock) UpdateStatus(in1 *v1a.App) (*v1a.App, error)

UpdateStatus calls UpdateStatusFunc.

func (*AppControllerMock) UpdateStatusCalls

func (mock *AppControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.App
}

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

len(mockedAppController.UpdateStatusCalls())

func (*AppControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*AppControllerMock) UpdaterCalls

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

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

len(mockedAppController.UpdaterCalls())

func (*AppControllerMock) Watch

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

Watch calls WatchFunc.

func (*AppControllerMock) WatchCalls

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

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

len(mockedAppController.WatchCalls())

type ExternalServiceCacheMock

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

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

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

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

ExternalServiceCacheMock is a mock implementation of ExternalServiceCache.

    func TestSomethingThatUsesExternalServiceCache(t *testing.T) {

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

        // use mockedExternalServiceCache in code that requires ExternalServiceCache
        // and then make assertions.

    }

func (*ExternalServiceCacheMock) AddIndexer

func (mock *ExternalServiceCacheMock) AddIndexer(indexName string, indexer v1.ExternalServiceIndexer)

AddIndexer calls AddIndexerFunc.

func (*ExternalServiceCacheMock) AddIndexerCalls

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

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

len(mockedExternalServiceCache.AddIndexerCalls())

func (*ExternalServiceCacheMock) Get

func (mock *ExternalServiceCacheMock) Get(namespace string, name string) (*v1a.ExternalService, error)

Get calls GetFunc.

func (*ExternalServiceCacheMock) GetByIndex

func (mock *ExternalServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ExternalService, error)

GetByIndex calls GetByIndexFunc.

func (*ExternalServiceCacheMock) GetByIndexCalls

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

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

len(mockedExternalServiceCache.GetByIndexCalls())

func (*ExternalServiceCacheMock) GetCalls

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

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

len(mockedExternalServiceCache.GetCalls())

func (*ExternalServiceCacheMock) List

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

List calls ListFunc.

func (*ExternalServiceCacheMock) ListCalls

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

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

len(mockedExternalServiceCache.ListCalls())

type ExternalServiceClientMock

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

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

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

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

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

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

ExternalServiceClientMock is a mock implementation of ExternalServiceClient.

    func TestSomethingThatUsesExternalServiceClient(t *testing.T) {

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

        // use mockedExternalServiceClient in code that requires ExternalServiceClient
        // and then make assertions.

    }

func (*ExternalServiceClientMock) Create

Create calls CreateFunc.

func (*ExternalServiceClientMock) CreateCalls

func (mock *ExternalServiceClientMock) CreateCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceClient.CreateCalls())

func (*ExternalServiceClientMock) Delete

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

Delete calls DeleteFunc.

func (*ExternalServiceClientMock) DeleteCalls

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

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

len(mockedExternalServiceClient.DeleteCalls())

func (*ExternalServiceClientMock) Get

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

Get calls GetFunc.

func (*ExternalServiceClientMock) GetCalls

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

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

len(mockedExternalServiceClient.GetCalls())

func (*ExternalServiceClientMock) List

List calls ListFunc.

func (*ExternalServiceClientMock) ListCalls

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

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

len(mockedExternalServiceClient.ListCalls())

func (*ExternalServiceClientMock) Patch

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

Patch calls PatchFunc.

func (*ExternalServiceClientMock) PatchCalls

func (mock *ExternalServiceClientMock) 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(mockedExternalServiceClient.PatchCalls())

func (*ExternalServiceClientMock) Update

Update calls UpdateFunc.

func (*ExternalServiceClientMock) UpdateCalls

func (mock *ExternalServiceClientMock) UpdateCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceClient.UpdateCalls())

func (*ExternalServiceClientMock) UpdateStatus

UpdateStatus calls UpdateStatusFunc.

func (*ExternalServiceClientMock) UpdateStatusCalls

func (mock *ExternalServiceClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceClient.UpdateStatusCalls())

func (*ExternalServiceClientMock) Watch

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

Watch calls WatchFunc.

func (*ExternalServiceClientMock) WatchCalls

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

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

len(mockedExternalServiceClient.WatchCalls())

type ExternalServiceControllerMock

type ExternalServiceControllerMock 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.ExternalServiceCache

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

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

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

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

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

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

ExternalServiceControllerMock is a mock implementation of ExternalServiceController.

    func TestSomethingThatUsesExternalServiceController(t *testing.T) {

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

    }

func (*ExternalServiceControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ExternalServiceControllerMock) AddGenericHandlerCalls

func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.AddGenericHandlerCalls())

func (*ExternalServiceControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ExternalServiceControllerMock) AddGenericRemoveHandlerCalls

func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.AddGenericRemoveHandlerCalls())

func (*ExternalServiceControllerMock) Cache

Cache calls CacheFunc.

func (*ExternalServiceControllerMock) CacheCalls

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

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

len(mockedExternalServiceController.CacheCalls())

func (*ExternalServiceControllerMock) Create

Create calls CreateFunc.

func (*ExternalServiceControllerMock) CreateCalls

func (mock *ExternalServiceControllerMock) CreateCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceController.CreateCalls())

func (*ExternalServiceControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ExternalServiceControllerMock) DeleteCalls

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

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

len(mockedExternalServiceController.DeleteCalls())

func (*ExternalServiceControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ExternalServiceControllerMock) EnqueueCalls

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

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

len(mockedExternalServiceController.EnqueueCalls())

func (*ExternalServiceControllerMock) Get

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

Get calls GetFunc.

func (*ExternalServiceControllerMock) GetCalls

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

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

len(mockedExternalServiceController.GetCalls())

func (*ExternalServiceControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ExternalServiceControllerMock) GroupVersionKindCalls

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

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

len(mockedExternalServiceController.GroupVersionKindCalls())

func (*ExternalServiceControllerMock) Informer

Informer calls InformerFunc.

func (*ExternalServiceControllerMock) InformerCalls

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

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

len(mockedExternalServiceController.InformerCalls())

func (*ExternalServiceControllerMock) List

List calls ListFunc.

func (*ExternalServiceControllerMock) ListCalls

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

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

len(mockedExternalServiceController.ListCalls())

func (*ExternalServiceControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*ExternalServiceControllerMock) OnChangeCalls

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

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

len(mockedExternalServiceController.OnChangeCalls())

func (*ExternalServiceControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*ExternalServiceControllerMock) OnRemoveCalls

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

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

len(mockedExternalServiceController.OnRemoveCalls())

func (*ExternalServiceControllerMock) Patch

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

Patch calls PatchFunc.

func (*ExternalServiceControllerMock) PatchCalls

func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.PatchCalls())

func (*ExternalServiceControllerMock) Update

Update calls UpdateFunc.

func (*ExternalServiceControllerMock) UpdateCalls

func (mock *ExternalServiceControllerMock) UpdateCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceController.UpdateCalls())

func (*ExternalServiceControllerMock) UpdateStatus

UpdateStatus calls UpdateStatusFunc.

func (*ExternalServiceControllerMock) UpdateStatusCalls

func (mock *ExternalServiceControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.ExternalService
}

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

len(mockedExternalServiceController.UpdateStatusCalls())

func (*ExternalServiceControllerMock) Updater

Updater calls UpdaterFunc.

func (*ExternalServiceControllerMock) UpdaterCalls

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

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

len(mockedExternalServiceController.UpdaterCalls())

func (*ExternalServiceControllerMock) Watch

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

Watch calls WatchFunc.

func (*ExternalServiceControllerMock) WatchCalls

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

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

len(mockedExternalServiceController.WatchCalls())

type RouterCacheMock

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

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

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

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

RouterCacheMock is a mock implementation of RouterCache.

    func TestSomethingThatUsesRouterCache(t *testing.T) {

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

        // use mockedRouterCache in code that requires RouterCache
        // and then make assertions.

    }

func (*RouterCacheMock) AddIndexer

func (mock *RouterCacheMock) AddIndexer(indexName string, indexer v1.RouterIndexer)

AddIndexer calls AddIndexerFunc.

func (*RouterCacheMock) AddIndexerCalls

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

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

len(mockedRouterCache.AddIndexerCalls())

func (*RouterCacheMock) Get

func (mock *RouterCacheMock) Get(namespace string, name string) (*v1a.Router, error)

Get calls GetFunc.

func (*RouterCacheMock) GetByIndex

func (mock *RouterCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Router, error)

GetByIndex calls GetByIndexFunc.

func (*RouterCacheMock) GetByIndexCalls

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

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

len(mockedRouterCache.GetByIndexCalls())

func (*RouterCacheMock) GetCalls

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

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

len(mockedRouterCache.GetCalls())

func (*RouterCacheMock) List

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

List calls ListFunc.

func (*RouterCacheMock) ListCalls

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

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

len(mockedRouterCache.ListCalls())

type RouterClientMock

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

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

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

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

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

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

RouterClientMock is a mock implementation of RouterClient.

    func TestSomethingThatUsesRouterClient(t *testing.T) {

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

        // use mockedRouterClient in code that requires RouterClient
        // and then make assertions.

    }

func (*RouterClientMock) Create

func (mock *RouterClientMock) Create(in1 *v1a.Router) (*v1a.Router, error)

Create calls CreateFunc.

func (*RouterClientMock) CreateCalls

func (mock *RouterClientMock) CreateCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterClient.CreateCalls())

func (*RouterClientMock) Delete

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

Delete calls DeleteFunc.

func (*RouterClientMock) DeleteCalls

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

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

len(mockedRouterClient.DeleteCalls())

func (*RouterClientMock) Get

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

Get calls GetFunc.

func (*RouterClientMock) GetCalls

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

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

len(mockedRouterClient.GetCalls())

func (*RouterClientMock) List

func (mock *RouterClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)

List calls ListFunc.

func (*RouterClientMock) ListCalls

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

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

len(mockedRouterClient.ListCalls())

func (*RouterClientMock) Patch

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

Patch calls PatchFunc.

func (*RouterClientMock) PatchCalls

func (mock *RouterClientMock) 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(mockedRouterClient.PatchCalls())

func (*RouterClientMock) Update

func (mock *RouterClientMock) Update(in1 *v1a.Router) (*v1a.Router, error)

Update calls UpdateFunc.

func (*RouterClientMock) UpdateCalls

func (mock *RouterClientMock) UpdateCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterClient.UpdateCalls())

func (*RouterClientMock) UpdateStatus

func (mock *RouterClientMock) UpdateStatus(in1 *v1a.Router) (*v1a.Router, error)

UpdateStatus calls UpdateStatusFunc.

func (*RouterClientMock) UpdateStatusCalls

func (mock *RouterClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterClient.UpdateStatusCalls())

func (*RouterClientMock) Watch

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

Watch calls WatchFunc.

func (*RouterClientMock) WatchCalls

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

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

len(mockedRouterClient.WatchCalls())

type RouterControllerMock

type RouterControllerMock 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.RouterCache

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

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

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

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

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

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

RouterControllerMock is a mock implementation of RouterController.

    func TestSomethingThatUsesRouterController(t *testing.T) {

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

    }

func (*RouterControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*RouterControllerMock) AddGenericHandlerCalls

func (mock *RouterControllerMock) 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(mockedRouterController.AddGenericHandlerCalls())

func (*RouterControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*RouterControllerMock) AddGenericRemoveHandlerCalls

func (mock *RouterControllerMock) 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(mockedRouterController.AddGenericRemoveHandlerCalls())

func (*RouterControllerMock) Cache

func (mock *RouterControllerMock) Cache() v1.RouterCache

Cache calls CacheFunc.

func (*RouterControllerMock) CacheCalls

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

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

len(mockedRouterController.CacheCalls())

func (*RouterControllerMock) Create

func (mock *RouterControllerMock) Create(in1 *v1a.Router) (*v1a.Router, error)

Create calls CreateFunc.

func (*RouterControllerMock) CreateCalls

func (mock *RouterControllerMock) CreateCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterController.CreateCalls())

func (*RouterControllerMock) Delete

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

Delete calls DeleteFunc.

func (*RouterControllerMock) DeleteCalls

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

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

len(mockedRouterController.DeleteCalls())

func (*RouterControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*RouterControllerMock) EnqueueCalls

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

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

len(mockedRouterController.EnqueueCalls())

func (*RouterControllerMock) Get

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

Get calls GetFunc.

func (*RouterControllerMock) GetCalls

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

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

len(mockedRouterController.GetCalls())

func (*RouterControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*RouterControllerMock) GroupVersionKindCalls

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

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

len(mockedRouterController.GroupVersionKindCalls())

func (*RouterControllerMock) Informer

Informer calls InformerFunc.

func (*RouterControllerMock) InformerCalls

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

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

len(mockedRouterController.InformerCalls())

func (*RouterControllerMock) List

func (mock *RouterControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)

List calls ListFunc.

func (*RouterControllerMock) ListCalls

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

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

len(mockedRouterController.ListCalls())

func (*RouterControllerMock) OnChange

func (mock *RouterControllerMock) OnChange(ctx context.Context, name string, sync v1.RouterHandler)

OnChange calls OnChangeFunc.

func (*RouterControllerMock) OnChangeCalls

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

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

len(mockedRouterController.OnChangeCalls())

func (*RouterControllerMock) OnRemove

func (mock *RouterControllerMock) OnRemove(ctx context.Context, name string, sync v1.RouterHandler)

OnRemove calls OnRemoveFunc.

func (*RouterControllerMock) OnRemoveCalls

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

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

len(mockedRouterController.OnRemoveCalls())

func (*RouterControllerMock) Patch

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

Patch calls PatchFunc.

func (*RouterControllerMock) PatchCalls

func (mock *RouterControllerMock) 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(mockedRouterController.PatchCalls())

func (*RouterControllerMock) Update

func (mock *RouterControllerMock) Update(in1 *v1a.Router) (*v1a.Router, error)

Update calls UpdateFunc.

func (*RouterControllerMock) UpdateCalls

func (mock *RouterControllerMock) UpdateCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterController.UpdateCalls())

func (*RouterControllerMock) UpdateStatus

func (mock *RouterControllerMock) UpdateStatus(in1 *v1a.Router) (*v1a.Router, error)

UpdateStatus calls UpdateStatusFunc.

func (*RouterControllerMock) UpdateStatusCalls

func (mock *RouterControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Router
}

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

len(mockedRouterController.UpdateStatusCalls())

func (*RouterControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*RouterControllerMock) UpdaterCalls

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

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

len(mockedRouterController.UpdaterCalls())

func (*RouterControllerMock) Watch

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

Watch calls WatchFunc.

func (*RouterControllerMock) WatchCalls

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

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

len(mockedRouterController.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