testing

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCNIArgs

func GenerateCNIArgs(podName string, podNamespace string, podInfraContainerID string) string

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

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.

func (*MockSriovNet) GetVfid added in v1.11.0

func (m *MockSriovNet) GetVfid(arg0, arg1 string) (int, error)

GetVfid 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.

func (*MockSriovNetMockRecorder) GetVfid added in v1.11.0

func (mr *MockSriovNetMockRecorder) GetVfid(arg0, arg1 any) *gomock.Call

GetVfid indicates an expected call of GetVfid.

Jump to

Keyboard shortcuts

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