Documentation ¶
Overview ¶
Package mock_networkutils is a generated GoMock package.
Index ¶
- type MockNetworkAPIs
- func (m *MockNetworkAPIs) CleanUpStaleAWSChains(arg0, arg1 bool) error
- func (m *MockNetworkAPIs) EXPECT() *MockNetworkAPIsMockRecorder
- func (m *MockNetworkAPIs) GetExcludeSNATCIDRs() []string
- func (m *MockNetworkAPIs) GetExternalServiceCIDRs() []string
- func (m *MockNetworkAPIs) GetLinkByMac(arg0 string, arg1 time.Duration) (netlink.Link, error)
- 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 []string, arg1 string, arg2 *net.IP, arg3, arg4, arg5 bool) error
- func (m *MockNetworkAPIs) UpdateExternalServiceIpRules(arg0 []netlink.Rule, arg1 []string) error
- func (m *MockNetworkAPIs) UpdateHostIptablesRules(arg0 []string, arg1 string, arg2 *net.IP, arg3, arg4 bool) error
- func (m *MockNetworkAPIs) UpdateRuleListBySrc(arg0 []netlink.Rule, arg1 net.IPNet) error
- func (m *MockNetworkAPIs) UseExternalSNAT() bool
- type MockNetworkAPIsMockRecorder
- func (mr *MockNetworkAPIsMockRecorder) CleanUpStaleAWSChains(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) GetExcludeSNATCIDRs() *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) GetExternalServiceCIDRs() *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) GetLinkByMac(arg0, arg1 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, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) UpdateExternalServiceIpRules(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) UpdateHostIptablesRules(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockNetworkAPIsMockRecorder) UpdateRuleListBySrc(arg0, arg1 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) CleanUpStaleAWSChains ¶ added in v1.16.2
func (m *MockNetworkAPIs) CleanUpStaleAWSChains(arg0, arg1 bool) error
CleanUpStaleAWSChains 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) GetExcludeSNATCIDRs ¶ added in v1.6.1
func (m *MockNetworkAPIs) GetExcludeSNATCIDRs() []string
GetExcludeSNATCIDRs mocks base method.
func (*MockNetworkAPIs) GetExternalServiceCIDRs ¶ added in v1.12.6
func (m *MockNetworkAPIs) GetExternalServiceCIDRs() []string
GetExternalServiceCIDRs mocks base method.
func (*MockNetworkAPIs) GetLinkByMac ¶ added in v1.6.4
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, arg4, arg5 bool) error
SetupHostNetwork mocks base method.
func (*MockNetworkAPIs) UpdateExternalServiceIpRules ¶ added in v1.12.6
func (m *MockNetworkAPIs) UpdateExternalServiceIpRules(arg0 []netlink.Rule, arg1 []string) error
UpdateExternalServiceIpRules mocks base method.
func (*MockNetworkAPIs) UpdateHostIptablesRules ¶ added in v1.8.0
func (m *MockNetworkAPIs) UpdateHostIptablesRules(arg0 []string, arg1 string, arg2 *net.IP, arg3, arg4 bool) error
UpdateHostIptablesRules mocks base method.
func (*MockNetworkAPIs) UpdateRuleListBySrc ¶ added in v1.3.0
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) CleanUpStaleAWSChains ¶ added in v1.16.2
func (mr *MockNetworkAPIsMockRecorder) CleanUpStaleAWSChains(arg0, arg1 interface{}) *gomock.Call
CleanUpStaleAWSChains indicates an expected call of CleanUpStaleAWSChains.
func (*MockNetworkAPIsMockRecorder) GetExcludeSNATCIDRs ¶ added in v1.6.1
func (mr *MockNetworkAPIsMockRecorder) GetExcludeSNATCIDRs() *gomock.Call
GetExcludeSNATCIDRs indicates an expected call of GetExcludeSNATCIDRs.
func (*MockNetworkAPIsMockRecorder) GetExternalServiceCIDRs ¶ added in v1.12.6
func (mr *MockNetworkAPIsMockRecorder) GetExternalServiceCIDRs() *gomock.Call
GetExternalServiceCIDRs indicates an expected call of GetExternalServiceCIDRs.
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, arg4, arg5 interface{}) *gomock.Call
SetupHostNetwork indicates an expected call of SetupHostNetwork.
func (*MockNetworkAPIsMockRecorder) UpdateExternalServiceIpRules ¶ added in v1.12.6
func (mr *MockNetworkAPIsMockRecorder) UpdateExternalServiceIpRules(arg0, arg1 interface{}) *gomock.Call
UpdateExternalServiceIpRules indicates an expected call of UpdateExternalServiceIpRules.
func (*MockNetworkAPIsMockRecorder) UpdateHostIptablesRules ¶ added in v1.8.0
func (mr *MockNetworkAPIsMockRecorder) UpdateHostIptablesRules(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
UpdateHostIptablesRules indicates an expected call of UpdateHostIptablesRules.
func (*MockNetworkAPIsMockRecorder) UpdateRuleListBySrc ¶ added in v1.3.0
func (mr *MockNetworkAPIsMockRecorder) UpdateRuleListBySrc(arg0, arg1 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.