-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockremoteenforcer.go
137 lines (116 loc) · 4.58 KB
/
mockremoteenforcer.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
// Code generated by MockGen. DO NOT EDIT.
// Source: controller/pkg/remoteenforcer/interfaces.go
// Package mockremoteenforcer is a generated GoMock package.
package mockremoteenforcer
import (
reflect "reflect"
rpcwrapper "github.com/aporeto-inc/trireme-lib/controller/internal/enforcer/utils/rpcwrapper"
gomock "github.com/golang/mock/gomock"
)
// MockRemoteIntf is a mock of RemoteIntf interface
// nolint
type MockRemoteIntf struct {
ctrl *gomock.Controller
recorder *MockRemoteIntfMockRecorder
}
// MockRemoteIntfMockRecorder is the mock recorder for MockRemoteIntf
// nolint
type MockRemoteIntfMockRecorder struct {
mock *MockRemoteIntf
}
// NewMockRemoteIntf creates a new mock instance
// nolint
func NewMockRemoteIntf(ctrl *gomock.Controller) *MockRemoteIntf {
mock := &MockRemoteIntf{ctrl: ctrl}
mock.recorder = &MockRemoteIntfMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockRemoteIntf) EXPECT() *MockRemoteIntfMockRecorder {
return m.recorder
}
// InitEnforcer mocks base method
// nolint
func (m *MockRemoteIntf) InitEnforcer(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "InitEnforcer", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// InitEnforcer indicates an expected call of InitEnforcer
// nolint
func (mr *MockRemoteIntfMockRecorder) InitEnforcer(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitEnforcer", reflect.TypeOf((*MockRemoteIntf)(nil).InitEnforcer), req, resp)
}
// InitSupervisor mocks base method
// nolint
func (m *MockRemoteIntf) InitSupervisor(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "InitSupervisor", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// InitSupervisor indicates an expected call of InitSupervisor
// nolint
func (mr *MockRemoteIntfMockRecorder) InitSupervisor(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitSupervisor", reflect.TypeOf((*MockRemoteIntf)(nil).InitSupervisor), req, resp)
}
// Supervise mocks base method
// nolint
func (m *MockRemoteIntf) Supervise(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "Supervise", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// Supervise indicates an expected call of Supervise
// nolint
func (mr *MockRemoteIntfMockRecorder) Supervise(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Supervise", reflect.TypeOf((*MockRemoteIntf)(nil).Supervise), req, resp)
}
// Unenforce mocks base method
// nolint
func (m *MockRemoteIntf) Unenforce(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "Unenforce", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// Unenforce indicates an expected call of Unenforce
// nolint
func (mr *MockRemoteIntfMockRecorder) Unenforce(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unenforce", reflect.TypeOf((*MockRemoteIntf)(nil).Unenforce), req, resp)
}
// Unsupervise mocks base method
// nolint
func (m *MockRemoteIntf) Unsupervise(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "Unsupervise", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// Unsupervise indicates an expected call of Unsupervise
// nolint
func (mr *MockRemoteIntfMockRecorder) Unsupervise(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsupervise", reflect.TypeOf((*MockRemoteIntf)(nil).Unsupervise), req, resp)
}
// Enforce mocks base method
// nolint
func (m *MockRemoteIntf) Enforce(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "Enforce", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// Enforce indicates an expected call of Enforce
// nolint
func (mr *MockRemoteIntfMockRecorder) Enforce(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enforce", reflect.TypeOf((*MockRemoteIntf)(nil).Enforce), req, resp)
}
// EnforcerExit mocks base method
// nolint
func (m *MockRemoteIntf) EnforcerExit(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
ret := m.ctrl.Call(m, "EnforcerExit", req, resp)
ret0, _ := ret[0].(error)
return ret0
}
// EnforcerExit indicates an expected call of EnforcerExit
// nolint
func (mr *MockRemoteIntfMockRecorder) EnforcerExit(req, resp interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforcerExit", reflect.TypeOf((*MockRemoteIntf)(nil).EnforcerExit), req, resp)
}