testutils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFakeLogger

func GetFakeLogger() *log.Entry

Types

type PodHandler

type PodHandler struct {
	mock.Mock
}

func NewPodHandler

func NewPodHandler() *PodHandler

func (*PodHandler) CreatePod

func (self *PodHandler) CreatePod(ctx context.Context, pod *corev1.Pod) error

func (*PodHandler) DeletePod

func (self *PodHandler) DeletePod(ctx context.Context, pod *corev1.Pod) error

func (*PodHandler) GetPod

func (self *PodHandler) GetPod(ctx context.Context, namespace, name string) (*corev1.Pod, error)

func (*PodHandler) GetPodStatus

func (self *PodHandler) GetPodStatus(ctx context.Context, namespace, name string) (*corev1.PodStatus, error)

func (*PodHandler) GetPods

func (self *PodHandler) GetPods(ctx context.Context) ([]*corev1.Pod, error)

func (*PodHandler) UpdatePod

func (self *PodHandler) UpdatePod(ctx context.Context, pod *corev1.Pod) error

Jump to

Keyboard shortcuts

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