Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AppendRule(arg0 iptables.Protocol, arg1, arg2 string, arg3 []string) error
- func (m *MockInterface) ChainExists(arg0 iptables.Protocol, arg1, arg2 string) (bool, error)
- func (m *MockInterface) DeleteChain(arg0 iptables.Protocol, arg1, arg2 string) error
- func (m *MockInterface) DeleteRule(arg0 iptables.Protocol, arg1, arg2 string, arg3 []string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) EnsureChain(arg0 iptables.Protocol, arg1, arg2 string) error
- func (m *MockInterface) InsertRule(arg0 iptables.Protocol, arg1, arg2 string, arg3 []string) error
- func (m *MockInterface) ListRules(arg0, arg1 string) ([]string, error)
- func (m *MockInterface) Restore(arg0 string, arg1, arg2 bool) error
- func (m *MockInterface) Save() ([]byte, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AppendRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ChainExists(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteChain(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) EnsureChain(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) InsertRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListRules(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Restore(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Save() *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) AppendRule ¶
AppendRule mocks base method
func (*MockInterface) ChainExists ¶
ChainExists mocks base method
func (*MockInterface) DeleteChain ¶
func (m *MockInterface) DeleteChain(arg0 iptables.Protocol, arg1, arg2 string) error
DeleteChain mocks base method
func (*MockInterface) DeleteRule ¶
DeleteRule mocks base method
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) EnsureChain ¶
func (m *MockInterface) EnsureChain(arg0 iptables.Protocol, arg1, arg2 string) error
EnsureChain mocks base method
func (*MockInterface) InsertRule ¶
InsertRule mocks base method
func (*MockInterface) ListRules ¶
func (m *MockInterface) ListRules(arg0, arg1 string) ([]string, error)
ListRules mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) AppendRule ¶
func (mr *MockInterfaceMockRecorder) AppendRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AppendRule indicates an expected call of AppendRule
func (*MockInterfaceMockRecorder) ChainExists ¶
func (mr *MockInterfaceMockRecorder) ChainExists(arg0, arg1, arg2 interface{}) *gomock.Call
ChainExists indicates an expected call of ChainExists
func (*MockInterfaceMockRecorder) DeleteChain ¶
func (mr *MockInterfaceMockRecorder) DeleteChain(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteChain indicates an expected call of DeleteChain
func (*MockInterfaceMockRecorder) DeleteRule ¶
func (mr *MockInterfaceMockRecorder) DeleteRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DeleteRule indicates an expected call of DeleteRule
func (*MockInterfaceMockRecorder) EnsureChain ¶
func (mr *MockInterfaceMockRecorder) EnsureChain(arg0, arg1, arg2 interface{}) *gomock.Call
EnsureChain indicates an expected call of EnsureChain
func (*MockInterfaceMockRecorder) InsertRule ¶
func (mr *MockInterfaceMockRecorder) InsertRule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InsertRule indicates an expected call of InsertRule
func (*MockInterfaceMockRecorder) ListRules ¶
func (mr *MockInterfaceMockRecorder) ListRules(arg0, arg1 interface{}) *gomock.Call
ListRules indicates an expected call of ListRules
func (*MockInterfaceMockRecorder) Restore ¶
func (mr *MockInterfaceMockRecorder) Restore(arg0, arg1, arg2 interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockInterfaceMockRecorder) Save ¶
func (mr *MockInterfaceMockRecorder) Save() *gomock.Call
Save indicates an expected call of Save