mocks

package
v0.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 5 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 testing.TB) *MetalLBClient

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

func (*MetalLBClient) CreateIPPassthrough

func (_m *MetalLBClient) CreateIPPassthrough(ctx context.Context, directive v1beta2.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) GetIPAddressStatusForLease

func (_m *MetalLBClient) GetIPAddressStatusForLease(ctx context.Context, leaseID typesv1beta2.LeaseID) ([]v1beta2.IPLeaseState, 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) ([]v1beta2.IPPassthrough, error)

GetIPPassthroughs provides a mock function with given fields: ctx

func (*MetalLBClient) PurgeIPPassthrough

func (_m *MetalLBClient) PurgeIPPassthrough(ctx context.Context, directive v1beta2.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:

Jump to

Keyboard shortcuts

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