testing

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

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

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AcquireIPBySubnet

func (m *MockClient) AcquireIPBySubnet(arg0 context.Context, arg1 api.AcquireIPBySubnetRequest) (*api.AllocatedIPResponse, error)

AcquireIPBySubnet mocks base method.

func (*MockClient) AllocatedIPs

func (m *MockClient) AllocatedIPs(arg0 context.Context) (*api.ListAllocatedIPResponse, error)

AllocatedIPs mocks base method.

func (*MockClient) BatchAcquireIPBySubnet

func (m *MockClient) BatchAcquireIPBySubnet(arg0 context.Context, arg1 api.BatchAcquireIPBySubnetRequest) (*api.ListAllocatedIPResponse, error)

BatchAcquireIPBySubnet mocks base method.

func (*MockClient) BatchReleaseIP

func (m *MockClient) BatchReleaseIP(arg0 context.Context, arg1 api.BatchReleaseIPRequest) error

BatchReleaseIP mocks base method.

func (*MockClient) CreateSubnet

func (m *MockClient) CreateSubnet(arg0 context.Context, arg1 api.Subnet) (*api.SubnetResponse, error)

CreateSubnet mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) ListSubnets

func (m *MockClient) ListSubnets(arg0 context.Context) (*api.ListSubnetResponse, error)

ListSubnets mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AcquireIPBySubnet

func (mr *MockClientMockRecorder) AcquireIPBySubnet(arg0, arg1 interface{}) *gomock.Call

AcquireIPBySubnet indicates an expected call of AcquireIPBySubnet.

func (*MockClientMockRecorder) AllocatedIPs

func (mr *MockClientMockRecorder) AllocatedIPs(arg0 interface{}) *gomock.Call

AllocatedIPs indicates an expected call of AllocatedIPs.

func (*MockClientMockRecorder) BatchAcquireIPBySubnet

func (mr *MockClientMockRecorder) BatchAcquireIPBySubnet(arg0, arg1 interface{}) *gomock.Call

BatchAcquireIPBySubnet indicates an expected call of BatchAcquireIPBySubnet.

func (*MockClientMockRecorder) BatchReleaseIP

func (mr *MockClientMockRecorder) BatchReleaseIP(arg0, arg1 interface{}) *gomock.Call

BatchReleaseIP indicates an expected call of BatchReleaseIP.

func (*MockClientMockRecorder) CreateSubnet

func (mr *MockClientMockRecorder) CreateSubnet(arg0, arg1 interface{}) *gomock.Call

CreateSubnet indicates an expected call of CreateSubnet.

func (*MockClientMockRecorder) ListSubnets

func (mr *MockClientMockRecorder) ListSubnets(arg0 interface{}) *gomock.Call

ListSubnets indicates an expected call of ListSubnets.

Jump to

Keyboard shortcuts

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