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 IngressControllerMock

type IngressControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta1a.IngressHandlerFunc)

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

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

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

	// 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() v1beta1a.IngressLister

	// 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
}

IngressControllerMock is a mock implementation of IngressController.

    func TestSomethingThatUsesIngressController(t *testing.T) {

        // make and configure a mocked IngressController
        mockedIngressController := &IngressControllerMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v1beta1a.IngressHandlerFunc)  {
	               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() v1beta1a.IngressLister {
	               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 mockedIngressController in code that requires IngressController
        // and then make assertions.

    }

func (*IngressControllerMock) AddClusterScopedFeatureHandler

func (mock *IngressControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta1a.IngressHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*IngressControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *IngressControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressController.AddClusterScopedFeatureHandlerCalls())

func (*IngressControllerMock) AddClusterScopedHandler

func (mock *IngressControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta1a.IngressHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*IngressControllerMock) AddClusterScopedHandlerCalls

func (mock *IngressControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressController.AddClusterScopedHandlerCalls())

func (*IngressControllerMock) AddFeatureHandler

func (mock *IngressControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta1a.IngressHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*IngressControllerMock) AddFeatureHandlerCalls

func (mock *IngressControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressController.AddFeatureHandlerCalls())

func (*IngressControllerMock) AddHandler

func (mock *IngressControllerMock) AddHandler(ctx context.Context, name string, handler v1beta1a.IngressHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*IngressControllerMock) AddHandlerCalls

func (mock *IngressControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressController.AddHandlerCalls())

func (*IngressControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*IngressControllerMock) EnqueueAfter

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

EnqueueAfter calls EnqueueAfterFunc.

func (*IngressControllerMock) EnqueueAfterCalls

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

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

len(mockedIngressController.EnqueueAfterCalls())

func (*IngressControllerMock) EnqueueCalls

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

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

len(mockedIngressController.EnqueueCalls())

func (*IngressControllerMock) Generic

Generic calls GenericFunc.

func (*IngressControllerMock) GenericCalls

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

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

len(mockedIngressController.GenericCalls())

func (*IngressControllerMock) Informer

Informer calls InformerFunc.

func (*IngressControllerMock) InformerCalls

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

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

len(mockedIngressController.InformerCalls())

func (*IngressControllerMock) Lister

Lister calls ListerFunc.

func (*IngressControllerMock) ListerCalls

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

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

len(mockedIngressController.ListerCalls())

func (*IngressControllerMock) Start

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

Start calls StartFunc.

func (*IngressControllerMock) StartCalls

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

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

len(mockedIngressController.StartCalls())

func (*IngressControllerMock) Sync

func (mock *IngressControllerMock) Sync(ctx context.Context) error

Sync calls SyncFunc.

func (*IngressControllerMock) SyncCalls

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

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

len(mockedIngressController.SyncCalls())

type IngressInterfaceMock

type IngressInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.IngressHandlerFunc)

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

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

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

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

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

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

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

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v1beta1a.IngressController

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

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

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1beta1.Ingress) (*v1beta1.Ingress, error)

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

IngressInterfaceMock is a mock implementation of IngressInterface.

    func TestSomethingThatUsesIngressInterface(t *testing.T) {

        // make and configure a mocked IngressInterface
        mockedIngressInterface := &IngressInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta1a.IngressLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.IngressLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta1a.IngressLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v1beta1a.IngressHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta1a.IngressLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v1beta1a.IngressController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v1beta1.Ingress) (*v1beta1.Ingress, 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) (*v1beta1.Ingress, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta1.Ingress, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v1beta1a.IngressList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1beta1a.IngressList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v1beta1.Ingress) (*v1beta1.Ingress, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedIngressInterface in code that requires IngressInterface
        // and then make assertions.

    }

func (*IngressInterfaceMock) AddClusterScopedFeatureHandler

func (mock *IngressInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.IngressHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*IngressInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *IngressInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressInterface.AddClusterScopedFeatureHandlerCalls())

func (*IngressInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *IngressInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta1a.IngressLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*IngressInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *IngressInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1beta1a.IngressLifecycle
}

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

len(mockedIngressInterface.AddClusterScopedFeatureLifecycleCalls())

func (*IngressInterfaceMock) AddClusterScopedHandler

func (mock *IngressInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta1a.IngressHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*IngressInterfaceMock) AddClusterScopedHandlerCalls

func (mock *IngressInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressInterface.AddClusterScopedHandlerCalls())

func (*IngressInterfaceMock) AddClusterScopedLifecycle

func (mock *IngressInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.IngressLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*IngressInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *IngressInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v1beta1a.IngressLifecycle
}

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

len(mockedIngressInterface.AddClusterScopedLifecycleCalls())

func (*IngressInterfaceMock) AddFeatureHandler

func (mock *IngressInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta1a.IngressHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*IngressInterfaceMock) AddFeatureHandlerCalls

func (mock *IngressInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressInterface.AddFeatureHandlerCalls())

func (*IngressInterfaceMock) AddFeatureLifecycle

func (mock *IngressInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta1a.IngressLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*IngressInterfaceMock) AddFeatureLifecycleCalls

func (mock *IngressInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1beta1a.IngressLifecycle
}

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

len(mockedIngressInterface.AddFeatureLifecycleCalls())

func (*IngressInterfaceMock) AddHandler

func (mock *IngressInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta1a.IngressHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*IngressInterfaceMock) AddHandlerCalls

func (mock *IngressInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1beta1a.IngressHandlerFunc
}

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

len(mockedIngressInterface.AddHandlerCalls())

func (*IngressInterfaceMock) AddLifecycle

