fakes

package
v0.0.0-...-4370ff1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 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 DestinationRuleControllerMock

type DestinationRuleControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc)

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1alpha3a.DestinationRuleLister

	// StartFunc mocks the Start method.
	StartFunc func(ctx context.Context, threadiness int) error

	// SyncFunc mocks the Sync method.
	SyncFunc func(ctx context.Context) 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1alpha3a.DestinationRuleLister {
	               panic("mock out the Lister method")
            },
            StartFunc: func(ctx context.Context, threadiness int) error {
	               panic("mock out the Start method")
            },
            SyncFunc: func(ctx context.Context) error {
	               panic("mock out the Sync method")
            },
        }

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

    }

func (*DestinationRuleControllerMock) AddClusterScopedFeatureHandler

func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*DestinationRuleControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1alpha3a.DestinationRuleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedDestinationRuleController.AddClusterScopedFeatureHandlerCalls())

func (*DestinationRuleControllerMock) AddClusterScopedHandler

func (mock *DestinationRuleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*DestinationRuleControllerMock) AddClusterScopedHandlerCalls

func (mock *DestinationRuleControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v1alpha3a.DestinationRuleHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedDestinationRuleController.AddClusterScopedHandlerCalls())

func (*DestinationRuleControllerMock) AddFeatureHandler

func (mock *DestinationRuleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*DestinationRuleControllerMock) AddFeatureHandlerCalls

func (mock *DestinationRuleControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1alpha3a.DestinationRuleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedDestinationRuleController.AddFeatureHandlerCalls())

func (*DestinationRuleControllerMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*DestinationRuleControllerMock) AddHandlerCalls

func (mock *DestinationRuleControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v1alpha3a.DestinationRuleHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedDestinationRuleController.AddHandlerCalls())

func (*DestinationRuleControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*DestinationRuleControllerMock) EnqueueAfter

func (mock *DestinationRuleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*DestinationRuleControllerMock) EnqueueAfterCalls

func (mock *DestinationRuleControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedDestinationRuleController.EnqueueAfterCalls())

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) Generic

Generic calls GenericFunc.

func (*DestinationRuleControllerMock) GenericCalls

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

GenericCalls gets all the calls that were made to Generic. Check the length with:

len(mockedDestinationRuleController.GenericCalls())

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) Lister

Lister calls ListerFunc.

func (*DestinationRuleControllerMock) ListerCalls

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

ListerCalls gets all the calls that were made to Lister. Check the length with:

len(mockedDestinationRuleController.ListerCalls())

func (*DestinationRuleControllerMock) Start

func (mock *DestinationRuleControllerMock) Start(ctx context.Context, threadiness int) error

Start calls StartFunc.

func (*DestinationRuleControllerMock) StartCalls

func (mock *DestinationRuleControllerMock) StartCalls() []struct {
	Ctx         context.Context
	Threadiness int
}

StartCalls gets all the calls that were made to Start. Check the length with:

len(mockedDestinationRuleController.StartCalls())

func (*DestinationRuleControllerMock) Sync

Sync calls SyncFunc.

func (*DestinationRuleControllerMock) SyncCalls

func (mock *DestinationRuleControllerMock) SyncCalls() []struct {
	Ctx context.Context
}

SyncCalls gets all the calls that were made to Sync. Check the length with:

len(mockedDestinationRuleController.SyncCalls())

type DestinationRuleInterfaceMock

type DestinationRuleInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)

	// AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method.
	AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc)

	// AddLifecycleFunc mocks the AddLifecycle method.
	AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v1alpha3a.DestinationRuleController

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

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

	// DeleteCollectionFunc mocks the DeleteCollection method.
	DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

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

	// GetFunc mocks the Get method.
	GetFunc func(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)

	// GetNamespacedFunc mocks the GetNamespaced method.
	GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)

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

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

	// ObjectClientFunc mocks the ObjectClient method.
	ObjectClientFunc func() *objectclient.ObjectClient

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

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

DestinationRuleInterfaceMock is a mock implementation of DestinationRuleInterface.

    func TestSomethingThatUsesDestinationRuleInterface(t *testing.T) {

        // make and configure a mocked DestinationRuleInterface
        mockedDestinationRuleInterface := &DestinationRuleInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v1alpha3a.DestinationRuleController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error {
	               panic("mock out the DeleteCollection method")
            },
            DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
	               panic("mock out the DeleteNamespaced method")
            },
            GetFunc: func(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedDestinationRuleInterface in code that requires DestinationRuleInterface
        // and then make assertions.

    }

