mocks

package
v0.0.0-...-893bab6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeWatchFactory

type NodeWatchFactory struct {
	mock.Mock
}

NodeWatchFactory is an autogenerated mock type for the NodeWatchFactory type

func NewNodeWatchFactory

func NewNodeWatchFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeWatchFactory

NewNodeWatchFactory creates a new instance of NodeWatchFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NodeWatchFactory) APBRouteInformer

APBRouteInformer provides a mock function with given fields:

func (*NodeWatchFactory) AddFilteredEndpointSliceHandler

func (_m *NodeWatchFactory) AddFilteredEndpointSliceHandler(namespace string, sel labels.Selector, handlerFuncs cache.ResourceEventHandler, processExisting func([]interface{}) error) (*factory.Handler, error)

AddFilteredEndpointSliceHandler provides a mock function with given fields: namespace, sel, handlerFuncs, processExisting

func (*NodeWatchFactory) AddFilteredServiceHandler

func (_m *NodeWatchFactory) AddFilteredServiceHandler(namespace string, handlerFuncs cache.ResourceEventHandler, processExisting func([]interface{}) error) (*factory.Handler, error)

AddFilteredServiceHandler provides a mock function with given fields: namespace, handlerFuncs, processExisting

func (*NodeWatchFactory) AddNamespaceHandler

func (_m *NodeWatchFactory) AddNamespaceHandler(handlerFuncs cache.ResourceEventHandler, processExisting func([]interface{}) error) (*factory.Handler, error)

AddNamespaceHandler provides a mock function with given fields: handlerFuncs, processExisting

func (*NodeWatchFactory) AddPodHandler

func (_m *NodeWatchFactory) AddPodHandler(handlerFuncs cache.ResourceEventHandler, processExisting func([]interface{}) error) (*factory.Handler, error)

AddPodHandler provides a mock function with given fields: handlerFuncs, processExisting

func (*NodeWatchFactory) AddServiceHandler

func (_m *NodeWatchFactory) AddServiceHandler(handlerFuncs cache.ResourceEventHandler, processExisting func([]interface{}) error) (*factory.Handler, error)

AddServiceHandler provides a mock function with given fields: handlerFuncs, processExisting

func (*NodeWatchFactory) ClusterUserDefinedNetworkInformer

func (_m *NodeWatchFactory) ClusterUserDefinedNetworkInformer() userdefinednetworkv1.ClusterUserDefinedNetworkInformer

ClusterUserDefinedNetworkInformer provides a mock function with given fields:

func (*NodeWatchFactory) EgressIPInformer

func (_m *NodeWatchFactory) EgressIPInformer() egressipv1.EgressIPInformer

EgressIPInformer provides a mock function with given fields:

func (*NodeWatchFactory) GetAllPods

func (_m *NodeWatchFactory) GetAllPods() ([]*corev1.Pod, error)

GetAllPods provides a mock function with given fields:

func (*NodeWatchFactory) GetEndpointSlice

func (_m *NodeWatchFactory) GetEndpointSlice(namespace string, name string) (*discoveryv1.EndpointSlice, error)

GetEndpointSlice provides a mock function with given fields: namespace, name

func (*NodeWatchFactory) GetNamespace

func (_m *NodeWatchFactory) GetNamespace(name string) (*corev1.Namespace, error)

GetNamespace provides a mock function with given fields: name

func (*NodeWatchFactory) GetNamespaces

func (_m *NodeWatchFactory) GetNamespaces() ([]*corev1.Namespace, error)

GetNamespaces provides a mock function with given fields:

func (*NodeWatchFactory) GetNode

func (_m *NodeWatchFactory) GetNode(name string) (*corev1.Node, error)

GetNode provides a mock function with given fields: name

func (*NodeWatchFactory) GetNodes

func (_m *NodeWatchFactory) GetNodes() ([]*corev1.Node, error)

GetNodes provides a mock function with given fields:

func (*NodeWatchFactory) GetPod

func (_m *NodeWatchFactory) GetPod(namespace string, name string) (*corev1.Pod, error)

GetPod provides a mock function with given fields: namespace, name

func (*NodeWatchFactory) GetPods

func (_m *NodeWatchFactory) GetPods(namespace string) ([]*corev1.Pod, error)

GetPods provides a mock function with given fields: namespace

func (*NodeWatchFactory) GetService

func (_m *NodeWatchFactory) GetService(namespace string, name string) (*corev1.Service, error)

GetService provides a mock function with given fields: namespace, name

func (*NodeWatchFactory) GetServiceEndpointSlices

func (_m *NodeWatchFactory) GetServiceEndpointSlices(namespace string, svcName string, network string) ([]*discoveryv1.EndpointSlice, error)

GetServiceEndpointSlices provides a mock function with given fields: namespace, svcName, network

func (*NodeWatchFactory) GetServices

func (_m *NodeWatchFactory) GetServices() ([]*corev1.Service, error)

GetServices provides a mock function with given fields:

func (*NodeWatchFactory) ListNodes

func (_m *NodeWatchFactory) ListNodes(selector labels.Selector) ([]*corev1.Node, error)

