mocks

package
v0.6.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetalLBClient

type MetalLBClient struct {
	mock.Mock
}

MetalLBClient is an autogenerated mock type for the Client type

func NewMetalLBClient

func NewMetalLBClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetalLBClient

NewMetalLBClient creates a new instance of MetalLBClient. 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 (*MetalLBClient) CreateIPPassthrough

func (_m *MetalLBClient) CreateIPPassthrough(ctx context.Context, directive ip.ClusterIPPassthroughDirective) error

CreateIPPassthrough provides a mock function with given fields: ctx, directive

func (*MetalLBClient) DetectPoolChanges

func (_m *MetalLBClient) DetectPoolChanges(ctx context.Context) (<-chan struct{}, error)

DetectPoolChanges provides a mock function with given fields: ctx

func (*MetalLBClient) EXPECT

func (_m *MetalLBClient) EXPECT() *MetalLBClient_Expecter

func (*MetalLBClient) GetIPAddressStatusForLease

func (_m *MetalLBClient) GetIPAddressStatusForLease(ctx context.Context, leaseID v1beta4.LeaseID) ([]ip.LeaseState, error)

GetIPAddressStatusForLease provides a mock function with given fields: ctx, leaseID

func (*MetalLBClient) GetIPAddressUsage

func (_m *MetalLBClient) GetIPAddressUsage(ctx context.Context) (uint, uint, error)

GetIPAddressUsage provides a mock function with given fields: ctx

func (*MetalLBClient) GetIPPassthroughs

func (_m *MetalLBClient) GetIPPassthroughs(ctx context.Context) ([]ip.Passthrough, error)

GetIPPassthroughs provides a mock function with given fields: ctx

func (*MetalLBClient) PurgeIPPassthrough

func (_m *MetalLBClient) PurgeIPPassthrough(ctx context.Context, directive ip.ClusterIPPassthroughDirective) error

PurgeIPPassthrough provides a mock function with given fields: ctx, directive

func (*MetalLBClient) Stop

func (_m *MetalLBClient) Stop()

Stop provides a mock function with given fields:

type MetalLBClient_CreateIPPassthrough_Call

type MetalLBClient_CreateIPPassthrough_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_CreateIPPassthrough_Call) Return

func (*MetalLBClient_CreateIPPassthrough_Call) Run

func (*MetalLBClient_CreateIPPassthrough_Call) RunAndReturn

type MetalLBClient_DetectPoolChanges_Call

type MetalLBClient_DetectPoolChanges_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_DetectPoolChanges_Call) Return

func (*MetalLBClient_DetectPoolChanges_Call) Run

func (*MetalLBClient_DetectPoolChanges_Call) RunAndReturn

func (_c *MetalLBClient_DetectPoolChanges_Call) RunAndReturn(run func(context.Context) (<-chan struct{}, error)) *MetalLBClient_DetectPoolChanges_Call

type MetalLBClient_Expecter

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

func (*MetalLBClient_Expecter) CreateIPPassthrough

func (_e *MetalLBClient_Expecter) CreateIPPassthrough(ctx interface{}, directive interface{}) *MetalLBClient_CreateIPPassthrough_Call

CreateIPPassthrough is a helper method to define mock.On call

  • ctx context.Context
  • directive ip.ClusterIPPassthroughDirective

func (*MetalLBClient_Expecter) DetectPoolChanges

func (_e *MetalLBClient_Expecter) DetectPoolChanges(ctx interface{}) *MetalLBClient_DetectPoolChanges_Call

DetectPoolChanges is a helper method to define mock.On call

  • ctx context.Context

func (*MetalLBClient_Expecter) GetIPAddressStatusForLease

func (_e *MetalLBClient_Expecter) GetIPAddressStatusForLease(ctx interface{}, leaseID interface{}) *MetalLBClient_GetIPAddressStatusForLease_Call

GetIPAddressStatusForLease is a helper method to define mock.On call

  • ctx context.Context
  • leaseID v1beta4.LeaseID

func (*MetalLBClient_Expecter) GetIPAddressUsage

func (_e *MetalLBClient_Expecter) GetIPAddressUsage(ctx interface{}) *MetalLBClient_GetIPAddressUsage_Call

GetIPAddressUsage is a helper method to define mock.On call

  • ctx context.Context

func (*MetalLBClient_Expecter) GetIPPassthroughs

func (_e *MetalLBClient_Expecter) GetIPPassthroughs(ctx interface{}) *MetalLBClient_GetIPPassthroughs_Call

GetIPPassthroughs is a helper method to define mock.On call

  • ctx context.Context

func (*MetalLBClient_Expecter) PurgeIPPassthrough

func (_e *MetalLBClient_Expecter) PurgeIPPassthrough(ctx interface{}, directive interface{}) *MetalLBClient_PurgeIPPassthrough_Call

PurgeIPPassthrough is a helper method to define mock.On call

  • ctx context.Context
  • directive ip.ClusterIPPassthroughDirective

func (*MetalLBClient_Expecter) Stop

Stop is a helper method to define mock.On call

type MetalLBClient_GetIPAddressStatusForLease_Call

type MetalLBClient_GetIPAddressStatusForLease_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_GetIPAddressStatusForLease_Call) Return

func (*MetalLBClient_GetIPAddressStatusForLease_Call) Run

func (*MetalLBClient_GetIPAddressStatusForLease_Call) RunAndReturn

type MetalLBClient_GetIPAddressUsage_Call

type MetalLBClient_GetIPAddressUsage_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_GetIPAddressUsage_Call) Return

func (*MetalLBClient_GetIPAddressUsage_Call) Run

func (*MetalLBClient_GetIPAddressUsage_Call) RunAndReturn

type MetalLBClient_GetIPPassthroughs_Call

type MetalLBClient_GetIPPassthroughs_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_GetIPPassthroughs_Call) Return

func (*MetalLBClient_GetIPPassthroughs_Call) Run

func (*MetalLBClient_GetIPPassthroughs_Call) RunAndReturn

type MetalLBClient_PurgeIPPassthrough_Call

type MetalLBClient_PurgeIPPassthrough_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_PurgeIPPassthrough_Call) Return

func (*MetalLBClient_PurgeIPPassthrough_Call) Run

func (*MetalLBClient_PurgeIPPassthrough_Call) RunAndReturn

type MetalLBClient_Stop_Call

type MetalLBClient_Stop_Call struct {
	*mock.Call
}

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

func (*MetalLBClient_Stop_Call) Return

func (*MetalLBClient_Stop_Call) Run

func (_c *MetalLBClient_Stop_Call) Run(run func()) *MetalLBClient_Stop_Call

func (*MetalLBClient_Stop_Call) RunAndReturn

func (_c *MetalLBClient_Stop_Call) RunAndReturn(run func()) *MetalLBClient_Stop_Call

Jump to

Keyboard shortcuts

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