ipallocatormock

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ipallocatormock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIPAllocator

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

MockIPAllocator is a mock of IPAllocator interface.

func NewMockIPAllocator

func NewMockIPAllocator(ctrl *gomock.Controller) *MockIPAllocator

NewMockIPAllocator creates a new mock instance.

func (*MockIPAllocator) AllocateIP

func (m *MockIPAllocator) AllocateIP(ctx context.Context, id string, opts ipallocator.AllocateIPOpts) (string, error)

AllocateIP mocks base method.

func (*MockIPAllocator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIPAllocator) ReleaseIP

func (m *MockIPAllocator) ReleaseIP(ctx context.Context, id, address string) error

ReleaseIP mocks base method.

func (*MockIPAllocator) ReleasePool

func (m *MockIPAllocator) ReleasePool(ctx context.Context, id string) error

ReleasePool mocks base method.

type MockIPAllocatorMockRecorder

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

MockIPAllocatorMockRecorder is the mock recorder for MockIPAllocator.

func (*MockIPAllocatorMockRecorder) AllocateIP

func (mr *MockIPAllocatorMockRecorder) AllocateIP(ctx, id, opts any) *gomock.Call

AllocateIP indicates an expected call of AllocateIP.

func (*MockIPAllocatorMockRecorder) ReleaseIP

func (mr *MockIPAllocatorMockRecorder) ReleaseIP(ctx, id, address any) *gomock.Call

ReleaseIP indicates an expected call of ReleaseIP.

func (*MockIPAllocatorMockRecorder) ReleasePool

func (mr *MockIPAllocatorMockRecorder) ReleasePool(ctx, id any) *gomock.Call

ReleasePool indicates an expected call of ReleasePool.

Jump to

Keyboard shortcuts

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