mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMan

type PodMan struct {
	mock.Mock
}

PodMan is an autogenerated mock type for the PodMan type

func NewPodMan

func NewPodMan(t interface {
	mock.TestingT
	Cleanup(func())
}) *PodMan

NewPodMan creates a new instance of PodMan. 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 (*PodMan) DeletePod

func (_m *PodMan) DeletePod(ctx context.Context, namespace string, name string) error

DeletePod provides a mock function with given fields: ctx, namespace, name

func (*PodMan) Disconnect

func (_m *PodMan) Disconnect()

Disconnect provides a mock function with given fields:

func (*PodMan) EXPECT

func (_m *PodMan) EXPECT() *PodMan_Expecter

func (*PodMan) GetPodsForLabelSelector

func (_m *PodMan) GetPodsForLabelSelector(ctx context.Context, namespace string, labelSelector string) ([]v1.Pod, error)

GetPodsForLabelSelector provides a mock function with given fields: ctx, namespace, labelSelector

type PodMan_DeletePod_Call

type PodMan_DeletePod_Call struct {
	*mock.Call
}

PodMan_DeletePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePod'

func (*PodMan_DeletePod_Call) Return

func (*PodMan_DeletePod_Call) Run

func (_c *PodMan_DeletePod_Call) Run(run func(ctx context.Context, namespace string, name string)) *PodMan_DeletePod_Call

func (*PodMan_DeletePod_Call) RunAndReturn

type PodMan_Disconnect_Call

type PodMan_Disconnect_Call struct {
	*mock.Call
}

PodMan_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'

func (*PodMan_Disconnect_Call) Return

func (*PodMan_Disconnect_Call) Run

func (_c *PodMan_Disconnect_Call) Run(run func()) *PodMan_Disconnect_Call

func (*PodMan_Disconnect_Call) RunAndReturn

func (_c *PodMan_Disconnect_Call) RunAndReturn(run func()) *PodMan_Disconnect_Call

type PodMan_Expecter

type PodMan_Expecter struct {
	// contains filtered or unexported fields
}

func (*PodMan_Expecter) DeletePod

func (_e *PodMan_Expecter) DeletePod(ctx interface{}, namespace interface{}, name interface{}) *PodMan_DeletePod_Call

DeletePod is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • name string

func (*PodMan_Expecter) Disconnect

func (_e *PodMan_Expecter) Disconnect() *PodMan_Disconnect_Call

Disconnect is a helper method to define mock.On call

func (*PodMan_Expecter) GetPodsForLabelSelector

func (_e *PodMan_Expecter) GetPodsForLabelSelector(ctx interface{}, namespace interface{}, labelSelector interface{}) *PodMan_GetPodsForLabelSelector_Call

GetPodsForLabelSelector is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • labelSelector string

type PodMan_GetPodsForLabelSelector_Call

type PodMan_GetPodsForLabelSelector_Call struct {
	*mock.Call
}

PodMan_GetPodsForLabelSelector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodsForLabelSelector'

func (*PodMan_GetPodsForLabelSelector_Call) Return

func (*PodMan_GetPodsForLabelSelector_Call) Run

func (_c *PodMan_GetPodsForLabelSelector_Call) Run(run func(ctx context.Context, namespace string, labelSelector string)) *PodMan_GetPodsForLabelSelector_Call

func (*PodMan_GetPodsForLabelSelector_Call) RunAndReturn

Jump to

Keyboard shortcuts

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