Documentation
¶
Overview ¶
Package mockiptableswrapper is a generated GoMock package.
Index ¶
- type MockInterface
- type MockInterfaceMockRecorder
- type MockIpTables
- func (m *MockIpTables) AppendUnique(table, chain string, rulespec ...string) error
- func (m *MockIpTables) Delete(table, chain string, rulespec ...string) error
- func (m *MockIpTables) EXPECT() *MockIpTablesMockRecorder
- func (m *MockIpTables) Exists(table, chain string, rulespec ...string) (bool, error)
- func (m *MockIpTables) Insert(table, chain string, pos int, rulespec ...string) error
- func (m *MockIpTables) List(table, chain string) ([]string, error)
- type MockIpTablesMockRecorder
- func (mr *MockIpTablesMockRecorder) AppendUnique(table, chain interface{}, rulespec ...interface{}) *gomock.Call
- func (mr *MockIpTablesMockRecorder) Delete(table, chain interface{}, rulespec ...interface{}) *gomock.Call
- func (mr *MockIpTablesMockRecorder) Exists(table, chain interface{}, rulespec ...interface{}) *gomock.Call
- func (mr *MockIpTablesMockRecorder) Insert(table, chain, pos interface{}, rulespec ...interface{}) *gomock.Call
- func (mr *MockIpTablesMockRecorder) List(table, chain interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) New ¶
func (m *MockInterface) New() (iptableswrapper.IpTables, error)
New mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) New ¶
func (mr *MockInterfaceMockRecorder) New() *gomock.Call
New indicates an expected call of New.
type MockIpTables ¶
type MockIpTables struct {
// contains filtered or unexported fields
}
MockIpTables is a mock of IpTables interface.
func NewMockIpTables ¶
func NewMockIpTables(ctrl *gomock.Controller) *MockIpTables
NewMockIpTables creates a new mock instance.
func (*MockIpTables) AppendUnique ¶
func (m *MockIpTables) AppendUnique(table, chain string, rulespec ...string) error
AppendUnique mocks base method.
func (*MockIpTables) Delete ¶
func (m *MockIpTables) Delete(table, chain string, rulespec ...string) error
Delete mocks base method.
func (*MockIpTables) EXPECT ¶
func (m *MockIpTables) EXPECT() *MockIpTablesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIpTables) Exists ¶
func (m *MockIpTables) Exists(table, chain string, rulespec ...string) (bool, error)
Exists mocks base method.
type MockIpTablesMockRecorder ¶
type MockIpTablesMockRecorder struct {
// contains filtered or unexported fields
}
MockIpTablesMockRecorder is the mock recorder for MockIpTables.
func (*MockIpTablesMockRecorder) AppendUnique ¶
func (mr *MockIpTablesMockRecorder) AppendUnique(table, chain interface{}, rulespec ...interface{}) *gomock.Call
AppendUnique indicates an expected call of AppendUnique.
func (*MockIpTablesMockRecorder) Delete ¶
func (mr *MockIpTablesMockRecorder) Delete(table, chain interface{}, rulespec ...interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIpTablesMockRecorder) Exists ¶
func (mr *MockIpTablesMockRecorder) Exists(table, chain interface{}, rulespec ...interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockIpTablesMockRecorder) Insert ¶
func (mr *MockIpTablesMockRecorder) Insert(table, chain, pos interface{}, rulespec ...interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockIpTablesMockRecorder) List ¶
func (mr *MockIpTablesMockRecorder) List(table, chain interface{}) *gomock.Call
List indicates an expected call of List.