fakes

package
v0.1.0-rc2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationRuleCacheMock

type DestinationRuleCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1alpha3.DestinationRuleIndexer)

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

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

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

DestinationRuleCacheMock is a mock implementation of DestinationRuleCache.

    func TestSomethingThatUsesDestinationRuleCache(t *testing.T) {

        // make and configure a mocked DestinationRuleCache
        mockedDestinationRuleCache := &DestinationRuleCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1alpha3.DestinationRuleIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1alpha3a.DestinationRule, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.DestinationRule, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedDestinationRuleCache in code that requires DestinationRuleCache
        // and then make assertions.

    }

func (*DestinationRuleCacheMock) AddIndexer

func (mock *DestinationRuleCacheMock) AddIndexer(indexName string, indexer v1alpha3.DestinationRuleIndexer)

AddIndexer calls AddIndexerFunc.

func (*DestinationRuleCacheMock) AddIndexerCalls

func (mock *DestinationRuleCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1alpha3.DestinationRuleIndexer
}

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

len(mockedDestinationRuleCache.AddIndexerCalls())

func (*DestinationRuleCacheMock) Get

func (mock *DestinationRuleCacheMock) Get(namespace string, name string) (*v1alpha3a.DestinationRule, error)

Get calls GetFunc.

func (*DestinationRuleCacheMock) GetByIndex

func (mock *DestinationRuleCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.DestinationRule, error)

GetByIndex calls GetByIndexFunc.

func (*DestinationRuleCacheMock) GetByIndexCalls

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

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

len(mockedDestinationRuleCache.GetByIndexCalls())

func (*DestinationRuleCacheMock) GetCalls

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

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

len(mockedDestinationRuleCache.GetCalls())

func (*DestinationRuleCacheMock) List

func (mock *DestinationRuleCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error)

List calls ListFunc.

func (*DestinationRuleCacheMock) ListCalls

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

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

len(mockedDestinationRuleCache.ListCalls())

type DestinationRuleClientMock

type DestinationRuleClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)

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

DestinationRuleClientMock is a mock implementation of DestinationRuleClient.

    func TestSomethingThatUsesDestinationRuleClient(t *testing.T) {

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

        // use mockedDestinationRuleClient in code that requires DestinationRuleClient
        // and then make assertions.

    }

func (*DestinationRuleClientMock) Create

Create calls CreateFunc.

func (*DestinationRuleClientMock) CreateCalls

func (mock *DestinationRuleClientMock) CreateCalls() []struct {
	In1 *v1alpha3a.DestinationRule
}

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

len(mockedDestinationRuleClient.CreateCalls())

func (*DestinationRuleClientMock) Delete

func (mock *DestinationRuleClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*DestinationRuleClientMock) DeleteCalls

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

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

len(mockedDestinationRuleClient.DeleteCalls())

func (*DestinationRuleClientMock) Get

func (mock *DestinationRuleClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)

Get calls GetFunc.

func (*DestinationRuleClientMock) GetCalls

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

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

len(mockedDestinationRuleClient.GetCalls())

func (*DestinationRuleClientMock) List

List calls ListFunc.

func (*DestinationRuleClientMock) ListCalls

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

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

len(mockedDestinationRuleClient.ListCalls())

func (*DestinationRuleClientMock) Patch

func (mock *DestinationRuleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error)

Patch calls PatchFunc.

func (*DestinationRuleClientMock) PatchCalls

func (mock *DestinationRuleClientMock) 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(mockedDestinationRuleClient.PatchCalls())

func (*DestinationRuleClientMock) Update

Update calls UpdateFunc.

func (*DestinationRuleClientMock) UpdateCalls

func (mock *DestinationRuleClientMock) UpdateCalls() []struct {
	In1 *v1alpha3a.DestinationRule
}

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

len(mockedDestinationRuleClient.UpdateCalls())

func (*DestinationRuleClientMock) Watch

func (mock *DestinationRuleClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*DestinationRuleClientMock) WatchCalls

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

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

len(mockedDestinationRuleClient.WatchCalls())

