Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockExclusiveEniInterface
- func (m *MockExclusiveEniInterface) Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
- func (m *MockExclusiveEniInterface) EXPECT() *MockExclusiveEniInterfaceMockRecorder
- func (m *MockExclusiveEniInterface) Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
- func (m *MockExclusiveEniInterface) Run(ctx context.Context, stopCh <-chan struct{}) error
- type MockExclusiveEniInterfaceMockRecorder
- func (mr *MockExclusiveEniInterfaceMockRecorder) Allocate(ctx, name, namespace, containerID interface{}) *gomock.Call
- func (mr *MockExclusiveEniInterfaceMockRecorder) Release(ctx, name, namespace, containerID interface{}) *gomock.Call
- func (mr *MockExclusiveEniInterfaceMockRecorder) Run(ctx, stopCh interface{}) *gomock.Call
- type MockInterface
- func (m *MockInterface) Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Ready(ctx context.Context) bool
- func (m *MockInterface) Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
- func (m *MockInterface) Run(ctx context.Context, stopCh <-chan struct{}) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Allocate(ctx, name, namespace, containerID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Ready(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Release(ctx, name, namespace, containerID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Run(ctx, stopCh interface{}) *gomock.Call
- type MockRoceInterface
- func (m *MockRoceInterface) Allocate(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 rpc.IPType) (*v1alpha1.WorkloadEndpoint, error)
- func (m *MockRoceInterface) EXPECT() *MockRoceInterfaceMockRecorder
- func (m *MockRoceInterface) Ready(arg0 context.Context) bool
- func (m *MockRoceInterface) Release(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.WorkloadEndpoint, error)
- func (m *MockRoceInterface) Run(arg0 context.Context, arg1 <-chan struct{}) error
- type MockRoceInterfaceMockRecorder
- func (mr *MockRoceInterfaceMockRecorder) Allocate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockRoceInterfaceMockRecorder) Ready(arg0 interface{}) *gomock.Call
- func (mr *MockRoceInterfaceMockRecorder) Release(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockRoceInterfaceMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExclusiveEniInterface ¶
type MockExclusiveEniInterface struct {
// contains filtered or unexported fields
}
MockExclusiveEniInterface is a mock of ExclusiveEniInterface interface
func NewMockExclusiveEniInterface ¶
func NewMockExclusiveEniInterface(ctrl *gomock.Controller) *MockExclusiveEniInterface
NewMockExclusiveEniInterface creates a new mock instance
func (*MockExclusiveEniInterface) Allocate ¶
func (m *MockExclusiveEniInterface) Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
Allocate mocks base method
func (*MockExclusiveEniInterface) EXPECT ¶
func (m *MockExclusiveEniInterface) EXPECT() *MockExclusiveEniInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockExclusiveEniInterface) Release ¶
func (m *MockExclusiveEniInterface) Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
Release mocks base method
type MockExclusiveEniInterfaceMockRecorder ¶
type MockExclusiveEniInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockExclusiveEniInterfaceMockRecorder is the mock recorder for MockExclusiveEniInterface
func (*MockExclusiveEniInterfaceMockRecorder) Allocate ¶
func (mr *MockExclusiveEniInterfaceMockRecorder) Allocate(ctx, name, namespace, containerID interface{}) *gomock.Call
Allocate indicates an expected call of Allocate
func (*MockExclusiveEniInterfaceMockRecorder) Release ¶
func (mr *MockExclusiveEniInterfaceMockRecorder) Release(ctx, name, namespace, containerID interface{}) *gomock.Call
Release indicates an expected call of Release
func (*MockExclusiveEniInterfaceMockRecorder) Run ¶
func (mr *MockExclusiveEniInterfaceMockRecorder) Run(ctx, stopCh interface{}) *gomock.Call
Run indicates an expected call of Run
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) Allocate ¶
func (m *MockInterface) Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
Allocate mocks base method
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) Ready ¶
func (m *MockInterface) Ready(ctx context.Context) bool
Ready mocks base method
func (*MockInterface) Release ¶
func (m *MockInterface) Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
Release mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) Allocate ¶
func (mr *MockInterfaceMockRecorder) Allocate(ctx, name, namespace, containerID interface{}) *gomock.Call
Allocate indicates an expected call of Allocate
func (*MockInterfaceMockRecorder) Ready ¶
func (mr *MockInterfaceMockRecorder) Ready(ctx interface{}) *gomock.Call
Ready indicates an expected call of Ready
func (*MockInterfaceMockRecorder) Release ¶
func (mr *MockInterfaceMockRecorder) Release(ctx, name, namespace, containerID interface{}) *gomock.Call
Release indicates an expected call of Release
func (*MockInterfaceMockRecorder) Run ¶
func (mr *MockInterfaceMockRecorder) Run(ctx, stopCh interface{}) *gomock.Call
Run indicates an expected call of Run
type MockRoceInterface ¶ added in v1.6.12
type MockRoceInterface struct {
// contains filtered or unexported fields
}
MockRoceInterface is a mock of RoceInterface interface
func NewMockRoceInterface ¶ added in v1.6.12
func NewMockRoceInterface(ctrl *gomock.Controller) *MockRoceInterface
NewMockRoceInterface creates a new mock instance.
func (*MockRoceInterface) Allocate ¶ added in v1.6.12
func (m *MockRoceInterface) Allocate(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 rpc.IPType) (*v1alpha1.WorkloadEndpoint, error)
Allocate mocks base method.
func (*MockRoceInterface) EXPECT ¶ added in v1.6.12
func (m *MockRoceInterface) EXPECT() *MockRoceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoceInterface) Ready ¶ added in v1.6.12
func (m *MockRoceInterface) Ready(arg0 context.Context) bool
Ready mocks base method.
func (*MockRoceInterface) Release ¶ added in v1.6.12
func (m *MockRoceInterface) Release(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.WorkloadEndpoint, error)
Release mocks base method.
type MockRoceInterfaceMockRecorder ¶ added in v1.6.12
type MockRoceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRoceInterfaceMockRecorder is the mock recorder for MockRoceInterface.
func (*MockRoceInterfaceMockRecorder) Allocate ¶ added in v1.6.12
func (mr *MockRoceInterfaceMockRecorder) Allocate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Allocate indicates an expected call of Allocate.
func (*MockRoceInterfaceMockRecorder) Ready ¶ added in v1.6.12
func (mr *MockRoceInterfaceMockRecorder) Ready(arg0 interface{}) *gomock.Call
Ready indicates an expected call of Ready.
func (*MockRoceInterfaceMockRecorder) Release ¶ added in v1.6.12
func (mr *MockRoceInterfaceMockRecorder) Release(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Release indicates an expected call of Release.
func (*MockRoceInterfaceMockRecorder) Run ¶ added in v1.6.12
func (mr *MockRoceInterfaceMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.