Documentation
¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockCNIBackendClient
- func (m *MockCNIBackendClient) AllocateIP(arg0 context.Context, arg1 *rpc.AllocateIPRequest, arg2 ...grpc.CallOption) (*rpc.AllocateIPReply, error)
- func (m *MockCNIBackendClient) CheckIP(arg0 context.Context, arg1 *rpc.CheckIPRequest, arg2 ...grpc.CallOption) (*rpc.CheckIPReply, error)
- func (m *MockCNIBackendClient) EXPECT() *MockCNIBackendClientMockRecorder
- func (m *MockCNIBackendClient) ReleaseIP(arg0 context.Context, arg1 *rpc.ReleaseIPRequest, arg2 ...grpc.CallOption) (*rpc.ReleaseIPReply, error)
- type MockCNIBackendClientMockRecorder
- func (mr *MockCNIBackendClientMockRecorder) AllocateIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCNIBackendClientMockRecorder) CheckIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCNIBackendClientMockRecorder) ReleaseIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCNIBackendClient ¶
type MockCNIBackendClient struct {
// contains filtered or unexported fields
}
MockCNIBackendClient is a mock of CNIBackendClient interface.
func NewMockCNIBackendClient ¶
func NewMockCNIBackendClient(ctrl *gomock.Controller) *MockCNIBackendClient
NewMockCNIBackendClient creates a new mock instance.
func (*MockCNIBackendClient) AllocateIP ¶
func (m *MockCNIBackendClient) AllocateIP(arg0 context.Context, arg1 *rpc.AllocateIPRequest, arg2 ...grpc.CallOption) (*rpc.AllocateIPReply, error)
AllocateIP mocks base method.
func (*MockCNIBackendClient) CheckIP ¶
func (m *MockCNIBackendClient) CheckIP(arg0 context.Context, arg1 *rpc.CheckIPRequest, arg2 ...grpc.CallOption) (*rpc.CheckIPReply, error)
CheckIP mocks base method.
func (*MockCNIBackendClient) EXPECT ¶
func (m *MockCNIBackendClient) EXPECT() *MockCNIBackendClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCNIBackendClient) ReleaseIP ¶
func (m *MockCNIBackendClient) ReleaseIP(arg0 context.Context, arg1 *rpc.ReleaseIPRequest, arg2 ...grpc.CallOption) (*rpc.ReleaseIPReply, error)
ReleaseIP mocks base method.
type MockCNIBackendClientMockRecorder ¶
type MockCNIBackendClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCNIBackendClientMockRecorder is the mock recorder for MockCNIBackendClient.
func (*MockCNIBackendClientMockRecorder) AllocateIP ¶
func (mr *MockCNIBackendClientMockRecorder) AllocateIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AllocateIP indicates an expected call of AllocateIP.
func (*MockCNIBackendClientMockRecorder) CheckIP ¶
func (mr *MockCNIBackendClientMockRecorder) CheckIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CheckIP indicates an expected call of CheckIP.
func (*MockCNIBackendClientMockRecorder) ReleaseIP ¶
func (mr *MockCNIBackendClientMockRecorder) ReleaseIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ReleaseIP indicates an expected call of ReleaseIP.
Click to show internal directories.
Click to hide internal directories.