Documentation ¶
Index ¶
- type MetalLBClient
- func (_m *MetalLBClient) CreateIPPassthrough(ctx context.Context, directive ip.ClusterIPPassthroughDirective) error
- func (_m *MetalLBClient) DetectPoolChanges(ctx context.Context) (<-chan struct{}, error)
- func (_m *MetalLBClient) EXPECT() *MetalLBClient_Expecter
- func (_m *MetalLBClient) GetIPAddressStatusForLease(ctx context.Context, leaseID v1beta4.LeaseID) ([]ip.LeaseState, error)
- func (_m *MetalLBClient) GetIPAddressUsage(ctx context.Context) (uint, uint, error)
- func (_m *MetalLBClient) GetIPPassthroughs(ctx context.Context) ([]ip.Passthrough, error)
- func (_m *MetalLBClient) PurgeIPPassthrough(ctx context.Context, directive ip.ClusterIPPassthroughDirective) error
- func (_m *MetalLBClient) Stop()
- type MetalLBClient_CreateIPPassthrough_Call
- func (_c *MetalLBClient_CreateIPPassthrough_Call) Return(_a0 error) *MetalLBClient_CreateIPPassthrough_Call
- func (_c *MetalLBClient_CreateIPPassthrough_Call) Run(run func(ctx context.Context, directive ip.ClusterIPPassthroughDirective)) *MetalLBClient_CreateIPPassthrough_Call
- func (_c *MetalLBClient_CreateIPPassthrough_Call) RunAndReturn(run func(context.Context, ip.ClusterIPPassthroughDirective) error) *MetalLBClient_CreateIPPassthrough_Call
- type MetalLBClient_DetectPoolChanges_Call
- func (_c *MetalLBClient_DetectPoolChanges_Call) Return(_a0 <-chan struct{}, _a1 error) *MetalLBClient_DetectPoolChanges_Call
- func (_c *MetalLBClient_DetectPoolChanges_Call) Run(run func(ctx context.Context)) *MetalLBClient_DetectPoolChanges_Call
- func (_c *MetalLBClient_DetectPoolChanges_Call) RunAndReturn(run func(context.Context) (<-chan struct{}, error)) *MetalLBClient_DetectPoolChanges_Call
- type MetalLBClient_Expecter
- func (_e *MetalLBClient_Expecter) CreateIPPassthrough(ctx interface{}, directive interface{}) *MetalLBClient_CreateIPPassthrough_Call
- func (_e *MetalLBClient_Expecter) DetectPoolChanges(ctx interface{}) *MetalLBClient_DetectPoolChanges_Call
- func (_e *MetalLBClient_Expecter) GetIPAddressStatusForLease(ctx interface{}, leaseID interface{}) *MetalLBClient_GetIPAddressStatusForLease_Call
- func (_e *MetalLBClient_Expecter) GetIPAddressUsage(ctx interface{}) *MetalLBClient_GetIPAddressUsage_Call
- func (_e *MetalLBClient_Expecter) GetIPPassthroughs(ctx interface{}) *MetalLBClient_GetIPPassthroughs_Call
- func (_e *MetalLBClient_Expecter) PurgeIPPassthrough(ctx interface{}, directive interface{}) *MetalLBClient_PurgeIPPassthrough_Call
- func (_e *MetalLBClient_Expecter) Stop() *MetalLBClient_Stop_Call
- type MetalLBClient_GetIPAddressStatusForLease_Call
- func (_c *MetalLBClient_GetIPAddressStatusForLease_Call) Return(_a0 []ip.LeaseState, _a1 error) *MetalLBClient_GetIPAddressStatusForLease_Call
- func (_c *MetalLBClient_GetIPAddressStatusForLease_Call) Run(run func(ctx context.Context, leaseID v1beta4.LeaseID)) *MetalLBClient_GetIPAddressStatusForLease_Call
- func (_c *MetalLBClient_GetIPAddressStatusForLease_Call) RunAndReturn(run func(context.Context, v1beta4.LeaseID) ([]ip.LeaseState, error)) *MetalLBClient_GetIPAddressStatusForLease_Call
- type MetalLBClient_GetIPAddressUsage_Call
- func (_c *MetalLBClient_GetIPAddressUsage_Call) Return(_a0 uint, _a1 uint, _a2 error) *MetalLBClient_GetIPAddressUsage_Call
- func (_c *MetalLBClient_GetIPAddressUsage_Call) Run(run func(ctx context.Context)) *MetalLBClient_GetIPAddressUsage_Call
- func (_c *MetalLBClient_GetIPAddressUsage_Call) RunAndReturn(run func(context.Context) (uint, uint, error)) *MetalLBClient_GetIPAddressUsage_Call
- type MetalLBClient_GetIPPassthroughs_Call
- func (_c *MetalLBClient_GetIPPassthroughs_Call) Return(_a0 []ip.Passthrough, _a1 error) *MetalLBClient_GetIPPassthroughs_Call
- func (_c *MetalLBClient_GetIPPassthroughs_Call) Run(run func(ctx context.Context)) *MetalLBClient_GetIPPassthroughs_Call
- func (_c *MetalLBClient_GetIPPassthroughs_Call) RunAndReturn(run func(context.Context) ([]ip.Passthrough, error)) *MetalLBClient_GetIPPassthroughs_Call
- type MetalLBClient_PurgeIPPassthrough_Call
- func (_c *MetalLBClient_PurgeIPPassthrough_Call) Return(_a0 error) *MetalLBClient_PurgeIPPassthrough_Call
- func (_c *MetalLBClient_PurgeIPPassthrough_Call) Run(run func(ctx context.Context, directive ip.ClusterIPPassthroughDirective)) *MetalLBClient_PurgeIPPassthrough_Call
- func (_c *MetalLBClient_PurgeIPPassthrough_Call) RunAndReturn(run func(context.Context, ip.ClusterIPPassthroughDirective) error) *MetalLBClient_PurgeIPPassthrough_Call
- type MetalLBClient_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetalLBClient ¶
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 ¶
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 ¶
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 (_c *MetalLBClient_CreateIPPassthrough_Call) Return(_a0 error) *MetalLBClient_CreateIPPassthrough_Call
func (*MetalLBClient_CreateIPPassthrough_Call) Run ¶
func (_c *MetalLBClient_CreateIPPassthrough_Call) Run(run func(ctx context.Context, directive ip.ClusterIPPassthroughDirective)) *MetalLBClient_CreateIPPassthrough_Call
func (*MetalLBClient_CreateIPPassthrough_Call) RunAndReturn ¶
func (_c *MetalLBClient_CreateIPPassthrough_Call) RunAndReturn(run func(context.Context, ip.ClusterIPPassthroughDirective) error) *MetalLBClient_CreateIPPassthrough_Call
type MetalLBClient_DetectPoolChanges_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 (_c *MetalLBClient_DetectPoolChanges_Call) Return(_a0 <-chan struct{}, _a1 error) *MetalLBClient_DetectPoolChanges_Call
func (*MetalLBClient_DetectPoolChanges_Call) Run ¶
func (_c *MetalLBClient_DetectPoolChanges_Call) Run(run func(ctx context.Context)) *MetalLBClient_DetectPoolChanges_Call
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 ¶
func (_e *MetalLBClient_Expecter) Stop() *MetalLBClient_Stop_Call
Stop is a helper method to define mock.On call
type MetalLBClient_GetIPAddressStatusForLease_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 (_c *MetalLBClient_GetIPAddressStatusForLease_Call) Return(_a0 []ip.LeaseState, _a1 error) *MetalLBClient_GetIPAddressStatusForLease_Call
func (*MetalLBClient_GetIPAddressStatusForLease_Call) Run ¶
func (_c *MetalLBClient_GetIPAddressStatusForLease_Call) Run(run func(ctx context.Context, leaseID v1beta4.LeaseID)) *MetalLBClient_GetIPAddressStatusForLease_Call
func (*MetalLBClient_GetIPAddressStatusForLease_Call) RunAndReturn ¶
func (_c *MetalLBClient_GetIPAddressStatusForLease_Call) RunAndReturn(run func(context.Context, v1beta4.LeaseID) ([]ip.LeaseState, error)) *MetalLBClient_GetIPAddressStatusForLease_Call
type MetalLBClient_GetIPAddressUsage_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 (_c *MetalLBClient_GetIPAddressUsage_Call) Return(_a0 uint, _a1 uint, _a2 error) *MetalLBClient_GetIPAddressUsage_Call
func (*MetalLBClient_GetIPAddressUsage_Call) Run ¶
func (_c *MetalLBClient_GetIPAddressUsage_Call) Run(run func(ctx context.Context)) *MetalLBClient_GetIPAddressUsage_Call
func (*MetalLBClient_GetIPAddressUsage_Call) RunAndReturn ¶
func (_c *MetalLBClient_GetIPAddressUsage_Call) RunAndReturn(run func(context.Context) (uint, uint, error)) *MetalLBClient_GetIPAddressUsage_Call
type MetalLBClient_GetIPPassthroughs_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 (_c *MetalLBClient_GetIPPassthroughs_Call) Return(_a0 []ip.Passthrough, _a1 error) *MetalLBClient_GetIPPassthroughs_Call
func (*MetalLBClient_GetIPPassthroughs_Call) Run ¶
func (_c *MetalLBClient_GetIPPassthroughs_Call) Run(run func(ctx context.Context)) *MetalLBClient_GetIPPassthroughs_Call
func (*MetalLBClient_GetIPPassthroughs_Call) RunAndReturn ¶
func (_c *MetalLBClient_GetIPPassthroughs_Call) RunAndReturn(run func(context.Context) ([]ip.Passthrough, error)) *MetalLBClient_GetIPPassthroughs_Call
type MetalLBClient_PurgeIPPassthrough_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 (_c *MetalLBClient_PurgeIPPassthrough_Call) Return(_a0 error) *MetalLBClient_PurgeIPPassthrough_Call
func (*MetalLBClient_PurgeIPPassthrough_Call) Run ¶
func (_c *MetalLBClient_PurgeIPPassthrough_Call) Run(run func(ctx context.Context, directive ip.ClusterIPPassthroughDirective)) *MetalLBClient_PurgeIPPassthrough_Call
func (*MetalLBClient_PurgeIPPassthrough_Call) RunAndReturn ¶
func (_c *MetalLBClient_PurgeIPPassthrough_Call) RunAndReturn(run func(context.Context, ip.ClusterIPPassthroughDirective) error) *MetalLBClient_PurgeIPPassthrough_Call
type MetalLBClient_Stop_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 (_c *MetalLBClient_Stop_Call) Return() *MetalLBClient_Stop_Call
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