-
Notifications
You must be signed in to change notification settings - Fork 51
/
mock_iptablesprovider.go
116 lines (96 loc) · 3.54 KB
/
mock_iptablesprovider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Automatically generated by MockGen. DO NOT EDIT!
// Source: supervisor/provider/iptablesprovider.go
// nolint
package mockprovider
import (
gomock "github.com/golang/mock/gomock"
)
// Mock of IptablesProvider interface
type MockIptablesProvider struct {
ctrl *gomock.Controller
recorder *_MockIptablesProviderRecorder
}
// Recorder for MockIptablesProvider (not exported)
type _MockIptablesProviderRecorder struct {
mock *MockIptablesProvider
}
func NewMockIptablesProvider(ctrl *gomock.Controller) *MockIptablesProvider {
mock := &MockIptablesProvider{ctrl: ctrl}
mock.recorder = &_MockIptablesProviderRecorder{mock}
return mock
}
func (_m *MockIptablesProvider) EXPECT() *_MockIptablesProviderRecorder {
return _m.recorder
}
func (_m *MockIptablesProvider) Append(table string, chain string, rulespec ...string) error {
_s := []interface{}{table, chain}
for _, _x := range rulespec {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Append", _s...)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) Append(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0, arg1}, arg2...)
return _mr.mock.ctrl.RecordCall(_mr.mock, "Append", _s...)
}
func (_m *MockIptablesProvider) Insert(table string, chain string, pos int, rulespec ...string) error {
_s := []interface{}{table, chain, pos}
for _, _x := range rulespec {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Insert", _s...)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) Insert(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0, arg1, arg2}, arg3...)
return _mr.mock.ctrl.RecordCall(_mr.mock, "Insert", _s...)
}
func (_m *MockIptablesProvider) Delete(table string, chain string, rulespec ...string) error {
_s := []interface{}{table, chain}
for _, _x := range rulespec {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Delete", _s...)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0, arg1}, arg2...)
return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete", _s...)
}
func (_m *MockIptablesProvider) ListChains(table string) ([]string, error) {
ret := _m.ctrl.Call(_m, "ListChains", table)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockIptablesProviderRecorder) ListChains(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ListChains", arg0)
}
func (_m *MockIptablesProvider) ClearChain(table string, chain string) error {
ret := _m.ctrl.Call(_m, "ClearChain", table, chain)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) ClearChain(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ClearChain", arg0, arg1)
}
func (_m *MockIptablesProvider) DeleteChain(table string, chain string) error {
ret := _m.ctrl.Call(_m, "DeleteChain", table, chain)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) DeleteChain(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteChain", arg0, arg1)
}
func (_m *MockIptablesProvider) NewChain(table string, chain string) error {
ret := _m.ctrl.Call(_m, "NewChain", table, chain)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockIptablesProviderRecorder) NewChain(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewChain", arg0, arg1)
}