type DestinationRuleControllerMock

type DestinationRuleControllerMock 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() v1alpha3.DestinationRuleCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.DestinationRule, 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 v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)

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

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

DestinationRuleControllerMock is a mock implementation of DestinationRuleController.

    func TestSomethingThatUsesDestinationRuleController(t *testing.T) {

        // make and configure a mocked DestinationRuleController
        mockedDestinationRuleController := &DestinationRuleControllerMock{
            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() v1alpha3.DestinationRuleCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.DestinationRule, 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 v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedDestinationRuleController in code that requires DestinationRuleController
        // and then make assertions.

    }

func (*DestinationRuleControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*DestinationRuleControllerMock) AddGenericHandlerCalls

func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.AddGenericHandlerCalls())

func (*DestinationRuleControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*DestinationRuleControllerMock) AddGenericRemoveHandlerCalls

func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.AddGenericRemoveHandlerCalls())

func (*DestinationRuleControllerMock) Cache

Cache calls CacheFunc.

func (*DestinationRuleControllerMock) CacheCalls

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

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

len(mockedDestinationRuleController.CacheCalls())

func (*DestinationRuleControllerMock) Create

Create calls CreateFunc.

func (*DestinationRuleControllerMock) CreateCalls

func (mock *DestinationRuleControllerMock) CreateCalls() []struct {
	In1 *v1alpha3a.DestinationRule
}

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

len(mockedDestinationRuleController.CreateCalls())

func (*DestinationRuleControllerMock) Delete

func (mock *DestinationRuleControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*DestinationRuleControllerMock) DeleteCalls

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

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

len(mockedDestinationRuleController.DeleteCalls())

func (*DestinationRuleControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*DestinationRuleControllerMock) EnqueueCalls

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

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

len(mockedDestinationRuleController.EnqueueCalls())

func (*DestinationRuleControllerMock) Get

func (mock *DestinationRuleControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)

Get calls GetFunc.

func (*DestinationRuleControllerMock) GetCalls

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

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

len(mockedDestinationRuleController.GetCalls())

func (*DestinationRuleControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*DestinationRuleControllerMock) GroupVersionKindCalls

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

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

len(mockedDestinationRuleController.GroupVersionKindCalls())

func (*DestinationRuleControllerMock) Informer

Informer calls InformerFunc.

func (*DestinationRuleControllerMock) InformerCalls

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

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

len(mockedDestinationRuleController.InformerCalls())

func (*DestinationRuleControllerMock) List

List calls ListFunc.

func (*DestinationRuleControllerMock) ListCalls

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

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

len(mockedDestinationRuleController.ListCalls())

func (*DestinationRuleControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*DestinationRuleControllerMock) OnChangeCalls

func (mock *DestinationRuleControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.DestinationRuleHandler
}

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

len(mockedDestinationRuleController.OnChangeCalls())

func (*DestinationRuleControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*DestinationRuleControllerMock) OnRemoveCalls

func (mock *DestinationRuleControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.DestinationRuleHandler
}

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

len(mockedDestinationRuleController.OnRemoveCalls())

func (*DestinationRuleControllerMock) Patch

func (mock *DestinationRuleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error)

Patch calls PatchFunc.

func (*DestinationRuleControllerMock) PatchCalls

func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.PatchCalls())

func (*DestinationRuleControllerMock) Update

Update calls UpdateFunc.

func (*DestinationRuleControllerMock) UpdateCalls

func (mock *DestinationRuleControllerMock) UpdateCalls() []struct {
	In1 *v1alpha3a.DestinationRule
}

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

len(mockedDestinationRuleController.UpdateCalls())

func (*DestinationRuleControllerMock) Updater

Updater calls UpdaterFunc.

func (*DestinationRuleControllerMock) UpdaterCalls

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

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

len(mockedDestinationRuleController.UpdaterCalls())

func (*DestinationRuleControllerMock) Watch

func (mock *DestinationRuleControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*DestinationRuleControllerMock) WatchCalls

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

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

len(mockedDestinationRuleController.WatchCalls())

