Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/cniserver (interfaces: SriovNet)
Generated by this command:
mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/cniserver/testing/mock_cniserver.go -package testing antrea.io/antrea/pkg/agent/cniserver SriovNet
Package testing is a generated GoMock package.
Index ¶
- func GenerateCNIArgs(podName string, podNamespace string, podInfraContainerID string) string
- type MockSriovNet
- func (m *MockSriovNet) EXPECT() *MockSriovNetMockRecorder
- func (m *MockSriovNet) GetNetDevicesFromPci(arg0 string) ([]string, error)
- func (m *MockSriovNet) GetPfName(arg0 string) (string, error)
- func (m *MockSriovNet) GetUplinkRepresentor(arg0 string) (string, error)
- func (m *MockSriovNet) GetVFLinkNames(arg0 string) (string, error)
- func (m *MockSriovNet) GetVfIndexByPciAddress(arg0 string) (int, error)
- func (m *MockSriovNet) GetVfRepresentor(arg0 string, arg1 int) (string, error)
- func (m *MockSriovNet) GetVfid(arg0, arg1 string) (int, error)
- type MockSriovNetMockRecorder
- func (mr *MockSriovNetMockRecorder) GetNetDevicesFromPci(arg0 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetPfName(arg0 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetUplinkRepresentor(arg0 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetVFLinkNames(arg0 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetVfIndexByPciAddress(arg0 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetVfRepresentor(arg0, arg1 any) *gomock.Call
- func (mr *MockSriovNetMockRecorder) GetVfid(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockSriovNet ¶ added in v1.11.0
type MockSriovNet struct {
// contains filtered or unexported fields
}
MockSriovNet is a mock of SriovNet interface.
func NewMockSriovNet ¶ added in v1.11.0
func NewMockSriovNet(ctrl *gomock.Controller) *MockSriovNet
NewMockSriovNet creates a new mock instance.
func (*MockSriovNet) EXPECT ¶ added in v1.11.0
func (m *MockSriovNet) EXPECT() *MockSriovNetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSriovNet) GetNetDevicesFromPci ¶ added in v1.11.0
func (m *MockSriovNet) GetNetDevicesFromPci(arg0 string) ([]string, error)
GetNetDevicesFromPci mocks base method.
func (*MockSriovNet) GetPfName ¶ added in v1.11.0
func (m *MockSriovNet) GetPfName(arg0 string) (string, error)
GetPfName mocks base method.
func (*MockSriovNet) GetUplinkRepresentor ¶ added in v1.11.0
func (m *MockSriovNet) GetUplinkRepresentor(arg0 string) (string, error)
GetUplinkRepresentor mocks base method.
func (*MockSriovNet) GetVFLinkNames ¶ added in v1.11.0
func (m *MockSriovNet) GetVFLinkNames(arg0 string) (string, error)
GetVFLinkNames mocks base method.
func (*MockSriovNet) GetVfIndexByPciAddress ¶ added in v1.11.0
func (m *MockSriovNet) GetVfIndexByPciAddress(arg0 string) (int, error)
GetVfIndexByPciAddress mocks base method.
func (*MockSriovNet) GetVfRepresentor ¶ added in v1.11.0
func (m *MockSriovNet) GetVfRepresentor(arg0 string, arg1 int) (string, error)
GetVfRepresentor mocks base method.
type MockSriovNetMockRecorder ¶ added in v1.11.0
type MockSriovNetMockRecorder struct {
// contains filtered or unexported fields
}
MockSriovNetMockRecorder is the mock recorder for MockSriovNet.
func (*MockSriovNetMockRecorder) GetNetDevicesFromPci ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetNetDevicesFromPci(arg0 any) *gomock.Call
GetNetDevicesFromPci indicates an expected call of GetNetDevicesFromPci.
func (*MockSriovNetMockRecorder) GetPfName ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetPfName(arg0 any) *gomock.Call
GetPfName indicates an expected call of GetPfName.
func (*MockSriovNetMockRecorder) GetUplinkRepresentor ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetUplinkRepresentor(arg0 any) *gomock.Call
GetUplinkRepresentor indicates an expected call of GetUplinkRepresentor.
func (*MockSriovNetMockRecorder) GetVFLinkNames ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetVFLinkNames(arg0 any) *gomock.Call
GetVFLinkNames indicates an expected call of GetVFLinkNames.
func (*MockSriovNetMockRecorder) GetVfIndexByPciAddress ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetVfIndexByPciAddress(arg0 any) *gomock.Call
GetVfIndexByPciAddress indicates an expected call of GetVfIndexByPciAddress.
func (*MockSriovNetMockRecorder) GetVfRepresentor ¶ added in v1.11.0
func (mr *MockSriovNetMockRecorder) GetVfRepresentor(arg0, arg1 any) *gomock.Call
GetVfRepresentor indicates an expected call of GetVfRepresentor.