Documentation
¶
Overview ¶
Package ipallocatormock is a generated GoMock package.
Index ¶
- type MockIPAllocator
- func (m *MockIPAllocator) AllocateIP(ctx context.Context, id string, opts ipallocator.AllocateIPOpts) (string, error)
- func (m *MockIPAllocator) EXPECT() *MockIPAllocatorMockRecorder
- func (m *MockIPAllocator) ReleaseIP(ctx context.Context, id, address string) error
- func (m *MockIPAllocator) ReleasePool(ctx context.Context, id string) error
- type MockIPAllocatorMockRecorder
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 ¶
func (m *MockIPAllocator) EXPECT() *MockIPAllocatorMockRecorder
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.
Click to show internal directories.
Click to hide internal directories.