type GatewayCacheMock

type GatewayCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1alpha3.GatewayIndexer)

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

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

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

GatewayCacheMock is a mock implementation of GatewayCache.

    func TestSomethingThatUsesGatewayCache(t *testing.T) {

        // make and configure a mocked GatewayCache
        mockedGatewayCache := &GatewayCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1alpha3.GatewayIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1alpha3a.Gateway, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.Gateway, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.Gateway, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedGatewayCache in code that requires GatewayCache
        // and then make assertions.

    }

func (*GatewayCacheMock) AddIndexer

func (mock *GatewayCacheMock) AddIndexer(indexName string, indexer v1alpha3.GatewayIndexer)

AddIndexer calls AddIndexerFunc.

func (*GatewayCacheMock) AddIndexerCalls

func (mock *GatewayCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1alpha3.GatewayIndexer
}

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

len(mockedGatewayCache.AddIndexerCalls())

func (*GatewayCacheMock) Get

func (mock *GatewayCacheMock) Get(namespace string, name string) (*v1alpha3a.Gateway, error)

Get calls GetFunc.

func (*GatewayCacheMock) GetByIndex

func (mock *GatewayCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.Gateway, error)

GetByIndex calls GetByIndexFunc.

func (*GatewayCacheMock) GetByIndexCalls

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

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

len(mockedGatewayCache.GetByIndexCalls())

func (*GatewayCacheMock) GetCalls

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

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

len(mockedGatewayCache.GetCalls())

func (*GatewayCacheMock) List

func (mock *GatewayCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.Gateway, error)

List calls ListFunc.

func (*GatewayCacheMock) ListCalls

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

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

len(mockedGatewayCache.ListCalls())

type GatewayClientMock

type GatewayClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

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

GatewayClientMock is a mock implementation of GatewayClient.

    func TestSomethingThatUsesGatewayClient(t *testing.T) {

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

        // use mockedGatewayClient in code that requires GatewayClient
        // and then make assertions.

    }

func (*GatewayClientMock) Create