func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureHandler

func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1alpha3a.DestinationRuleHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedDestinationRuleInterface.AddClusterScopedFeatureHandlerCalls())

func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1alpha3a.DestinationRuleLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedDestinationRuleInterface.AddClusterScopedFeatureLifecycleCalls())

func (*DestinationRuleInterfaceMock) AddClusterScopedHandler

func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*DestinationRuleInterfaceMock) AddClusterScopedHandlerCalls

func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v1alpha3a.DestinationRuleHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedDestinationRuleInterface.AddClusterScopedHandlerCalls())

func (*DestinationRuleInterfaceMock) AddClusterScopedLifecycle

func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*DestinationRuleInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v1alpha3a.DestinationRuleLifecycle
}

AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:

len(mockedDestinationRuleInterface.AddClusterScopedLifecycleCalls())

func (*DestinationRuleInterfaceMock) AddFeatureHandler

func (mock *DestinationRuleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*DestinationRuleInterfaceMock) AddFeatureHandlerCalls

func (mock *DestinationRuleInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1alpha3a.DestinationRuleHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedDestinationRuleInterface.AddFeatureHandlerCalls())

func (*DestinationRuleInterfaceMock) AddFeatureLifecycle

func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*DestinationRuleInterfaceMock) AddFeatureLifecycleCalls

func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1alpha3a.DestinationRuleLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedDestinationRuleInterface.AddFeatureLifecycleCalls())

func (*DestinationRuleInterfaceMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*DestinationRuleInterfaceMock) AddHandlerCalls

func (mock *DestinationRuleInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3a.DestinationRuleHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedDestinationRuleInterface.AddHandlerCalls())

func (*DestinationRuleInterfaceMock) AddLifecycle

func (mock *DestinationRuleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*DestinationRuleInterfaceMock) AddLifecycleCalls

func (mock *DestinationRuleInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v1alpha3a.DestinationRuleLifecycle
}

AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:

len(mockedDestinationRuleInterface.AddLifecycleCalls())

func (*DestinationRuleInterfaceMock) Controller

Controller calls ControllerFunc.

func (*DestinationRuleInterfaceMock) ControllerCalls

func (mock *DestinationRuleInterfaceMock) ControllerCalls() []struct {
}

ControllerCalls gets all the calls that were made to Controller. Check the length with:

len(mockedDestinationRuleInterface.ControllerCalls())

func (*DestinationRuleInterfaceMock) Create

Create calls CreateFunc.

func (*DestinationRuleInterfaceMock) CreateCalls

func (mock *DestinationRuleInterfaceMock) CreateCalls() []struct {
	In1 *v1alpha3.DestinationRule
}

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

len(mockedDestinationRuleInterface.CreateCalls())

func (*DestinationRuleInterfaceMock) Delete

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

Delete calls DeleteFunc.

func (*DestinationRuleInterfaceMock) DeleteCalls

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

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

len(mockedDestinationRuleInterface.DeleteCalls())

func (*DestinationRuleInterfaceMock) DeleteCollection

