v1.15.0 Latest Latest

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

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



Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/nodeportlocal/rules (interfaces: PodPortRules)

Generated by this command:

mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/nodeportlocal/rules/testing/mock_rules.go -package testing antrea.io/antrea/pkg/agent/nodeportlocal/rules PodPortRules

Package testing is a generated GoMock package.



This section is empty.


This section is empty.


This section is empty.


type MockPodPortRules

type MockPodPortRules struct {
	// contains filtered or unexported fields

MockPodPortRules is a mock of PodPortRules interface.

func NewMockPodPortRules

func NewMockPodPortRules(ctrl *gomock.Controller) *MockPodPortRules

NewMockPodPortRules creates a new mock instance.

func (*MockPodPortRules) AddAllRules

func (m *MockPodPortRules) AddAllRules(arg0 []rules.PodNodePort) error

AddAllRules mocks base method.

func (*MockPodPortRules) AddRule

func (m *MockPodPortRules) AddRule(arg0 int, arg1 string, arg2 int, arg3 string) error

AddRule mocks base method.

func (*MockPodPortRules) DeleteAllRules

func (m *MockPodPortRules) DeleteAllRules() error

DeleteAllRules mocks base method.

func (*MockPodPortRules) DeleteRule

func (m *MockPodPortRules) DeleteRule(arg0 int, arg1 string, arg2 int, arg3 string) error

DeleteRule mocks base method.

func (*MockPodPortRules) EXPECT

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

func (*MockPodPortRules) Init

func (m *MockPodPortRules) Init() error

Init mocks base method.

type MockPodPortRulesMockRecorder

type MockPodPortRulesMockRecorder struct {
	// contains filtered or unexported fields

MockPodPortRulesMockRecorder is the mock recorder for MockPodPortRules.

func (*MockPodPortRulesMockRecorder) AddAllRules

func (mr *MockPodPortRulesMockRecorder) AddAllRules(arg0 any) *gomock.Call

AddAllRules indicates an expected call of AddAllRules.

func (*MockPodPortRulesMockRecorder) AddRule

func (mr *MockPodPortRulesMockRecorder) AddRule(arg0, arg1, arg2, arg3 any) *gomock.Call

AddRule indicates an expected call of AddRule.

func (*MockPodPortRulesMockRecorder) DeleteAllRules

func (mr *MockPodPortRulesMockRecorder) DeleteAllRules() *gomock.Call

DeleteAllRules indicates an expected call of DeleteAllRules.

func (*MockPodPortRulesMockRecorder) DeleteRule

func (mr *MockPodPortRulesMockRecorder) DeleteRule(arg0, arg1, arg2, arg3 any) *gomock.Call

DeleteRule indicates an expected call of DeleteRule.

func (*MockPodPortRulesMockRecorder) Init

Init indicates an expected call of Init.

Jump to

Keyboard shortcuts

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