func (mock *GatewayClientMock) Create(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

Create calls CreateFunc.

func (*GatewayClientMock) CreateCalls

func (mock *GatewayClientMock) CreateCalls() []struct {
	In1 *v1alpha3a.Gateway
}

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

len(mockedGatewayClient.CreateCalls())

func (*GatewayClientMock) Delete

func (mock *GatewayClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*GatewayClientMock) DeleteCalls

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

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

len(mockedGatewayClient.DeleteCalls())

func (*GatewayClientMock) Get

func (mock *GatewayClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)

Get calls GetFunc.

func (*GatewayClientMock) GetCalls

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

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

len(mockedGatewayClient.GetCalls())

func (*GatewayClientMock) List

func (mock *GatewayClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)

List calls ListFunc.

func (*GatewayClientMock) ListCalls

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

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

len(mockedGatewayClient.ListCalls())

func (*GatewayClientMock) Patch

func (mock *GatewayClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error)

Patch calls PatchFunc.

func (*GatewayClientMock) PatchCalls

func (mock *GatewayClientMock) 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(mockedGatewayClient.PatchCalls())

func (*GatewayClientMock) Update

func (mock *GatewayClientMock) Update(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

Update calls UpdateFunc.

func (*GatewayClientMock) UpdateCalls

func (mock *GatewayClientMock) UpdateCalls() []struct {
	In1 *v1alpha3a.Gateway
}

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

len(mockedGatewayClient.UpdateCalls())

func (*GatewayClientMock) Watch

func (mock *GatewayClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*GatewayClientMock) WatchCalls

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

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

len(mockedGatewayClient.WatchCalls())

type GatewayControllerMock

type GatewayControllerMock 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() v1alpha3.GatewayCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.Gateway, 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 v1.ListOptions) (*v1alpha3a.GatewayList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)

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

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

GatewayControllerMock is a mock implementation of GatewayController.

    func TestSomethingThatUsesGatewayController(t *testing.T) {

        // make and configure a mocked GatewayController
        mockedGatewayController := &GatewayControllerMock{
            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() v1alpha3.GatewayCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.Gateway, 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 v1.ListOptions) (*v1alpha3a.GatewayList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.GatewayHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.GatewayHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedGatewayController in code that requires GatewayController
        // and then make assertions.

    }

func (*GatewayControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*GatewayControllerMock) AddGenericHandlerCalls

func (mock *GatewayControllerMock) 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(mockedGatewayController.AddGenericHandlerCalls())

func (*GatewayControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*GatewayControllerMock) AddGenericRemoveHandlerCalls

func (mock *GatewayControllerMock) 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(mockedGatewayController.AddGenericRemoveHandlerCalls())

func (*GatewayControllerMock) Cache

Cache calls CacheFunc.

func (*GatewayControllerMock) CacheCalls

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

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

len(mockedGatewayController.CacheCalls())

func (*GatewayControllerMock) Create

Create calls CreateFunc.

func (*GatewayControllerMock) CreateCalls

func (mock *GatewayControllerMock) CreateCalls() []struct {
	In1 *v1alpha3a.Gateway
}

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

len(mockedGatewayController.CreateCalls())

func (*GatewayControllerMock) Delete

func (mock *GatewayControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*GatewayControllerMock) DeleteCalls

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

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

len(mockedGatewayController.DeleteCalls())

func (*GatewayControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*GatewayControllerMock) EnqueueCalls

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

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

len(mockedGatewayController.EnqueueCalls())

func (*GatewayControllerMock) Get

func (mock *GatewayControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)

Get calls GetFunc.

func (*GatewayControllerMock) GetCalls

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

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

len(mockedGatewayController.GetCalls())

func (*GatewayControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*GatewayControllerMock) GroupVersionKindCalls

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

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

len(mockedGatewayController.GroupVersionKindCalls())

func (*GatewayControllerMock) Informer

Informer calls InformerFunc.

func (*GatewayControllerMock) InformerCalls

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

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

len(mockedGatewayController.InformerCalls())

func (*GatewayControllerMock) List

func (mock *GatewayControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)

List calls ListFunc.

func (*GatewayControllerMock) ListCalls

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

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

len(mockedGatewayController.ListCalls())

func (*GatewayControllerMock) OnChange

func (mock *GatewayControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.GatewayHandler)

OnChange calls OnChangeFunc.

func (*GatewayControllerMock) OnChangeCalls

func (mock *GatewayControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.GatewayHandler
}

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

len(mockedGatewayController.OnChangeCalls())

func (*GatewayControllerMock) OnRemove

func (mock *GatewayControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.GatewayHandler)

OnRemove calls OnRemoveFunc.

func (*GatewayControllerMock) OnRemoveCalls

func (mock *GatewayControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.GatewayHandler
}

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

len(mockedGatewayController.OnRemoveCalls())

func (*GatewayControllerMock) Patch

func (mock *GatewayControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error)

Patch calls PatchFunc.

func (*GatewayControllerMock) PatchCalls

func (mock *GatewayControllerMock) 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(mockedGatewayController.PatchCalls())

func (*GatewayControllerMock) Update

Update calls UpdateFunc.

func (*GatewayControllerMock) UpdateCalls

func (mock *GatewayControllerMock) UpdateCalls() []struct {
	In1 *v1alpha3a.Gateway
}

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

len(mockedGatewayController.UpdateCalls())

func (*GatewayControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*GatewayControllerMock) UpdaterCalls

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

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

len(mockedGatewayController.UpdaterCalls())

func (*GatewayControllerMock) Watch

func (mock *GatewayControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*GatewayControllerMock) WatchCalls

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

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

len(mockedGatewayController.WatchCalls())

type ServiceEntryCacheMock

type ServiceEntryCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1alpha3.ServiceEntryIndexer)

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

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

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

ServiceEntryCacheMock is a mock implementation of ServiceEntryCache.

    func TestSomethingThatUsesServiceEntryCache(t *testing.T) {

        // make and configure a mocked ServiceEntryCache
        mockedServiceEntryCache := &ServiceEntryCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1alpha3.ServiceEntryIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedServiceEntryCache in code that requires ServiceEntryCache
        // and then make assertions.

    }

func (*ServiceEntryCacheMock) AddIndexer

func (mock *ServiceEntryCacheMock) AddIndexer(indexName string, indexer v1alpha3.ServiceEntryIndexer)

AddIndexer calls AddIndexerFunc.

func (*ServiceEntryCacheMock) AddIndexerCalls

func (mock *ServiceEntryCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1alpha3.ServiceEntryIndexer
}

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

len(mockedServiceEntryCache.AddIndexerCalls())

func (*ServiceEntryCacheMock) Get

func (mock *ServiceEntryCacheMock) Get(namespace string, name string) (*v1alpha3a.ServiceEntry, error)

Get calls GetFunc.

func (*ServiceEntryCacheMock) GetByIndex

func (mock *ServiceEntryCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error)

GetByIndex calls GetByIndexFunc.

func (*ServiceEntryCacheMock) GetByIndexCalls

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

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

len(mockedServiceEntryCache.GetByIndexCalls())

func (*ServiceEntryCacheMock) GetCalls

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

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

len(mockedServiceEntryCache.GetCalls())

func (*ServiceEntryCacheMock) List

func (mock *ServiceEntryCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error)

List calls ListFunc.

func (*ServiceEntryCacheMock) ListCalls

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

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

len(mockedServiceEntryCache.ListCalls())

type ServiceEntryClientMock

type ServiceEntryClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)

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