func (mock *DestinationRuleInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection calls DeleteCollectionFunc.

func (*DestinationRuleInterfaceMock) DeleteCollectionCalls

func (mock *DestinationRuleInterfaceMock) DeleteCollectionCalls() []struct {
	DeleteOpts *v1.DeleteOptions
	ListOpts   v1.ListOptions
}

DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:

len(mockedDestinationRuleInterface.DeleteCollectionCalls())

func (*DestinationRuleInterfaceMock) DeleteNamespaced

func (mock *DestinationRuleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error

DeleteNamespaced calls DeleteNamespacedFunc.

func (*DestinationRuleInterfaceMock) DeleteNamespacedCalls

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

DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:

len(mockedDestinationRuleInterface.DeleteNamespacedCalls())

func (*DestinationRuleInterfaceMock) Get

Get calls GetFunc.

func (*DestinationRuleInterfaceMock) GetCalls

func (mock *DestinationRuleInterfaceMock) GetCalls() []struct {
	Name string
	Opts v1.GetOptions
}

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

len(mockedDestinationRuleInterface.GetCalls())

func (*DestinationRuleInterfaceMock) GetNamespaced

func (mock *DestinationRuleInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)

GetNamespaced calls GetNamespacedFunc.

func (*DestinationRuleInterfaceMock) GetNamespacedCalls

func (mock *DestinationRuleInterfaceMock) GetNamespacedCalls() []struct {
	Namespace string
	Name      string
	Opts      v1.GetOptions
}

GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:

len(mockedDestinationRuleInterface.GetNamespacedCalls())

func (*DestinationRuleInterfaceMock) List

List calls ListFunc.

func (*DestinationRuleInterfaceMock) ListCalls

func (mock *DestinationRuleInterfaceMock) ListCalls() []struct {
	Opts v1.ListOptions
}

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

len(mockedDestinationRuleInterface.ListCalls())

func (*DestinationRuleInterfaceMock) ListNamespaced

func (mock *DestinationRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)

ListNamespaced calls ListNamespacedFunc.

func (*DestinationRuleInterfaceMock) ListNamespacedCalls

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

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedDestinationRuleInterface.ListNamespacedCalls())

func (*DestinationRuleInterfaceMock) ObjectClient

ObjectClient calls ObjectClientFunc.

func (*DestinationRuleInterfaceMock) ObjectClientCalls

func (mock *DestinationRuleInterfaceMock) ObjectClientCalls() []struct {
}

ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:

len(mockedDestinationRuleInterface.ObjectClientCalls())

func (*DestinationRuleInterfaceMock) Update

Update calls UpdateFunc.

func (*DestinationRuleInterfaceMock) UpdateCalls

func (mock *DestinationRuleInterfaceMock) UpdateCalls() []struct {
	In1 *v1alpha3.DestinationRule
}

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

len(mockedDestinationRuleInterface.UpdateCalls())

func (*DestinationRuleInterfaceMock) Watch

Watch calls WatchFunc.

func (*DestinationRuleInterfaceMock) WatchCalls

func (mock *DestinationRuleInterfaceMock) WatchCalls() []struct {
	Opts v1.ListOptions
}

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

len(mockedDestinationRuleInterface.WatchCalls())

type DestinationRuleListerMock

type DestinationRuleListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1alpha3.DestinationRule, error)

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

DestinationRuleListerMock is a mock implementation of DestinationRuleLister.

    func TestSomethingThatUsesDestinationRuleLister(t *testing.T) {

        // make and configure a mocked DestinationRuleLister
        mockedDestinationRuleLister := &DestinationRuleListerMock{
            GetFunc: func(namespace string, name string) (*v1alpha3.DestinationRule, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedDestinationRuleLister in code that requires DestinationRuleLister
        // and then make assertions.

    }

func (*DestinationRuleListerMock) Get

func (mock *DestinationRuleListerMock) Get(namespace string, name string) (*v1alpha3.DestinationRule, error)

Get calls GetFunc.

func (*DestinationRuleListerMock) GetCalls

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

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

len(mockedDestinationRuleLister.GetCalls())

func (*DestinationRuleListerMock) List

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

List calls ListFunc.

func (*DestinationRuleListerMock) ListCalls

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

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

len(mockedDestinationRuleLister.ListCalls())

type DestinationRulesGetterMock

type DestinationRulesGetterMock struct {
	// DestinationRulesFunc mocks the DestinationRules method.
	DestinationRulesFunc func(namespace string) v1alpha3a.DestinationRuleInterface
	// contains filtered or unexported fields
}

DestinationRulesGetterMock is a mock implementation of DestinationRulesGetter.

    func TestSomethingThatUsesDestinationRulesGetter(t *testing.T) {

        // make and configure a mocked DestinationRulesGetter
        mockedDestinationRulesGetter := &DestinationRulesGetterMock{
            DestinationRulesFunc: func(namespace string) v1alpha3a.DestinationRuleInterface {
	               panic("mock out the DestinationRules method")
            },
        }

        // use mockedDestinationRulesGetter in code that requires DestinationRulesGetter
        // and then make assertions.

    }

func (*DestinationRulesGetterMock) DestinationRules

func (mock *DestinationRulesGetterMock) DestinationRules(namespace string) v1alpha3a.DestinationRuleInterface

DestinationRules calls DestinationRulesFunc.

func (*DestinationRulesGetterMock) DestinationRulesCalls

func (mock *DestinationRulesGetterMock) DestinationRulesCalls() []struct {
	Namespace string
}

DestinationRulesCalls gets all the calls that were made to DestinationRules. Check the length with:

len(mockedDestinationRulesGetter.DestinationRulesCalls())

type VirtualServiceControllerMock

type VirtualServiceControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc)

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v1alpha3a.VirtualServiceLister

	// StartFunc mocks the Start method.
	StartFunc func(ctx context.Context, threadiness int) error

	// SyncFunc mocks the Sync method.
	SyncFunc func(ctx context.Context) 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{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v1alpha3a.VirtualServiceLister {
	               panic("mock out the Lister method")
            },
            StartFunc: func(ctx context.Context, threadiness int) error {
	               panic("mock out the Start method")
            },
            SyncFunc: func(ctx context.Context) error {
	               panic("mock out the Sync method")
            },
        }

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

    }