ListNodes provides a mock function with given fields: selector

func (*NodeWatchFactory) LocalPodInformer

func (_m *NodeWatchFactory) LocalPodInformer() cache.SharedIndexInformer

LocalPodInformer provides a mock function with given fields:

func (*NodeWatchFactory) NADInformer

NADInformer provides a mock function with given fields:

func (*NodeWatchFactory) NamespaceInformer

func (_m *NodeWatchFactory) NamespaceInformer() informerscorev1.NamespaceInformer

NamespaceInformer provides a mock function with given fields:

func (*NodeWatchFactory) NodeCoreInformer

func (_m *NodeWatchFactory) NodeCoreInformer() informerscorev1.NodeInformer

NodeCoreInformer provides a mock function with given fields:

func (*NodeWatchFactory) NodeInformer

func (_m *NodeWatchFactory) NodeInformer() cache.SharedIndexInformer

NodeInformer provides a mock function with given fields:

func (*NodeWatchFactory) PodCoreInformer

func (_m *NodeWatchFactory) PodCoreInformer() informerscorev1.PodInformer

PodCoreInformer provides a mock function with given fields:

func (*NodeWatchFactory) RemoveEndpointSliceHandler

func (_m *NodeWatchFactory) RemoveEndpointSliceHandler(handler *factory.Handler)

RemoveEndpointSliceHandler provides a mock function with given fields: handler

func (*NodeWatchFactory) RemoveNamespaceHandler

func (_m *NodeWatchFactory) RemoveNamespaceHandler(handler *factory.Handler)

RemoveNamespaceHandler provides a mock function with given fields: handler

func (*NodeWatchFactory) RemovePodHandler

func (_m *NodeWatchFactory) RemovePodHandler(handler *factory.Handler)

RemovePodHandler provides a mock function with given fields: handler

func (*NodeWatchFactory) RemoveServiceHandler

func (_m *NodeWatchFactory) RemoveServiceHandler(handler *factory.Handler)

RemoveServiceHandler provides a mock function with given fields: handler

func (*NodeWatchFactory) RouteAdvertisementsInformer

func (_m *NodeWatchFactory) RouteAdvertisementsInformer() routeadvertisementsv1.RouteAdvertisementsInformer

RouteAdvertisementsInformer provides a mock function with given fields:

func (*NodeWatchFactory) Shutdown

func (_m *NodeWatchFactory) Shutdown()

Shutdown provides a mock function with given fields:

func (*NodeWatchFactory) Start

func (_m *NodeWatchFactory) Start() error

Start provides a mock function with given fields:

func (*NodeWatchFactory) UserDefinedNetworkInformer

func (_m *NodeWatchFactory) UserDefinedNetworkInformer() userdefinednetworkv1.UserDefinedNetworkInformer

UserDefinedNetworkInformer provides a mock function with given fields:

type ObjectCacheInterface

type ObjectCacheInterface struct {
	mock.Mock
}

ObjectCacheInterface is an autogenerated mock type for the ObjectCacheInterface type

func NewObjectCacheInterface

func NewObjectCacheInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectCacheInterface

NewObjectCacheInterface creates a new instance of ObjectCacheInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectCacheInterface) GetAllPods

func (_m *ObjectCacheInterface) GetAllPods() ([]*v1.Pod, error)

GetAllPods provides a mock function with given fields:

func (*ObjectCacheInterface) GetNamespace

func (_m *ObjectCacheInterface) GetNamespace(name string) (*v1.Namespace, error)

GetNamespace provides a mock function with given fields: name

func (*ObjectCacheInterface) GetNamespaces

func (_m *ObjectCacheInterface) GetNamespaces() ([]*v1.Namespace, error)

GetNamespaces provides a mock function with given fields:

func (*ObjectCacheInterface) GetNode

func (_m *ObjectCacheInterface) GetNode(name string) (*v1.Node, error)

GetNode provides a mock function with given fields: name

func (*ObjectCacheInterface) GetNodes

func (_m *ObjectCacheInterface) GetNodes() ([]*v1.Node, error)

GetNodes provides a mock function with given fields:

func (*ObjectCacheInterface) GetPod

func (_m *ObjectCacheInterface) GetPod(namespace string, name string) (*v1.Pod, error)

GetPod provides a mock function with given fields: namespace, name

func (*ObjectCacheInterface) GetPods

func (_m *ObjectCacheInterface) GetPods(namespace string) ([]*v1.Pod, error)

GetPods provides a mock function with given fields: namespace

func (*ObjectCacheInterface) GetService

func (_m *ObjectCacheInterface) GetService(namespace string, name string) (*v1.Service, error)

GetService provides a mock function with given fields: namespace, name

func (*ObjectCacheInterface) GetServiceEndpointSlices

func (_m *ObjectCacheInterface) GetServiceEndpointSlices(namespace string, svcName string, network string) ([]*discoveryv1.EndpointSlice, error)

GetServiceEndpointSlices provides a mock function with given fields: namespace, svcName, network

Jump to

Keyboard shortcuts

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