Documentation ¶
Overview ¶
Package mock provides some kubernetes-related mocks for testing
Index ¶
- type InformersMock
- func (o *InformersMock) MockNoMatch(ip string)
- func (o *InformersMock) MockPod(name, ns, ip, host string)
- func (o *InformersMock) MockPodInDepl(name, ns, ip, host, rs, depl string)
- func (o *InformersMock) MockService(name, ns, ip string)
- func (o *InformersMock) PodByIP(ip string) *corev1.Pod
- func (o *InformersMock) ReplicaSet(namespace, name string) *appsv1.ReplicaSet
- func (o *InformersMock) ServiceByIP(ip string) *corev1.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InformersMock ¶
type InformersMock struct { mock.Mock meta.InformersInterface }
func (*InformersMock) MockNoMatch ¶
func (o *InformersMock) MockNoMatch(ip string)
func (*InformersMock) MockPod ¶
func (o *InformersMock) MockPod(name, ns, ip, host string)
func (*InformersMock) MockPodInDepl ¶
func (o *InformersMock) MockPodInDepl(name, ns, ip, host, rs, depl string)
func (*InformersMock) MockService ¶
func (o *InformersMock) MockService(name, ns, ip string)
func (*InformersMock) ReplicaSet ¶
func (o *InformersMock) ReplicaSet(namespace, name string) *appsv1.ReplicaSet
func (*InformersMock) ServiceByIP ¶
func (o *InformersMock) ServiceByIP(ip string) *corev1.Service
Click to show internal directories.
Click to hide internal directories.