mock_networkutils

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_networkutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNetworkAPIs

type MockNetworkAPIs struct {
	// contains filtered or unexported fields
}

MockNetworkAPIs is a mock of NetworkAPIs interface

func NewMockNetworkAPIs

func NewMockNetworkAPIs(ctrl *gomock.Controller) *MockNetworkAPIs

NewMockNetworkAPIs creates a new mock instance

func (*MockNetworkAPIs) DeleteRuleListBySrc added in v1.3.0

func (m *MockNetworkAPIs) DeleteRuleListBySrc(arg0 net.IPNet) error

DeleteRuleListBySrc mocks base method

func (*MockNetworkAPIs) EXPECT

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

func (*MockNetworkAPIs) GetExcludeSNATCIDRs added in v1.6.1

func (m *MockNetworkAPIs) GetExcludeSNATCIDRs() []string

GetExcludeSNATCIDRs mocks base method

func (*MockNetworkAPIs) GetLinkByMac added in v1.6.4

func (m *MockNetworkAPIs) GetLinkByMac(arg0 string, arg1 time.Duration) (netlink.Link, error)

GetLinkByMac mocks base method

func (*MockNetworkAPIs) GetRuleList added in v1.3.0

func (m *MockNetworkAPIs) GetRuleList() ([]netlink.Rule, error)

GetRuleList mocks base method

func (*MockNetworkAPIs) GetRuleListBySrc added in v1.3.0

func (m *MockNetworkAPIs) GetRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet) ([]netlink.Rule, error)

GetRuleListBySrc mocks base method

func (*MockNetworkAPIs) SetupENINetwork

func (m *MockNetworkAPIs) SetupENINetwork(arg0, arg1 string, arg2 int, arg3 string) error

SetupENINetwork mocks base method

func (*MockNetworkAPIs) SetupHostNetwork

func (m *MockNetworkAPIs) SetupHostNetwork(arg0 []string, arg1 string, arg2 *net.IP, arg3 bool) error

SetupHostNetwork mocks base method

func (*MockNetworkAPIs) UpdateRuleListBySrc added in v1.3.0

func (m *MockNetworkAPIs) UpdateRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet, arg2 []string, arg3 bool) error

UpdateRuleListBySrc mocks base method

func (*MockNetworkAPIs) UseExternalSNAT added in v1.3.0

func (m *MockNetworkAPIs) UseExternalSNAT() bool

UseExternalSNAT mocks base method

type MockNetworkAPIsMockRecorder

type MockNetworkAPIsMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkAPIsMockRecorder is the mock recorder for MockNetworkAPIs

func (*MockNetworkAPIsMockRecorder) DeleteRuleListBySrc added in v1.3.0

func (mr *MockNetworkAPIsMockRecorder) DeleteRuleListBySrc(arg0 interface{}) *gomock.Call

DeleteRuleListBySrc indicates an expected call of DeleteRuleListBySrc

func (*MockNetworkAPIsMockRecorder) GetExcludeSNATCIDRs added in v1.6.1

func (mr *MockNetworkAPIsMockRecorder) GetExcludeSNATCIDRs() *gomock.Call

GetExcludeSNATCIDRs indicates an expected call of GetExcludeSNATCIDRs

func (*MockNetworkAPIsMockRecorder) GetLinkByMac added in v1.6.4

func (mr *MockNetworkAPIsMockRecorder) GetLinkByMac(arg0, arg1 interface{}) *gomock.Call

GetLinkByMac indicates an expected call of GetLinkByMac

func (*MockNetworkAPIsMockRecorder) GetRuleList added in v1.3.0

func (mr *MockNetworkAPIsMockRecorder) GetRuleList() *gomock.Call

GetRuleList indicates an expected call of GetRuleList

func (*MockNetworkAPIsMockRecorder) GetRuleListBySrc added in v1.3.0

func (mr *MockNetworkAPIsMockRecorder) GetRuleListBySrc(arg0, arg1 interface{}) *gomock.Call

GetRuleListBySrc indicates an expected call of GetRuleListBySrc

func (*MockNetworkAPIsMockRecorder) SetupENINetwork

func (mr *MockNetworkAPIsMockRecorder) SetupENINetwork(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetupENINetwork indicates an expected call of SetupENINetwork

func (*MockNetworkAPIsMockRecorder) SetupHostNetwork

func (mr *MockNetworkAPIsMockRecorder) SetupHostNetwork(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetupHostNetwork indicates an expected call of SetupHostNetwork

func (*MockNetworkAPIsMockRecorder) UpdateRuleListBySrc added in v1.3.0

func (mr *MockNetworkAPIsMockRecorder) UpdateRuleListBySrc(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpdateRuleListBySrc indicates an expected call of UpdateRuleListBySrc

func (*MockNetworkAPIsMockRecorder) UseExternalSNAT added in v1.3.0

func (mr *MockNetworkAPIsMockRecorder) UseExternalSNAT() *gomock.Call

UseExternalSNAT indicates an expected call of UseExternalSNAT

Jump to

Keyboard shortcuts

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