mock

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock provides some kubernetes-related mocks for testing

Index

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) PodByIP

func (o *InformersMock) PodByIP(ip string) *corev1.Pod

func (*InformersMock) ReplicaSet

func (o *InformersMock) ReplicaSet(namespace, name string) *appsv1.ReplicaSet

func (*InformersMock) ServiceByIP

func (o *InformersMock) ServiceByIP(ip string) *corev1.Service

Jump to

Keyboard shortcuts

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