Documentation
¶
Index ¶
- type NodeWatchFactory
- func (_m *NodeWatchFactory) APBRouteInformer() v1.AdminPolicyBasedExternalRouteInformer
- func (_m *NodeWatchFactory) AddFilteredEndpointSliceHandler(namespace string, sel labels.Selector, handlerFuncs cache.ResourceEventHandler, ...) (*factory.Handler, error)
- func (_m *NodeWatchFactory) AddFilteredServiceHandler(namespace string, handlerFuncs cache.ResourceEventHandler, ...) (*factory.Handler, error)
- func (_m *NodeWatchFactory) AddNamespaceHandler(handlerFuncs cache.ResourceEventHandler, ...) (*factory.Handler, error)
- func (_m *NodeWatchFactory) AddPodHandler(handlerFuncs cache.ResourceEventHandler, ...) (*factory.Handler, error)
- func (_m *NodeWatchFactory) AddServiceHandler(handlerFuncs cache.ResourceEventHandler, ...) (*factory.Handler, error)
- func (_m *NodeWatchFactory) EgressIPInformer() egressipv1.EgressIPInformer
- func (_m *NodeWatchFactory) GetAllPods() ([]*corev1.Pod, error)
- func (_m *NodeWatchFactory) GetEndpointSlice(namespace string, name string) (*discoveryv1.EndpointSlice, error)
- func (_m *NodeWatchFactory) GetNamespace(name string) (*corev1.Namespace, error)
- func (_m *NodeWatchFactory) GetNamespaces() ([]*corev1.Namespace, error)
- func (_m *NodeWatchFactory) GetNode(name string) (*corev1.Node, error)
- func (_m *NodeWatchFactory) GetNodes() ([]*corev1.Node, error)
- func (_m *NodeWatchFactory) GetPod(namespace string, name string) (*corev1.Pod, error)
- func (_m *NodeWatchFactory) GetPods(namespace string) ([]*corev1.Pod, error)
- func (_m *NodeWatchFactory) GetService(namespace string, name string) (*corev1.Service, error)
- func (_m *NodeWatchFactory) GetServiceEndpointSlices(namespace string, svcName string, network string) ([]*discoveryv1.EndpointSlice, error)
- func (_m *NodeWatchFactory) GetServices() ([]*corev1.Service, error)
- func (_m *NodeWatchFactory) ListNodes(selector labels.Selector) ([]*corev1.Node, error)
- func (_m *NodeWatchFactory) LocalPodInformer() cache.SharedIndexInformer
- func (_m *NodeWatchFactory) NADInformer() k8s_cni_cncf_iov1.NetworkAttachmentDefinitionInformer
- func (_m *NodeWatchFactory) NamespaceInformer() informerscorev1.NamespaceInformer
- func (_m *NodeWatchFactory) NodeCoreInformer() informerscorev1.NodeInformer
- func (_m *NodeWatchFactory) NodeInformer() cache.SharedIndexInformer
- func (_m *NodeWatchFactory) PodCoreInformer() informerscorev1.PodInformer
- func (_m *NodeWatchFactory) RemoveEndpointSliceHandler(handler *factory.Handler)
- func (_m *NodeWatchFactory) RemoveNamespaceHandler(handler *factory.Handler)
- func (_m *NodeWatchFactory) RemovePodHandler(handler *factory.Handler)
- func (_m *NodeWatchFactory) RemoveServiceHandler(handler *factory.Handler)
- func (_m *NodeWatchFactory) Shutdown()
- func (_m *NodeWatchFactory) Start() error
- type ObjectCacheInterface
- func (_m *ObjectCacheInterface) GetAllPods() ([]*v1.Pod, error)
- func (_m *ObjectCacheInterface) GetNamespace(name string) (*v1.Namespace, error)
- func (_m *ObjectCacheInterface) GetNamespaces() ([]*v1.Namespace, error)
- func (_m *ObjectCacheInterface) GetNode(name string) (*v1.Node, error)
- func (_m *ObjectCacheInterface) GetNodes() ([]*v1.Node, error)
- func (_m *ObjectCacheInterface) GetPod(namespace string, name string) (*v1.Pod, error)
- func (_m *ObjectCacheInterface) GetPods(namespace string) ([]*v1.Pod, error)
- func (_m *ObjectCacheInterface) GetService(namespace string, name string) (*v1.Service, error)
- func (_m *ObjectCacheInterface) GetServiceEndpointSlices(namespace string, svcName string, network string) ([]*discoveryv1.EndpointSlice, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeWatchFactory ¶
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 ¶
func (_m *NodeWatchFactory) APBRouteInformer() v1.AdminPolicyBasedExternalRouteInformer
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) 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 ¶
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 ¶
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) LocalPodInformer ¶
func (_m *NodeWatchFactory) LocalPodInformer() cache.SharedIndexInformer
LocalPodInformer provides a mock function with given fields:
func (*NodeWatchFactory) NADInformer ¶
func (_m *NodeWatchFactory) NADInformer() k8s_cni_cncf_iov1.NetworkAttachmentDefinitionInformer
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) 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:
type ObjectCacheInterface ¶
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 ¶
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 ¶
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