-
Notifications
You must be signed in to change notification settings - Fork 51
/
mock_interfaces.go
162 lines (130 loc) · 4.64 KB
/
mock_interfaces.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// Automatically generated by MockGen. DO NOT EDIT!
// Source: supervisor/interfaces.go
//nolint
package mockinterfaces
import (
gomock "github.com/aporeto-inc/mock/gomock"
policy "github.com/aporeto-inc/trireme/policy"
)
// Mock of Supervisor interface
type MockSupervisor struct {
ctrl *gomock.Controller
recorder *_MockSupervisorRecorder
}
// Recorder for MockSupervisor (not exported)
type _MockSupervisorRecorder struct {
mock *MockSupervisor
}
func NewMockSupervisor(ctrl *gomock.Controller) *MockSupervisor {
mock := &MockSupervisor{ctrl: ctrl}
mock.recorder = &_MockSupervisorRecorder{mock}
return mock
}
func (_m *MockSupervisor) EXPECT() *_MockSupervisorRecorder {
return _m.recorder
}
func (_m *MockSupervisor) Supervise(contextID string, puInfo *policy.PUInfo) error {
ret := _m.ctrl.Call(_m, "Supervise", contextID, puInfo)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockSupervisorRecorder) Supervise(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Supervise", arg0, arg1)
}
func (_m *MockSupervisor) Unsupervise(contextID string) error {
ret := _m.ctrl.Call(_m, "Unsupervise", contextID)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockSupervisorRecorder) Unsupervise(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Unsupervise", arg0)
}
func (_m *MockSupervisor) Start() error {
ret := _m.ctrl.Call(_m, "Start")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockSupervisorRecorder) Start() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Start")
}
func (_m *MockSupervisor) Stop() error {
ret := _m.ctrl.Call(_m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockSupervisorRecorder) Stop() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Stop")
}
func (_m *MockSupervisor) SetTargetNetworks(_param0 []string) error {
ret := _m.ctrl.Call(_m, "SetTargetNetworks", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockSupervisorRecorder) SetTargetNetworks(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetTargetNetworks", arg0)
}
// Mock of Implementor interface
type MockImplementor struct {
ctrl *gomock.Controller
recorder *_MockImplementorRecorder
}
// Recorder for MockImplementor (not exported)
type _MockImplementorRecorder struct {
mock *MockImplementor
}
func NewMockImplementor(ctrl *gomock.Controller) *MockImplementor {
mock := &MockImplementor{ctrl: ctrl}
mock.recorder = &_MockImplementorRecorder{mock}
return mock
}
func (_m *MockImplementor) EXPECT() *_MockImplementorRecorder {
return _m.recorder
}
func (_m *MockImplementor) ConfigureRules(version int, contextID string, containerInfo *policy.PUInfo) error {
ret := _m.ctrl.Call(_m, "ConfigureRules", version, contextID, containerInfo)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) ConfigureRules(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ConfigureRules", arg0, arg1, arg2)
}
func (_m *MockImplementor) UpdateRules(version int, contextID string, containerInfo *policy.PUInfo) error {
ret := _m.ctrl.Call(_m, "UpdateRules", version, contextID, containerInfo)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) UpdateRules(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateRules", arg0, arg1, arg2)
}
func (_m *MockImplementor) DeleteRules(version int, context string, ipAddresses *policy.IPMap, port string, mark string) error {
ret := _m.ctrl.Call(_m, "DeleteRules", version, context, ipAddresses, port, mark)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) DeleteRules(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteRules", arg0, arg1, arg2, arg3, arg4)
}
func (_m *MockImplementor) SetTargetNetworks(_param0 []string, _param1 []string) error {
ret := _m.ctrl.Call(_m, "SetTargetNetworks", _param0, _param1)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) SetTargetNetworks(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetTargetNetworks", arg0, arg1)
}
func (_m *MockImplementor) Start() error {
ret := _m.ctrl.Call(_m, "Start")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) Start() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Start")
}
func (_m *MockImplementor) Stop() error {
ret := _m.ctrl.Call(_m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockImplementorRecorder) Stop() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Stop")
}