ServiceEntryClientMock is a mock implementation of ServiceEntryClient.

    func TestSomethingThatUsesServiceEntryClient(t *testing.T) {

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

        // use mockedServiceEntryClient in code that requires ServiceEntryClient
        // and then make assertions.

    }

func (*ServiceEntryClientMock) Create

Create calls CreateFunc.

func (*ServiceEntryClientMock) CreateCalls

func (mock *ServiceEntryClientMock) CreateCalls() []struct {
	In1 *v1alpha3a.ServiceEntry
}

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

len(mockedServiceEntryClient.CreateCalls())

func (*ServiceEntryClientMock) Delete

func (mock *ServiceEntryClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*ServiceEntryClientMock) DeleteCalls

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

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

len(mockedServiceEntryClient.DeleteCalls())

func (*ServiceEntryClientMock) Get

func (mock *ServiceEntryClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)

Get calls GetFunc.

func (*ServiceEntryClientMock) GetCalls

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

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

len(mockedServiceEntryClient.GetCalls())

func (*ServiceEntryClientMock) List

List calls ListFunc.

func (*ServiceEntryClientMock) ListCalls

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

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

len(mockedServiceEntryClient.ListCalls())

func (*ServiceEntryClientMock) Patch

func (mock *ServiceEntryClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error)

Patch calls PatchFunc.

func (*ServiceEntryClientMock) PatchCalls

func (mock *ServiceEntryClientMock) 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(mockedServiceEntryClient.PatchCalls())

func (*ServiceEntryClientMock) Update

Update calls UpdateFunc.

func (*ServiceEntryClientMock) UpdateCalls

func (mock *ServiceEntryClientMock) UpdateCalls() []struct {
	In1 *v1alpha3a.ServiceEntry
}

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

len(mockedServiceEntryClient.UpdateCalls())

func (*ServiceEntryClientMock) Watch

func (mock *ServiceEntryClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ServiceEntryClientMock) WatchCalls

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

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

len(mockedServiceEntryClient.WatchCalls())

type ServiceEntryControllerMock

type ServiceEntryControllerMock 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() v1alpha3.ServiceEntryCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.ServiceEntry, 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 v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)

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

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