func (*VirtualServiceControllerMock) AddClusterScopedFeatureHandler

func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*VirtualServiceControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1alpha3a.VirtualServiceHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedVirtualServiceController.AddClusterScopedFeatureHandlerCalls())

func (*VirtualServiceControllerMock) AddClusterScopedHandler

func (mock *VirtualServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*VirtualServiceControllerMock) AddClusterScopedHandlerCalls

func (mock *VirtualServiceControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v1alpha3a.VirtualServiceHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedVirtualServiceController.AddClusterScopedHandlerCalls())

func (*VirtualServiceControllerMock) AddFeatureHandler

func (mock *VirtualServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*VirtualServiceControllerMock) AddFeatureHandlerCalls

func (mock *VirtualServiceControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1alpha3a.VirtualServiceHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedVirtualServiceController.AddFeatureHandlerCalls())

func (*VirtualServiceControllerMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*VirtualServiceControllerMock) AddHandlerCalls

func (mock *VirtualServiceControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v1alpha3a.VirtualServiceHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedVirtualServiceController.AddHandlerCalls())

func (*VirtualServiceControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*VirtualServiceControllerMock) EnqueueAfter

func (mock *VirtualServiceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*VirtualServiceControllerMock) EnqueueAfterCalls

func (mock *VirtualServiceControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedVirtualServiceController.EnqueueAfterCalls())

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) Generic

Generic calls GenericFunc.

func (*VirtualServiceControllerMock) GenericCalls

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

GenericCalls gets all the calls that were made to Generic. Check the length with:

len(mockedVirtualServiceController.GenericCalls())

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) Lister

Lister calls ListerFunc.

func (*VirtualServiceControllerMock) ListerCalls

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

ListerCalls gets all the calls that were made to Lister. Check the length with:

len(mockedVirtualServiceController.ListerCalls())

func (*VirtualServiceControllerMock) Start

func (mock *VirtualServiceControllerMock) Start(ctx context.Context, threadiness int) error

Start calls StartFunc.

func (*VirtualServiceControllerMock) StartCalls

func (mock *VirtualServiceControllerMock) StartCalls() []struct {
	Ctx         context.Context
	Threadiness int
}

StartCalls gets all the calls that were made to Start. Check the length with:

len(mockedVirtualServiceController.StartCalls())

func (*VirtualServiceControllerMock) Sync

Sync calls SyncFunc.

func (*VirtualServiceControllerMock) SyncCalls

func (mock *VirtualServiceControllerMock) SyncCalls() []struct {
	Ctx context.Context
}

SyncCalls gets all the calls that were made to Sync. Check the length with:

len(mockedVirtualServiceController.SyncCalls())

type VirtualServiceInterfaceMock

type VirtualServiceInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)

	// AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method.
	AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc)

	// AddLifecycleFunc mocks the AddLifecycle method.
	AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v1alpha3a.VirtualServiceController

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

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

	// DeleteCollectionFunc mocks the DeleteCollection method.
	DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

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

	// GetFunc mocks the Get method.
	GetFunc func(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)

	// GetNamespacedFunc mocks the GetNamespaced method.
	GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)

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

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

	// ObjectClientFunc mocks the ObjectClient method.
	ObjectClientFunc func() *objectclient.ObjectClient

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

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

VirtualServiceInterfaceMock is a mock implementation of VirtualServiceInterface.

    func TestSomethingThatUsesVirtualServiceInterface(t *testing.T) {

        // make and configure a mocked VirtualServiceInterface
        mockedVirtualServiceInterface := &VirtualServiceInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v1alpha3a.VirtualServiceController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error {
	               panic("mock out the DeleteCollection method")
            },
            DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
	               panic("mock out the DeleteNamespaced method")
            },
            GetFunc: func(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedVirtualServiceInterface in code that requires VirtualServiceInterface
        // and then make assertions.

    }

