mocks

package
v0.0.0-...-7d4bb98 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 Annotator

type Annotator struct {
	mock.Mock
}

Annotator is an autogenerated mock type for the Annotator type

func NewAnnotator

func NewAnnotator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Annotator

NewAnnotator creates a new instance of Annotator. 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 (*Annotator) Delete

func (_m *Annotator) Delete(key string)

Delete provides a mock function with given fields: key

func (*Annotator) Run

func (_m *Annotator) Run() error

Run provides a mock function with given fields:

func (*Annotator) Set

func (_m *Annotator) Set(key string, value interface{}) error

Set provides a mock function with given fields: key, value

type HTTPServer

type HTTPServer struct {
	mock.Mock
}

HTTPServer is an autogenerated mock type for the HTTPServer type

func NewHTTPServer

func NewHTTPServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPServer

NewHTTPServer creates a new instance of HTTPServer. 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 (*HTTPServer) Serve

func (_m *HTTPServer) Serve(listener net.Listener) error

Serve provides a mock function with given fields: listener

type HTTPServerFactory

type HTTPServerFactory struct {
	mock.Mock
}

HTTPServerFactory is an autogenerated mock type for the HTTPServerFactory type

func NewHTTPServerFactory

func NewHTTPServerFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPServerFactory

NewHTTPServerFactory creates a new instance of HTTPServerFactory. 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 (*HTTPServerFactory) New

func (_m *HTTPServerFactory) New(addr string, handler http.Handler) healthcheck.HTTPServer

New provides a mock function with given fields: addr, handler

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *Interface

NewInterface creates a new instance of Interface. 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 (*Interface) Events

func (_m *Interface) Events() v1.EventInterface

Events provides a mock function with given fields:

func (*Interface) GetAnnotationsOnPod

func (_m *Interface) GetAnnotationsOnPod(namespace string, name string) (map[string]string, error)

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

func (*Interface) GetNamespaces

func (_m *Interface) GetNamespaces(labelSelector metav1.LabelSelector) ([]*corev1.Namespace, error)

GetNamespaces provides a mock function with given fields: labelSelector

func (*Interface) GetNode

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

GetNode provides a mock function with given fields: name

func (*Interface) GetNodes

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

GetNodes provides a mock function with given fields:

func (*Interface) GetPod

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

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

func (*Interface) GetPods

func (_m *Interface) GetPods(namespace string, opts metav1.ListOptions) ([]*corev1.Pod, error)

GetPods provides a mock function with given fields: namespace, opts

func (*Interface) PatchNode

func (_m *Interface) PatchNode(old *corev1.Node, new *corev1.Node) error

PatchNode provides a mock function with given fields: old, new

func (*Interface) RemoveTaintFromNode

func (_m *Interface) RemoveTaintFromNode(nodeName string, taint *corev1.Taint) error

RemoveTaintFromNode provides a mock function with given fields: nodeName, taint

func (*Interface) SetAnnotationsOnNamespace

func (_m *Interface) SetAnnotationsOnNamespace(namespaceName string, annotations map[string]interface{}) error

SetAnnotationsOnNamespace provides a mock function with given fields: namespaceName, annotations

func (*Interface) SetAnnotationsOnNode

func (_m *Interface) SetAnnotationsOnNode(nodeName string, annotations map[string]interface{}) error

SetAnnotationsOnNode provides a mock function with given fields: nodeName, annotations

func (*Interface) SetAnnotationsOnPod

func (_m *Interface) SetAnnotationsOnPod(namespace string, podName string, annotations map[string]interface{}) error

SetAnnotationsOnPod provides a mock function with given fields: namespace, podName, annotations

func (*Interface) SetAnnotationsOnService

func (_m *Interface) SetAnnotationsOnService(namespace string, serviceName string, annotations map[string]interface{}) error

SetAnnotationsOnService provides a mock function with given fields: namespace, serviceName, annotations

func (*Interface) SetLabelsOnNode

func (_m *Interface) SetLabelsOnNode(nodeName string, labels map[string]interface{}) error

SetLabelsOnNode provides a mock function with given fields: nodeName, labels

func (*Interface) SetTaintOnNode

