Documentation ¶
Overview ¶
Package mock_networkutils is a generated GoMock package.
Index ¶
- type MockNetworkAPIs
- func (m *MockNetworkAPIs) DeleteRuleListBySrc(arg0 net.IPNet) error
- func (m *MockNetworkAPIs) EXPECT() *MockNetworkAPIsMockRecorder
- func (m *MockNetworkAPIs) GetRuleList() ([]netlink.Rule, error)
- func (m *MockNetworkAPIs) GetRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet) ([]netlink.Rule, error)
- func (m *MockNetworkAPIs) SetupENINetwork(arg0, arg1 string, arg2 int, arg3 string) error
- func (m *MockNetworkAPIs) SetupHostNetwork(arg0 *net.IPNet, arg1 []*string, arg2 string, arg3 *net.IP) error
- func (m *MockNetworkAPIs) UpdateRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet, arg2 []string, arg3 bool) error
- func (m *MockNetworkAPIs) UseExternalSNAT() bool
- type MockNetworkAPIsMockRecorder
- func (mr *MockNetworkAPIsMockRecorder) DeleteRuleListBySrc(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) GetRuleList() *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) GetRuleListBySrc(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) SetupENINetwork(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) SetupHostNetwork(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) UpdateRuleListBySrc(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) UseExternalSNAT() *gomock.Call
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 ¶
func (m *MockNetworkAPIs) DeleteRuleListBySrc(arg0 net.IPNet) error
DeleteRuleListBySrc mocks base method
func (*MockNetworkAPIs) EXPECT ¶
func (m *MockNetworkAPIs) EXPECT() *MockNetworkAPIsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetworkAPIs) GetRuleList ¶
func (m *MockNetworkAPIs) GetRuleList() ([]netlink.Rule, error)
GetRuleList mocks base method
func (*MockNetworkAPIs) GetRuleListBySrc ¶
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 *net.IPNet, arg1 []*string, arg2 string, arg3 *net.IP) error
SetupHostNetwork mocks base method
func (*MockNetworkAPIs) UpdateRuleListBySrc ¶
func (m *MockNetworkAPIs) UpdateRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet, arg2 []string, arg3 bool) error
UpdateRuleListBySrc mocks base method
func (*MockNetworkAPIs) UseExternalSNAT ¶
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 ¶
func (mr *MockNetworkAPIsMockRecorder) DeleteRuleListBySrc(arg0 interface{}) *gomock.Call
DeleteRuleListBySrc indicates an expected call of DeleteRuleListBySrc
func (*MockNetworkAPIsMockRecorder) GetRuleList ¶
func (mr *MockNetworkAPIsMockRecorder) GetRuleList() *gomock.Call
GetRuleList indicates an expected call of GetRuleList
func (*MockNetworkAPIsMockRecorder) GetRuleListBySrc ¶
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 ¶
func (mr *MockNetworkAPIsMockRecorder) UpdateRuleListBySrc(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UpdateRuleListBySrc indicates an expected call of UpdateRuleListBySrc
func (*MockNetworkAPIsMockRecorder) UseExternalSNAT ¶
func (mr *MockNetworkAPIsMockRecorder) UseExternalSNAT() *gomock.Call
UseExternalSNAT indicates an expected call of UseExternalSNAT