ServiceEntryControllerMock is a mock implementation of ServiceEntryController.

    func TestSomethingThatUsesServiceEntryController(t *testing.T) {

        // make and configure a mocked ServiceEntryController
        mockedServiceEntryController := &ServiceEntryControllerMock{
            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() v1alpha3.ServiceEntryCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.ServiceEntry, 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 v1.ListOptions) (*v1alpha3a.ServiceEntryList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedServiceEntryController in code that requires ServiceEntryController
        // and then make assertions.

    }

func (*ServiceEntryControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*ServiceEntryControllerMock) AddGenericHandlerCalls

func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.AddGenericHandlerCalls())

func (*ServiceEntryControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ServiceEntryControllerMock) AddGenericRemoveHandlerCalls

func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.AddGenericRemoveHandlerCalls())

func (*ServiceEntryControllerMock) Cache

Cache calls CacheFunc.

func (*ServiceEntryControllerMock) CacheCalls

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

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

len(mockedServiceEntryController.CacheCalls())

func (*ServiceEntryControllerMock) Create

Create calls CreateFunc.

func (*ServiceEntryControllerMock) CreateCalls

func (mock *ServiceEntryControllerMock) CreateCalls() []struct {
	In1 *v1alpha3a.ServiceEntry
}

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

len(mockedServiceEntryController.CreateCalls())

func (*ServiceEntryControllerMock) Delete

func (mock *ServiceEntryControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*ServiceEntryControllerMock) DeleteCalls

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

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

len(mockedServiceEntryController.DeleteCalls())

func (*ServiceEntryControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ServiceEntryControllerMock) EnqueueCalls

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

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

len(mockedServiceEntryController.EnqueueCalls())

func (*ServiceEntryControllerMock) Get

func (mock *ServiceEntryControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)

Get calls GetFunc.

func (*ServiceEntryControllerMock) GetCalls

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

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

len(mockedServiceEntryController.GetCalls())

func (*ServiceEntryControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*ServiceEntryControllerMock) GroupVersionKindCalls

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

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

len(mockedServiceEntryController.GroupVersionKindCalls())

func (*ServiceEntryControllerMock) Informer

Informer calls InformerFunc.

func (*ServiceEntryControllerMock) InformerCalls

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

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

len(mockedServiceEntryController.InformerCalls())

func (*ServiceEntryControllerMock) List

List calls ListFunc.

func (*ServiceEntryControllerMock) ListCalls

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

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

len(mockedServiceEntryController.ListCalls())

func (*ServiceEntryControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*ServiceEntryControllerMock) OnChangeCalls

func (mock *ServiceEntryControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.ServiceEntryHandler
}

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

len(mockedServiceEntryController.OnChangeCalls())

func (*ServiceEntryControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*ServiceEntryControllerMock) OnRemoveCalls

func (mock *ServiceEntryControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.ServiceEntryHandler
}

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

len(mockedServiceEntryController.OnRemoveCalls())

func (*ServiceEntryControllerMock) Patch

func (mock *ServiceEntryControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error)

Patch calls PatchFunc.

func (*ServiceEntryControllerMock) PatchCalls

func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.PatchCalls())

func (*ServiceEntryControllerMock) Update

Update calls UpdateFunc.

func (*ServiceEntryControllerMock) UpdateCalls

func (mock *ServiceEntryControllerMock) UpdateCalls() []struct {
	In1 *v1alpha3a.ServiceEntry
}

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

len(mockedServiceEntryController.UpdateCalls())

func (*ServiceEntryControllerMock) Updater

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

Updater calls UpdaterFunc.

func (*ServiceEntryControllerMock) UpdaterCalls

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

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

len(mockedServiceEntryController.UpdaterCalls())

func (*ServiceEntryControllerMock) Watch

func (mock *ServiceEntryControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ServiceEntryControllerMock) WatchCalls

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

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

len(mockedServiceEntryController.WatchCalls())

type VirtualServiceCacheMock

type VirtualServiceCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1alpha3.VirtualServiceIndexer)

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

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

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

VirtualServiceCacheMock is a mock implementation of VirtualServiceCache.

    func TestSomethingThatUsesVirtualServiceCache(t *testing.T) {

        // make and configure a mocked VirtualServiceCache
        mockedVirtualServiceCache := &VirtualServiceCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1alpha3.VirtualServiceIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1alpha3a.VirtualService, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.VirtualService, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedVirtualServiceCache in code that requires VirtualServiceCache
        // and then make assertions.

    }