func (_m *Interface) SetTaintOnNode(nodeName string, taint *corev1.Taint) error

SetTaintOnNode provides a mock function with given fields: nodeName, taint

func (*Interface) UpdateNodeStatus

func (_m *Interface) UpdateNodeStatus(node *corev1.Node) error

UpdateNodeStatus provides a mock function with given fields: node

func (*Interface) UpdatePodStatus

func (_m *Interface) UpdatePodStatus(pod *corev1.Pod) error

UpdatePodStatus provides a mock function with given fields: pod

type InterfaceOVN

type InterfaceOVN struct {
	mock.Mock
}

InterfaceOVN is an autogenerated mock type for the InterfaceOVN type

func NewInterfaceOVN

func NewInterfaceOVN(t interface {
	mock.TestingT
	Cleanup(func())
}) *InterfaceOVN

NewInterfaceOVN creates a new instance of InterfaceOVN. 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 (*InterfaceOVN) CreateCloudPrivateIPConfig

func (_m *InterfaceOVN) CreateCloudPrivateIPConfig(cloudPrivateIPConfig *v1.CloudPrivateIPConfig) (*v1.CloudPrivateIPConfig, error)

CreateCloudPrivateIPConfig provides a mock function with given fields: cloudPrivateIPConfig

func (*InterfaceOVN) DeleteCloudPrivateIPConfig

func (_m *InterfaceOVN) DeleteCloudPrivateIPConfig(name string) error

DeleteCloudPrivateIPConfig provides a mock function with given fields: name

func (*InterfaceOVN) Events

func (_m *InterfaceOVN) Events() corev1.EventInterface

Events provides a mock function with given fields:

func (*InterfaceOVN) GetAnnotationsOnPod

func (_m *InterfaceOVN) GetAnnotationsOnPod(namespace string, name string) (map[string]string, error)

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

func (*InterfaceOVN) GetEgressFirewalls

func (_m *InterfaceOVN) GetEgressFirewalls() ([]*egressfirewallv1.EgressFirewall, error)

GetEgressFirewalls provides a mock function with given fields:

func (*InterfaceOVN) GetEgressIP

func (_m *InterfaceOVN) GetEgressIP(name string) (*egressipv1.EgressIP, error)

GetEgressIP provides a mock function with given fields: name

func (*InterfaceOVN) GetEgressIPs

func (_m *InterfaceOVN) GetEgressIPs() ([]*egressipv1.EgressIP, error)

GetEgressIPs provides a mock function with given fields:

func (*InterfaceOVN) GetNamespaces

func (_m *InterfaceOVN) GetNamespaces(labelSelector metav1.LabelSelector) ([]*apicorev1.Namespace, error)

GetNamespaces provides a mock function with given fields: labelSelector

func (*InterfaceOVN) GetNode

func (_m *InterfaceOVN) GetNode(name string) (*apicorev1.Node, error)

GetNode provides a mock function with given fields: name

func (*InterfaceOVN) GetNodes

func (_m *InterfaceOVN) GetNodes() ([]*apicorev1.Node, error)

GetNodes provides a mock function with given fields:

func (*InterfaceOVN) GetPod

func (_m *InterfaceOVN) GetPod(namespace string, name string) (*apicorev1.Pod, error)

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

func (*InterfaceOVN) GetPods

func (_m *InterfaceOVN) GetPods(namespace string, opts metav1.ListOptions) ([]*apicorev1.Pod, error)

GetPods provides a mock function with given fields: namespace, opts

func (*InterfaceOVN) PatchEgressIP

func (_m *InterfaceOVN) PatchEgressIP(name string, patchData []byte) error

PatchEgressIP provides a mock function with given fields: name, patchData

func (*InterfaceOVN) PatchNode

func (_m *InterfaceOVN) PatchNode(old *apicorev1.Node, new *apicorev1.Node) error

PatchNode provides a mock function with given fields: old, new

func (*InterfaceOVN) RemoveTaintFromNode

func (_m *InterfaceOVN) RemoveTaintFromNode(nodeName string, taint *apicorev1.Taint) error

RemoveTaintFromNode provides a mock function with given fields: nodeName, taint

func (*InterfaceOVN) SetAnnotationsOnNamespace

