Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- type MockIpset
- func (_m *MockIpset) Add(entry string, timeout int) error
- func (_m *MockIpset) AddOption(entry string, option string, timeout int) error
- func (_m *MockIpset) Del(entry string) error
- func (_m *MockIpset) Destroy() error
- func (_m *MockIpset) EXPECT() *_MockIpsetRecorder
- func (_m *MockIpset) Flush() error
- func (_m *MockIpset) Test(entry string) (bool, error)
- type MockIpsetProvider
- type MockIptablesProvider
- func (_m *MockIptablesProvider) Append(table string, chain string, rulespec ...string) error
- func (_m *MockIptablesProvider) ClearChain(table string, chain string) error
- func (_m *MockIptablesProvider) Delete(table string, chain string, rulespec ...string) error
- func (_m *MockIptablesProvider) DeleteChain(table string, chain string) error
- func (_m *MockIptablesProvider) EXPECT() *_MockIptablesProviderRecorder
- func (_m *MockIptablesProvider) Insert(table string, chain string, pos int, rulespec ...string) error
- func (_m *MockIptablesProvider) ListChains(table string) ([]string, error)
- func (_m *MockIptablesProvider) NewChain(table string, chain string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIpset ¶
type MockIpset struct {
// contains filtered or unexported fields
}
Mock of Ipset interface
func NewMockIpset ¶
func NewMockIpset(ctrl *gomock.Controller) *MockIpset
type MockIpsetProvider ¶
type MockIpsetProvider struct {
// contains filtered or unexported fields
}
Mock of IpsetProvider interface
func NewMockIpsetProvider ¶
func NewMockIpsetProvider(ctrl *gomock.Controller) *MockIpsetProvider
func (*MockIpsetProvider) DestroyAll ¶
func (_m *MockIpsetProvider) DestroyAll() error
func (*MockIpsetProvider) EXPECT ¶
func (_m *MockIpsetProvider) EXPECT() *_MockIpsetProviderRecorder
type MockIptablesProvider ¶
type MockIptablesProvider struct {
// contains filtered or unexported fields
}
Mock of IptablesProvider interface
func NewMockIptablesProvider ¶
func NewMockIptablesProvider(ctrl *gomock.Controller) *MockIptablesProvider
func (*MockIptablesProvider) Append ¶
func (_m *MockIptablesProvider) Append(table string, chain string, rulespec ...string) error
func (*MockIptablesProvider) ClearChain ¶
func (_m *MockIptablesProvider) ClearChain(table string, chain string) error
func (*MockIptablesProvider) Delete ¶
func (_m *MockIptablesProvider) Delete(table string, chain string, rulespec ...string) error
func (*MockIptablesProvider) DeleteChain ¶
func (_m *MockIptablesProvider) DeleteChain(table string, chain string) error
func (*MockIptablesProvider) EXPECT ¶
func (_m *MockIptablesProvider) EXPECT() *_MockIptablesProviderRecorder
func (*MockIptablesProvider) ListChains ¶
func (_m *MockIptablesProvider) ListChains(table string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.