func (*VirtualServiceCacheMock) AddIndexer

func (mock *VirtualServiceCacheMock) AddIndexer(indexName string, indexer v1alpha3.VirtualServiceIndexer)

AddIndexer calls AddIndexerFunc.

func (*VirtualServiceCacheMock) AddIndexerCalls

func (mock *VirtualServiceCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1alpha3.VirtualServiceIndexer
}

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

len(mockedVirtualServiceCache.AddIndexerCalls())

func (*VirtualServiceCacheMock) Get

func (mock *VirtualServiceCacheMock) Get(namespace string, name string) (*v1alpha3a.VirtualService, error)

Get calls GetFunc.

func (*VirtualServiceCacheMock) GetByIndex

func (mock *VirtualServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.VirtualService, error)

GetByIndex calls GetByIndexFunc.

func (*VirtualServiceCacheMock) GetByIndexCalls

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

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

len(mockedVirtualServiceCache.GetByIndexCalls())

func (*VirtualServiceCacheMock) GetCalls

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

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

len(mockedVirtualServiceCache.GetCalls())

func (*VirtualServiceCacheMock) List

func (mock *VirtualServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error)

List calls ListFunc.

func (*VirtualServiceCacheMock) ListCalls

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

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

len(mockedVirtualServiceCache.ListCalls())

type VirtualServiceClientMock

type VirtualServiceClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)

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

VirtualServiceClientMock is a mock implementation of VirtualServiceClient.

    func TestSomethingThatUsesVirtualServiceClient(t *testing.T) {

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

        // use mockedVirtualServiceClient in code that requires VirtualServiceClient
        // and then make assertions.

    }

func (*VirtualServiceClientMock) Create

Create calls CreateFunc.

func (*VirtualServiceClientMock) CreateCalls

func (mock *VirtualServiceClientMock) CreateCalls() []struct {
	In1 *v1alpha3a.VirtualService
}

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

len(mockedVirtualServiceClient.CreateCalls())

func (*VirtualServiceClientMock) Delete

func (mock *VirtualServiceClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*VirtualServiceClientMock) DeleteCalls

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

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

len(mockedVirtualServiceClient.DeleteCalls())

func (*VirtualServiceClientMock) Get

func (mock *VirtualServiceClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)

Get calls GetFunc.

func (*VirtualServiceClientMock) GetCalls

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

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

len(mockedVirtualServiceClient.GetCalls())

func (*VirtualServiceClientMock) List

List calls ListFunc.

func (*VirtualServiceClientMock) ListCalls

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

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

len(mockedVirtualServiceClient.ListCalls())

func (*VirtualServiceClientMock) Patch

func (mock *VirtualServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error)

Patch calls PatchFunc.

func (*VirtualServiceClientMock) PatchCalls

func (mock *VirtualServiceClientMock) 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(mockedVirtualServiceClient.PatchCalls())

func (*VirtualServiceClientMock) Update

Update calls UpdateFunc.

func (*VirtualServiceClientMock) UpdateCalls

func (mock *VirtualServiceClientMock) UpdateCalls() []struct {
	In1 *v1alpha3a.VirtualService
}

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

len(mockedVirtualServiceClient.UpdateCalls())

func (*VirtualServiceClientMock) Watch

func (mock *VirtualServiceClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*VirtualServiceClientMock) WatchCalls

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

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

len(mockedVirtualServiceClient.WatchCalls())

type VirtualServiceControllerMock

type VirtualServiceControllerMock 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() v1alpha3.VirtualServiceCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.VirtualService, 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 v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)

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

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