func (_m *InterfaceOVN) SetAnnotationsOnNamespace(namespaceName string, annotations map[string]interface{}) error

SetAnnotationsOnNamespace provides a mock function with given fields: namespaceName, annotations

func (*InterfaceOVN) SetAnnotationsOnNode

func (_m *InterfaceOVN) SetAnnotationsOnNode(nodeName string, annotations map[string]interface{}) error

SetAnnotationsOnNode provides a mock function with given fields: nodeName, annotations

func (*InterfaceOVN) SetAnnotationsOnPod

func (_m *InterfaceOVN) SetAnnotationsOnPod(namespace string, podName string, annotations map[string]interface{}) error

SetAnnotationsOnPod provides a mock function with given fields: namespace, podName, annotations

func (*InterfaceOVN) SetAnnotationsOnService

func (_m *InterfaceOVN) SetAnnotationsOnService(namespace string, serviceName string, annotations map[string]interface{}) error

SetAnnotationsOnService provides a mock function with given fields: namespace, serviceName, annotations

func (*InterfaceOVN) SetLabelsOnNode

func (_m *InterfaceOVN) SetLabelsOnNode(nodeName string, labels map[string]interface{}) error

SetLabelsOnNode provides a mock function with given fields: nodeName, labels

func (*InterfaceOVN) SetTaintOnNode

func (_m *InterfaceOVN) SetTaintOnNode(nodeName string, taint *apicorev1.Taint) error

SetTaintOnNode provides a mock function with given fields: nodeName, taint

func (*InterfaceOVN) UpdateCloudPrivateIPConfig

func (_m *InterfaceOVN) UpdateCloudPrivateIPConfig(cloudPrivateIPConfig *v1.CloudPrivateIPConfig) (*v1.CloudPrivateIPConfig, error)

UpdateCloudPrivateIPConfig provides a mock function with given fields: cloudPrivateIPConfig

func (*InterfaceOVN) UpdateEgressFirewall

func (_m *InterfaceOVN) UpdateEgressFirewall(egressfirewall *egressfirewallv1.EgressFirewall) error

UpdateEgressFirewall provides a mock function with given fields: egressfirewall

func (*InterfaceOVN) UpdateEgressIP

func (_m *InterfaceOVN) UpdateEgressIP(eIP *egressipv1.EgressIP) error

UpdateEgressIP provides a mock function with given fields: eIP

func (*InterfaceOVN) UpdateEgressServiceStatus

func (_m *InterfaceOVN) UpdateEgressServiceStatus(namespace string, name string, host string) error

UpdateEgressServiceStatus provides a mock function with given fields: namespace, name, host

func (*InterfaceOVN) UpdateIPAMClaimIPs

func (_m *InterfaceOVN) UpdateIPAMClaimIPs(updatedIPAMClaim *v1alpha1.IPAMClaim) error

UpdateIPAMClaimIPs provides a mock function with given fields: updatedIPAMClaim

func (*InterfaceOVN) UpdateNodeStatus

func (_m *InterfaceOVN) UpdateNodeStatus(node *apicorev1.Node) error

UpdateNodeStatus provides a mock function with given fields: node

func (*InterfaceOVN) UpdatePodStatus

func (_m *InterfaceOVN) UpdatePodStatus(pod *apicorev1.Pod) error

UpdatePodStatus provides a mock function with given fields: pod

type Listener

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func NewListener

func NewListener(t interface {
	mock.TestingT
	Cleanup(func())
}) *Listener

NewListener creates a new instance of Listener. 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 (*Listener) Listen

func (_m *Listener) Listen(addr string) (net.Listener, error)

Listen provides a mock function with given fields: addr

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func NewServer

func NewServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Server

NewServer creates a new instance of Server. 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 (*Server) SyncEndpoints

func (_m *Server) SyncEndpoints(newEndpoints map[types.NamespacedName]int) error

SyncEndpoints provides a mock function with given fields: newEndpoints

func (*Server) SyncServices

func (_m *Server) SyncServices(newServices map[types.NamespacedName]uint16) error

SyncServices provides a mock function with given fields: newServices

Jump to

Keyboard shortcuts

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