func (mock *IngressInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta1a.IngressLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*IngressInterfaceMock) AddLifecycleCalls

func (mock *IngressInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v1beta1a.IngressLifecycle
}

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

len(mockedIngressInterface.AddLifecycleCalls())

func (*IngressInterfaceMock) Controller

func (mock *IngressInterfaceMock) Controller() v1beta1a.IngressController

Controller calls ControllerFunc.

func (*IngressInterfaceMock) ControllerCalls

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

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

len(mockedIngressInterface.ControllerCalls())

func (*IngressInterfaceMock) Create

func (mock *IngressInterfaceMock) Create(in1 *v1beta1.Ingress) (*v1beta1.Ingress, error)

Create calls CreateFunc.

func (*IngressInterfaceMock) CreateCalls

func (mock *IngressInterfaceMock) CreateCalls() []struct {
	In1 *v1beta1.Ingress
}

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

len(mockedIngressInterface.CreateCalls())

func (*IngressInterfaceMock) Delete

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

Delete calls DeleteFunc.

func (*IngressInterfaceMock) DeleteCalls

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

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

len(mockedIngressInterface.DeleteCalls())

func (*IngressInterfaceMock) DeleteCollection

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

DeleteCollection calls DeleteCollectionFunc.

func (*IngressInterfaceMock) DeleteCollectionCalls

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

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

len(mockedIngressInterface.DeleteCollectionCalls())

func (*IngressInterfaceMock) DeleteNamespaced

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

DeleteNamespaced calls DeleteNamespacedFunc.

func (*IngressInterfaceMock) DeleteNamespacedCalls

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

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

len(mockedIngressInterface.DeleteNamespacedCalls())

func (*IngressInterfaceMock) Get

func (mock *IngressInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta1.Ingress, error)

Get calls GetFunc.

func (*IngressInterfaceMock) GetCalls

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

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

len(mockedIngressInterface.GetCalls())

func (*IngressInterfaceMock) GetNamespaced

func (mock *IngressInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta1.Ingress, error)

GetNamespaced calls GetNamespacedFunc.

func (*IngressInterfaceMock) GetNamespacedCalls

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

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

len(mockedIngressInterface.GetNamespacedCalls())

func (*IngressInterfaceMock) List

List calls ListFunc.

func (*IngressInterfaceMock) ListCalls

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

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

len(mockedIngressInterface.ListCalls())

func (*IngressInterfaceMock) ListNamespaced

func (mock *IngressInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1beta1a.IngressList, error)

ListNamespaced calls ListNamespacedFunc.

func (*IngressInterfaceMock) ListNamespacedCalls

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

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

len(mockedIngressInterface.ListNamespacedCalls())

func (*IngressInterfaceMock) ObjectClient

func (mock *IngressInterfaceMock) ObjectClient() *objectclient.ObjectClient

ObjectClient calls ObjectClientFunc.

func (*IngressInterfaceMock) ObjectClientCalls

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

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

len(mockedIngressInterface.ObjectClientCalls())

func (*IngressInterfaceMock) Update

func (mock *IngressInterfaceMock) Update(in1 *v1beta1.Ingress) (*v1beta1.Ingress, error)

Update calls UpdateFunc.

func (*IngressInterfaceMock) UpdateCalls

func (mock *IngressInterfaceMock) UpdateCalls() []struct {
	In1 *v1beta1.Ingress
}

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

len(mockedIngressInterface.UpdateCalls())

func (*IngressInterfaceMock) Watch

func (mock *IngressInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*IngressInterfaceMock) WatchCalls

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

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

len(mockedIngressInterface.WatchCalls())

type IngressListerMock

type IngressListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1beta1.Ingress, error)

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

IngressListerMock is a mock implementation of IngressLister.

    func TestSomethingThatUsesIngressLister(t *testing.T) {

        // make and configure a mocked IngressLister
        mockedIngressLister := &IngressListerMock{
            GetFunc: func(namespace string, name string) (*v1beta1.Ingress, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta1.Ingress, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedIngressLister in code that requires IngressLister
        // and then make assertions.

    }

func (*IngressListerMock) Get

func (mock *IngressListerMock) Get(namespace string, name string) (*v1beta1.Ingress, error)

Get calls GetFunc.

func (*IngressListerMock) GetCalls

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

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

len(mockedIngressLister.GetCalls())

func (*IngressListerMock) List

func (mock *IngressListerMock) List(namespace string, selector labels.Selector) ([]*v1beta1.Ingress, error)

List calls ListFunc.

func (*IngressListerMock) ListCalls

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

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

len(mockedIngressLister.ListCalls())

type IngressesGetterMock

type IngressesGetterMock struct {
	// IngressesFunc mocks the Ingresses method.
	IngressesFunc func(namespace string) v1beta1a.IngressInterface
	// contains filtered or unexported fields
}

IngressesGetterMock is a mock implementation of IngressesGetter.

    func TestSomethingThatUsesIngressesGetter(t *testing.T) {

        // make and configure a mocked IngressesGetter
        mockedIngressesGetter := &IngressesGetterMock{
            IngressesFunc: func(namespace string) v1beta1a.IngressInterface {
	               panic("mock out the Ingresses method")
            },
        }

        // use mockedIngressesGetter in code that requires IngressesGetter
        // and then make assertions.

    }

func (*IngressesGetterMock) Ingresses

func (mock *IngressesGetterMock) Ingresses(namespace string) v1beta1a.IngressInterface

Ingresses calls IngressesFunc.

func (*IngressesGetterMock) IngressesCalls

func (mock *IngressesGetterMock) IngressesCalls() []struct {
	Namespace string
}

IngressesCalls gets all the calls that were made to Ingresses. Check the length with:

len(mockedIngressesGetter.IngressesCalls())

Jump to

Keyboard shortcuts

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