mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t mockConstructorTestingTNewManager) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) GetPoolByName

func (_m *Manager) GetPoolByName(name string) *pool.IPPool

GetPoolByName provides a mock function with given fields: name

func (*Manager) GetPools

func (_m *Manager) GetPools() map[string]*pool.IPPool

GetPools provides a mock function with given fields:

func (*Manager) Reset

func (_m *Manager) Reset()

Reset provides a mock function with given fields:

func (*Manager) Update

func (_m *Manager) Update(node *v1.Node) error

Update provides a mock function with given fields: node

type Manager_Expecter

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

func (*Manager_Expecter) GetPoolByName

func (_e *Manager_Expecter) GetPoolByName(name interface{}) *Manager_GetPoolByName_Call

GetPoolByName is a helper method to define mock.On call

  • name string

func (*Manager_Expecter) GetPools

func (_e *Manager_Expecter) GetPools() *Manager_GetPools_Call

GetPools is a helper method to define mock.On call

func (*Manager_Expecter) Reset

func (_e *Manager_Expecter) Reset() *Manager_Reset_Call

Reset is a helper method to define mock.On call

func (*Manager_Expecter) Update

func (_e *Manager_Expecter) Update(node interface{}) *Manager_Update_Call

Update is a helper method to define mock.On call

  • node *v1.Node

type Manager_GetPoolByName_Call

type Manager_GetPoolByName_Call struct {
	*mock.Call
}

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

func (*Manager_GetPoolByName_Call) Return

func (*Manager_GetPoolByName_Call) Run

func (*Manager_GetPoolByName_Call) RunAndReturn

type Manager_GetPools_Call

type Manager_GetPools_Call struct {
	*mock.Call
}

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

func (*Manager_GetPools_Call) Return

func (*Manager_GetPools_Call) Run

func (_c *Manager_GetPools_Call) Run(run func()) *Manager_GetPools_Call

func (*Manager_GetPools_Call) RunAndReturn

func (_c *Manager_GetPools_Call) RunAndReturn(run func() map[string]*pool.IPPool) *Manager_GetPools_Call

type Manager_Reset_Call

type Manager_Reset_Call struct {
	*mock.Call
}

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

func (*Manager_Reset_Call) Return

func (_c *Manager_Reset_Call) Return() *Manager_Reset_Call

func (*Manager_Reset_Call) Run

func (_c *Manager_Reset_Call) Run(run func()) *Manager_Reset_Call

func (*Manager_Reset_Call) RunAndReturn

func (_c *Manager_Reset_Call) RunAndReturn(run func()) *Manager_Reset_Call

type Manager_Update_Call

type Manager_Update_Call struct {
	*mock.Call
}

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

func (*Manager_Update_Call) Return

func (*Manager_Update_Call) Run

func (_c *Manager_Update_Call) Run(run func(node *v1.Node)) *Manager_Update_Call

func (*Manager_Update_Call) RunAndReturn

func (_c *Manager_Update_Call) RunAndReturn(run func(*v1.Node) error) *Manager_Update_Call

Jump to

Keyboard shortcuts

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