Documentation ¶
Index ¶
- type Annotator
- type HTTPServer
- type HTTPServerFactory
- type Interface
- func (_m *Interface) Events() v1.EventInterface
- func (_m *Interface) GetAnnotationsOnPod(namespace string, name string) (map[string]string, error)
- func (_m *Interface) GetNamespaces(labelSelector metav1.LabelSelector) ([]*corev1.Namespace, error)
- func (_m *Interface) GetNode(name string) (*corev1.Node, error)
- func (_m *Interface) GetNodes() ([]*corev1.Node, error)
- func (_m *Interface) GetPod(namespace string, name string) (*corev1.Pod, error)
- func (_m *Interface) GetPods(namespace string, opts metav1.ListOptions) ([]*corev1.Pod, error)
- func (_m *Interface) PatchNode(old *corev1.Node, new *corev1.Node) error
- func (_m *Interface) RemoveTaintFromNode(nodeName string, taint *corev1.Taint) error
- func (_m *Interface) SetAnnotationsOnNamespace(namespaceName string, annotations map[string]interface{}) error
- func (_m *Interface) SetAnnotationsOnNode(nodeName string, annotations map[string]interface{}) error
- func (_m *Interface) SetAnnotationsOnPod(namespace string, podName string, annotations map[string]interface{}) error
- func (_m *Interface) SetAnnotationsOnService(namespace string, serviceName string, annotations map[string]interface{}) error
- func (_m *Interface) SetLabelsOnNode(nodeName string, labels map[string]interface{}) error
- func (_m *Interface) SetTaintOnNode(nodeName string, taint *corev1.Taint) error
- func (_m *Interface) UpdateNodeStatus(node *corev1.Node) error
- func (_m *Interface) UpdatePodStatus(pod *corev1.Pod) error
- type InterfaceOVN
- func (_m *InterfaceOVN) CreateCloudPrivateIPConfig(cloudPrivateIPConfig *v1.CloudPrivateIPConfig) (*v1.CloudPrivateIPConfig, error)
- func (_m *InterfaceOVN) DeleteCloudPrivateIPConfig(name string) error
- func (_m *InterfaceOVN) Events() corev1.EventInterface
- func (_m *InterfaceOVN) GetAnnotationsOnPod(namespace string, name string) (map[string]string, error)
- func (_m *InterfaceOVN) GetEgressFirewalls() ([]*egressfirewallv1.EgressFirewall, error)
- func (_m *InterfaceOVN) GetEgressIP(name string) (*egressipv1.EgressIP, error)
- func (_m *InterfaceOVN) GetEgressIPs() ([]*egressipv1.EgressIP, error)
- func (_m *InterfaceOVN) GetNamespaces(labelSelector metav1.LabelSelector) ([]*apicorev1.Namespace, error)
- func (_m *InterfaceOVN) GetNode(name string) (*apicorev1.Node, error)
- func (_m *InterfaceOVN) GetNodes() ([]*apicorev1.Node, error)
- func (_m *InterfaceOVN) GetPod(namespace string, name string) (*apicorev1.Pod, error)
- func (_m *InterfaceOVN) GetPods(namespace string, opts metav1.ListOptions) ([]*apicorev1.Pod, error)
- func (_m *InterfaceOVN) PatchEgressIP(name string, patchData []byte) error
- func (_m *InterfaceOVN) PatchNode(old *apicorev1.Node, new *apicorev1.Node) error
- func (_m *InterfaceOVN) RemoveTaintFromNode(nodeName string, taint *apicorev1.Taint) error
- func (_m *InterfaceOVN) SetAnnotationsOnNamespace(namespaceName string, annotations map[string]interface{}) error
- func (_m *InterfaceOVN) SetAnnotationsOnNode(nodeName string, annotations map[string]interface{}) error
- func (_m *InterfaceOVN) SetAnnotationsOnPod(namespace string, podName string, annotations map[string]interface{}) error
- func (_m *InterfaceOVN) SetAnnotationsOnService(namespace string, serviceName string, annotations map[string]interface{}) error
- func (_m *InterfaceOVN) SetLabelsOnNode(nodeName string, labels map[string]interface{}) error
- func (_m *InterfaceOVN) SetTaintOnNode(nodeName string, taint *apicorev1.Taint) error
- func (_m *InterfaceOVN) UpdateCloudPrivateIPConfig(cloudPrivateIPConfig *v1.CloudPrivateIPConfig) (*v1.CloudPrivateIPConfig, error)
- func (_m *InterfaceOVN) UpdateEgressFirewall(egressfirewall *egressfirewallv1.EgressFirewall) error
- func (_m *InterfaceOVN) UpdateEgressIP(eIP *egressipv1.EgressIP) error
- func (_m *InterfaceOVN) UpdateEgressServiceStatus(namespace string, name string, host string) error
- func (_m *InterfaceOVN) UpdateIPAMClaimIPs(updatedIPAMClaim *v1alpha1.IPAMClaim) error
- func (_m *InterfaceOVN) UpdateNodeStatus(node *apicorev1.Node) error
- func (_m *InterfaceOVN) UpdatePodStatus(pod *apicorev1.Pod) error
- type Listener
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotator ¶
Annotator is an autogenerated mock type for the Annotator type
func NewAnnotator ¶
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.
type HTTPServer ¶
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.
type HTTPServerFactory ¶
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 ¶
Interface is an autogenerated mock type for the Interface type
func NewInterface ¶
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 ¶
GetAnnotationsOnPod provides a mock function with given fields: namespace, name
func (*Interface) GetNamespaces ¶
GetNamespaces provides a mock function with given fields: labelSelector
func (*Interface) RemoveTaintFromNode ¶
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 ¶
SetLabelsOnNode provides a mock function with given fields: nodeName, labels
func (*Interface) SetTaintOnNode ¶
SetTaintOnNode provides a mock function with given fields: nodeName, taint
func (*Interface) UpdateNodeStatus ¶
UpdateNodeStatus provides a mock function with given fields: node
type InterfaceOVN ¶
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) 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) 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 ¶
Listener is an autogenerated mock type for the Listener type
func NewListener ¶
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.
type Server ¶
Server is an autogenerated mock type for the Server type
func NewServer ¶
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