func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureHandler

func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1alpha3a.VirtualServiceHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedVirtualServiceInterface.AddClusterScopedFeatureHandlerCalls())

func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1alpha3a.VirtualServiceLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedVirtualServiceInterface.AddClusterScopedFeatureLifecycleCalls())

func (*VirtualServiceInterfaceMock) AddClusterScopedHandler

func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*VirtualServiceInterfaceMock) AddClusterScopedHandlerCalls

func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v1alpha3a.VirtualServiceHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedVirtualServiceInterface.AddClusterScopedHandlerCalls())

func (*VirtualServiceInterfaceMock) AddClusterScopedLifecycle

func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*VirtualServiceInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v1alpha3a.VirtualServiceLifecycle
}

AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:

len(mockedVirtualServiceInterface.AddClusterScopedLifecycleCalls())

func (*VirtualServiceInterfaceMock) AddFeatureHandler

func (mock *VirtualServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*VirtualServiceInterfaceMock) AddFeatureHandlerCalls

func (mock *VirtualServiceInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1alpha3a.VirtualServiceHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedVirtualServiceInterface.AddFeatureHandlerCalls())

func (*VirtualServiceInterfaceMock) AddFeatureLifecycle

func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*VirtualServiceInterfaceMock) AddFeatureLifecycleCalls

func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1alpha3a.VirtualServiceLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedVirtualServiceInterface.AddFeatureLifecycleCalls())

func (*VirtualServiceInterfaceMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*VirtualServiceInterfaceMock) AddHandlerCalls

func (mock *VirtualServiceInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1alpha3a.VirtualServiceHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedVirtualServiceInterface.AddHandlerCalls())

func (*VirtualServiceInterfaceMock) AddLifecycle

func (mock *VirtualServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*VirtualServiceInterfaceMock) AddLifecycleCalls

func (mock *VirtualServiceInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v1alpha3a.VirtualServiceLifecycle
}

AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:

len(mockedVirtualServiceInterface.AddLifecycleCalls())

func (*VirtualServiceInterfaceMock) Controller

Controller calls ControllerFunc.

func (*VirtualServiceInterfaceMock) ControllerCalls

func (mock *VirtualServiceInterfaceMock) ControllerCalls() []struct {
}

ControllerCalls gets all the calls that were made to Controller. Check the length with:

len(mockedVirtualServiceInterface.ControllerCalls())

func (*VirtualServiceInterfaceMock) Create

Create calls CreateFunc.

func (*VirtualServiceInterfaceMock) CreateCalls

func (mock *VirtualServiceInterfaceMock) CreateCalls() []struct {
	In1 *v1alpha3.VirtualService
}

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

len(mockedVirtualServiceInterface.CreateCalls())

func (*VirtualServiceInterfaceMock) Delete

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

Delete calls DeleteFunc.

func (*VirtualServiceInterfaceMock) DeleteCalls

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

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

len(mockedVirtualServiceInterface.DeleteCalls())

func (*VirtualServiceInterfaceMock) DeleteCollection