VirtualServiceControllerMock is a mock implementation of VirtualServiceController.

    func TestSomethingThatUsesVirtualServiceController(t *testing.T) {

        // make and configure a mocked VirtualServiceController
        mockedVirtualServiceController := &VirtualServiceControllerMock{
            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() v1alpha3.VirtualServiceCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.VirtualService, 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 v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) {
	               panic("mock out the Update method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedVirtualServiceController in code that requires VirtualServiceController
        // and then make assertions.

    }

func (*VirtualServiceControllerMock) AddGenericHandler

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

AddGenericHandler calls AddGenericHandlerFunc.

func (*VirtualServiceControllerMock) AddGenericHandlerCalls

func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.AddGenericHandlerCalls())

func (*VirtualServiceControllerMock) AddGenericRemoveHandler

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

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*VirtualServiceControllerMock) AddGenericRemoveHandlerCalls

func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.AddGenericRemoveHandlerCalls())

func (*VirtualServiceControllerMock) Cache

Cache calls CacheFunc.

func (*VirtualServiceControllerMock) CacheCalls

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

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

len(mockedVirtualServiceController.CacheCalls())

func (*VirtualServiceControllerMock) Create

Create calls CreateFunc.

func (*VirtualServiceControllerMock) CreateCalls

func (mock *VirtualServiceControllerMock) CreateCalls() []struct {
	In1 *v1alpha3a.VirtualService
}

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

len(mockedVirtualServiceController.CreateCalls())

func (*VirtualServiceControllerMock) Delete

func (mock *VirtualServiceControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*VirtualServiceControllerMock) DeleteCalls

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

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

len(mockedVirtualServiceController.DeleteCalls())

func (*VirtualServiceControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*VirtualServiceControllerMock) EnqueueCalls

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

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

len(mockedVirtualServiceController.EnqueueCalls())

func (*VirtualServiceControllerMock) Get

func (mock *VirtualServiceControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)

Get calls GetFunc.

func (*VirtualServiceControllerMock) GetCalls

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

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

len(mockedVirtualServiceController.GetCalls())

func (*VirtualServiceControllerMock) GroupVersionKind

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

GroupVersionKind calls GroupVersionKindFunc.

func (*VirtualServiceControllerMock) GroupVersionKindCalls

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

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

len(mockedVirtualServiceController.GroupVersionKindCalls())

func (*VirtualServiceControllerMock) Informer

Informer calls InformerFunc.

func (*VirtualServiceControllerMock) InformerCalls

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

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

len(mockedVirtualServiceController.InformerCalls())

func (*VirtualServiceControllerMock) List

List calls ListFunc.

func (*VirtualServiceControllerMock) ListCalls

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

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

len(mockedVirtualServiceController.ListCalls())

func (*VirtualServiceControllerMock) OnChange

OnChange calls OnChangeFunc.

func (*VirtualServiceControllerMock) OnChangeCalls

func (mock *VirtualServiceControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.VirtualServiceHandler
}

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

len(mockedVirtualServiceController.OnChangeCalls())

func (*VirtualServiceControllerMock) OnRemove

OnRemove calls OnRemoveFunc.

func (*VirtualServiceControllerMock) OnRemoveCalls

func (mock *VirtualServiceControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3.VirtualServiceHandler
}

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

len(mockedVirtualServiceController.OnRemoveCalls())

func (*VirtualServiceControllerMock) Patch

func (mock *VirtualServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error)

Patch calls PatchFunc.

func (*VirtualServiceControllerMock) PatchCalls

func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.PatchCalls())

func (*VirtualServiceControllerMock) Update

Update calls UpdateFunc.

func (*VirtualServiceControllerMock) UpdateCalls

func (mock *VirtualServiceControllerMock) UpdateCalls() []struct {
	In1 *v1alpha3a.VirtualService
}

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

len(mockedVirtualServiceController.UpdateCalls())

func (*VirtualServiceControllerMock) Updater

Updater calls UpdaterFunc.

func (*VirtualServiceControllerMock) UpdaterCalls

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

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

len(mockedVirtualServiceController.UpdaterCalls())

func (*VirtualServiceControllerMock) Watch

func (mock *VirtualServiceControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*VirtualServiceControllerMock) WatchCalls

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

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

len(mockedVirtualServiceController.WatchCalls())

Jump to

Keyboard shortcuts

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