-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockremoteenforcer.go
103 lines (88 loc) · 3.22 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
// 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"
gomock "github.com/golang/mock/gomock"
rpcwrapper "go.aporeto.io/enforcerd/trireme-lib/controller/internal/enforcer/utils/rpcwrapper"
)
// 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 {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitEnforcer", reflect.TypeOf((*MockRemoteIntf)(nil).InitEnforcer), req, resp)
}
// Unenforce mocks base method
// nolint
func (m *MockRemoteIntf) Unenforce(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unenforce", reflect.TypeOf((*MockRemoteIntf)(nil).Unenforce), req, resp)
}
// Enforce mocks base method
// nolint
func (m *MockRemoteIntf) Enforce(req rpcwrapper.Request, resp *rpcwrapper.Response) error {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
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 {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforcerExit", reflect.TypeOf((*MockRemoteIntf)(nil).EnforcerExit), req, resp)
}