func (mock *VirtualServiceInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection calls DeleteCollectionFunc.

func (*VirtualServiceInterfaceMock) DeleteCollectionCalls

func (mock *VirtualServiceInterfaceMock) DeleteCollectionCalls() []struct {
	DeleteOpts *v1.DeleteOptions
	ListOpts   v1.ListOptions
}

DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:

len(mockedVirtualServiceInterface.DeleteCollectionCalls())

func (*VirtualServiceInterfaceMock) DeleteNamespaced

func (mock *VirtualServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error

DeleteNamespaced calls DeleteNamespacedFunc.

func (*VirtualServiceInterfaceMock) DeleteNamespacedCalls

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

DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:

len(mockedVirtualServiceInterface.DeleteNamespacedCalls())

func (*VirtualServiceInterfaceMock) Get

Get calls GetFunc.

func (*VirtualServiceInterfaceMock) GetCalls

func (mock *VirtualServiceInterfaceMock) GetCalls() []struct {
	Name string
	Opts v1.GetOptions
}

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

len(mockedVirtualServiceInterface.GetCalls())

func (*VirtualServiceInterfaceMock) GetNamespaced

func (mock *VirtualServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)

GetNamespaced calls GetNamespacedFunc.

func (*VirtualServiceInterfaceMock) GetNamespacedCalls

func (mock *VirtualServiceInterfaceMock) GetNamespacedCalls() []struct {
	Namespace string
	Name      string
	Opts      v1.GetOptions
}

GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:

len(mockedVirtualServiceInterface.GetNamespacedCalls())

func (*VirtualServiceInterfaceMock) List

List calls ListFunc.

func (*VirtualServiceInterfaceMock) ListCalls

func (mock *VirtualServiceInterfaceMock) ListCalls() []struct {
	Opts v1.ListOptions
}

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

len(mockedVirtualServiceInterface.ListCalls())

func (*VirtualServiceInterfaceMock) ListNamespaced

func (mock *VirtualServiceInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)

ListNamespaced calls ListNamespacedFunc.

func (*VirtualServiceInterfaceMock) ListNamespacedCalls

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

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedVirtualServiceInterface.ListNamespacedCalls())

func (*VirtualServiceInterfaceMock) ObjectClient

ObjectClient calls ObjectClientFunc.

func (*VirtualServiceInterfaceMock) ObjectClientCalls

func (mock *VirtualServiceInterfaceMock) ObjectClientCalls() []struct {
}

ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:

len(mockedVirtualServiceInterface.ObjectClientCalls())

func (*VirtualServiceInterfaceMock) Update

Update calls UpdateFunc.

func (*VirtualServiceInterfaceMock) UpdateCalls

func (mock *VirtualServiceInterfaceMock) UpdateCalls() []struct {
	In1 *v1alpha3.VirtualService
}

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

len(mockedVirtualServiceInterface.UpdateCalls())

func (*VirtualServiceInterfaceMock) Watch

Watch calls WatchFunc.

func (*VirtualServiceInterfaceMock) WatchCalls

func (mock *VirtualServiceInterfaceMock) WatchCalls() []struct {
	Opts v1.ListOptions
}

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

len(mockedVirtualServiceInterface.WatchCalls())

type VirtualServiceListerMock

type VirtualServiceListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1alpha3.VirtualService, error)

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

VirtualServiceListerMock is a mock implementation of VirtualServiceLister.

    func TestSomethingThatUsesVirtualServiceLister(t *testing.T) {

        // make and configure a mocked VirtualServiceLister
        mockedVirtualServiceLister := &VirtualServiceListerMock{
            GetFunc: func(namespace string, name string) (*v1alpha3.VirtualService, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedVirtualServiceLister in code that requires VirtualServiceLister
        // and then make assertions.

    }

func (*VirtualServiceListerMock) Get

func (mock *VirtualServiceListerMock) Get(namespace string, name string) (*v1alpha3.VirtualService, error)

Get calls GetFunc.

func (*VirtualServiceListerMock) GetCalls

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

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

len(mockedVirtualServiceLister.GetCalls())

func (*VirtualServiceListerMock) List

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

List calls ListFunc.

func (*VirtualServiceListerMock) ListCalls

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

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

len(mockedVirtualServiceLister.ListCalls())

type VirtualServicesGetterMock

type VirtualServicesGetterMock struct {
	// VirtualServicesFunc mocks the VirtualServices method.
	VirtualServicesFunc func(namespace string) v1alpha3a.VirtualServiceInterface
	// contains filtered or unexported fields
}

VirtualServicesGetterMock is a mock implementation of VirtualServicesGetter.

    func TestSomethingThatUsesVirtualServicesGetter(t *testing.T) {

        // make and configure a mocked VirtualServicesGetter
        mockedVirtualServicesGetter := &VirtualServicesGetterMock{
            VirtualServicesFunc: func(namespace string) v1alpha3a.VirtualServiceInterface {
	               panic("mock out the VirtualServices method")
            },
        }

        // use mockedVirtualServicesGetter in code that requires VirtualServicesGetter
        // and then make assertions.

    }

func (*VirtualServicesGetterMock) VirtualServices

func (mock *VirtualServicesGetterMock) VirtualServices(namespace string) v1alpha3a.VirtualServiceInterface

VirtualServices calls VirtualServicesFunc.

func (*VirtualServicesGetterMock) VirtualServicesCalls

func (mock *VirtualServicesGetterMock) VirtualServicesCalls() []struct {
	Namespace string
}

VirtualServicesCalls gets all the calls that were made to VirtualServices. Check the length with:

len(mockedVirtualServicesGetter.VirtualServicesCalls())

Jump to

Keyboard shortcuts

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